153 Topics

Member Avatar for
Member Avatar for cambalinho

heres a sample of using pointers on VB6: Option Explicit Private Const BI_RGB = 0 Private Const CBM_INIT = &H4 Private Const DIB_RGB_COLORS = 0 Private Const USE_BITMAP_ALPHA = &H1000000 Private Type BITMAPINFOHEADER biSize As Long biWidth As Long biHeight As Long biPlanes As Integer biBitCount As Integer biCompression As …

0
113
Member Avatar for Alv45525

Hi, I would like to know if there is a CMD command line in order to get a computer name on which an AD user is logged on. For example, inputting the username and as result getting the computer name

Member Avatar for rproffitt
0
18
Member Avatar for cppgangster

Hi I am developing using C/C++ window application using winapi. I will be using some standard STL containers and some win api functions provided by windows.h. I would like use the app on different windows versions such as windows 7 and 10. The apps will be builded for x86 architecture. …

Member Avatar for zigale
0
572
Member Avatar for catastrophe2

I have a table that contains some cubes with servers and active status (see attached image): note: CUBE1 is repeated intentionally. The idea is the same cube is getting synced from the same server 1 as a data source (process_server) onto different target servers (query_server; say server2 is in region …

Member Avatar for pinel
0
1K
Member Avatar for cambalinho

i'm trying using the GNU compiler with command lines( using the ShellExecuteEx()). when i do: string FileName1="C:\\Program Files\\mingw-w64\\x86_64-7.2.0-win32-seh-rt_v5-rev1\\mingw64\\bin\\x86_64-w64-mingw32-g++.exe"; run(FileName1,"-c \"C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test2.cpp\""); the object file is created. these line creates the exe: run(FileName1,"-o C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test2.exe C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test2.o"); (tested) but the exe have some dependencies... so seen the Code Blocks: x86_64-w64-mingw32-g++.exe -Wall -g -std=c++14 -c …

Member Avatar for cambalinho
0
2K
Member Avatar for cppgangster

Hi I am trying to get windows positioned in specific order as show below ![desired.PNG](/attachments/large/3/6447240b1491d04046fa904f31659f9b.PNG) but I am unable to get and get always this ![wrong.PNG](/attachments/large/3/71f4b92c4f40a6afeeab7e3c2f136526.PNG) the code below is shown HDWP cmdWnds; cmdWnds = BeginDeferWindowPos(col.size()); for (int i = 0; i < col.size(); i++) { if (i == 0) …

0
335
Member Avatar for catastrophe2

I wrote a script that manages services on the server and starts/stops etc...depending on the Task in the csv file, as well as changes the startuptype, again depending on the start up type in the csv file. CSV file: > Server,Service,Startup Type,Task > server1,SQL Server Analysis Services (MSSQLSERVER),automatic,start > server2,"SQL …

Member Avatar for rproffitt
0
1K
Member Avatar for overwraith

I would like to be able to open a port on windows programatically. I don't care whether is power shell, or something else, but I would like it to be a script that I can simply run as I install a software program. I have no experience in this area, …

Member Avatar for rproffitt
0
955
Member Avatar for Spyderbane

I have a powershell script from PRTG that will ssh into a juniper device and allow me to exicute a command. I am trying to run "Request System Storage Cleanup" which works but the problem is the session asks for conformation of the clean up. Adding a carriage return and …

Member Avatar for rproffitt
0
685
Member Avatar for otengkwaku

Hi guys have a python software that i want to freeze for distribution. The problem is after freezing it with cx_freeze and i run it, it works fine on my development computer but when i sent it to my testing computer (window XP sp3 32bit) it give me this error …

Member Avatar for Thomas Karl
0
2K
Member Avatar for Churchillrl

Hi, I am working on a personal vb.net project that will allow me to capture a full-sized image of a given web page. I've been working on this for a few of days and have not found a method that is 100% reliable. Here's what i have tried so far... …

Member Avatar for _1_18
1
4K
Member Avatar for RudyM

Hi all, I'm trying to replace text in a CSV. The CSV line looks something like this: "Field One","Field Two","Field Three","Field Four" So I tried something like: (Get-Content $csvfile) -replace "Field`n", "Field" | Set-Content $csvfile

Member Avatar for RudyM
0
379
Member Avatar for cambalinho

i did a class for the timer precision using the timeSetEvent(). of course i can have more than 7 instances from the Timer class(with 200ms or something so small). is these a limitation or what? class Timer { private: static unsigned int TimerCount; UINT_PTR timerid; UINT m_uResolution=0; unsigned int TimerID=0; …

0
278
Member Avatar for Mr.M

Hi Dw. I'm new to C++ nor Win32 app dev. I want my app to stay open or running even if I'm not interacting with it. And how to write a close call. In VB to close it you just right: Close() How can I achieve these two? Also how …

Member Avatar for tinstaafl
0
243
Member Avatar for Mr.M

I'm getting "error C2039: 'AllocSysString' : is not a member of 'System::Char' error. I'm trying to assign the result to a string variable. wchar_t str; return str.AllocSysString(); But I'm getting the above error.

Member Avatar for tinstaafl
0
206
Member Avatar for cambalinho

i have my own region class: class region { private: BYTE* Get24BitPixels(HBITMAP pBitmap, WORD *pwWidth, WORD *pwHeight) { // a bitmap object just to get bitmap width and height BITMAP bmpBmp; // pointer to original bitmap info LPBITMAPINFO pbmiInfo; // bitmap info will hold the new 24bit bitmap info BITMAPINFO …

0
152
Member Avatar for md.Rayad

I have a oracle query and i would like to run it by powershell using ODP.Net. Below is the query. set pagesize 100 set linesize 200 break on report compute sum of free_mb on report compute sum of act_size on report compute sum of used_mb on report col %used format …

0
244
Member Avatar for Habib_7

I'm learning win32 programming from [Here](http://www.functionx.com/win32/Lesson03.htm) and I have problem in part of tutorial about string table it gives me this error: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with …

Member Avatar for Habib_7
0
311
Member Avatar for md.Rayad

I have a powershell script in that script i am using datagridview. My script is working fine. All looks ok to me. My issue is i want to get the first column value of selected row. To fulfill this i need to add event (cell click/cell content click/cell mouse click). …

0
259
Member Avatar for Radio2006

Hello all, The issue I am having involves a user that uses a CAC to log in to a network. When the account is created, a 10-digit number printed on the CAC is associated with the users account and replaces their User Logon Name in ADUC. This users number was …

Member Avatar for Radio2006
0
2K
Member Avatar for vegaseat

Using the Python win32 extensions it is relatively simple to copy to and from the clipboard. Sorry. the Windows OS is a requirement.

0
2K
Member Avatar for shea279

OK so I'm using the function SetDlgItemText() to change the text in a static text control of my window. Problem is, when it updates from a longer string to a shorter string ("Sup Y'all" -> "Hi"), the previous, longer string persists leaving "Hip Y'all". However, remaining bit of the old …

Member Avatar for Дмитрий_5
0
198
Member Avatar for mitchems

It's been a long while since I've been here. I am trying to use Win32 IEAutomation to automate IE to login to SharePoint, read some information, download some files and some other junk. I installed WIN32 IEAutomation. When I run the simple script: use Win32::IEAutomation; my $ie = Win32::IEAutomation->new( visible …

Member Avatar for mitchems
0
539
Member Avatar for heycooldude

I have my outlook mailboxes in this structure mailbox1 -Inbox Mailbox2 -Inbox Current script is able to access Inbox of mailbox1 as it is my main mail box where as mailbox2 has been added into my profile. I want to be able to access Inbox of Mailbox2 import win32com.client import …

0
180
Member Avatar for jjorgensen626

Hi Everyone, Wanted to share a bit on this subject as I've had to recently make some of these changes. Along my way I found a few sites that basically suggested moving all mailboxes off the database, dismount, delete and create a new database. Simple enough, however I didn't want …

0
262
Member Avatar for heycooldude

Hi, I want to send back reply to the same email but with different email account. Here is my script mail = outlook.Session.GetItemFromID(ID) subject = mail.Subject if mail: message_reply = mail.Reply() message_reply.From='_from_email' #not working message_reply.Body = "THE FOLLOWING TASK HAS BEEN MARKED AS COMPLETED: \n\n" message_reply.CC= '_CC_Email' message_reply.Send() I tried …

0
155
Member Avatar for Martin_3

Hi guys, I have some C# code in my Powershell script and in that code I have a global variable. How can I access my variable from the powershell code ? $source = @' using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; …

Member Avatar for BogdanCov
0
267
Member Avatar for DeanMSands3

Hey, DaniWeb! I need your opinions. I'm looking to expand my skillset, particularly in the Windows department. On a scale of "Eh, maybe later" to "Do it! Do it now!" what is your opinion on the importance of learning PowerShell as opposed to another life skill like Haskell, Mandarin Chinese, …

Member Avatar for bogenbroom
0
197
Member Avatar for tirthajust4u

Hello gurus: I saw the discussion related on working with words with python which is: import win32com.client wordapp = win32com.client.Dispatch("Word.Application") # Create new Word Object wordapp.Visible = 0 # Word Application should`t be visible worddoc = wordapp.Documents.Add() # Create new Document Object worddoc.PageSetup.Orientation = 1 # Make some Setup to …

Member Avatar for bnn678
0
421
Member Avatar for triumphost

Creating WinAPI windows and controls can be a pain and quite difficult/annoying at times. Most of the time, I find myself searching MSDN, DaniWeb, and StackOverflow. I hate having to use external libraries unless I absolutely have no other choice. Below contains code for creating WinAPI windows, Controls, Sub-Classing, and …

Member Avatar for mike_2000_17
0
4K

The End.