|
create SUSPENDED process, inject dll and hook api...
hook GetCommandLineA ok, but never call...
|
|
|
|
|
When you create a suspended process, that process has entered it's main(), ie the variables are uninitialized so there is not yet a commandline to get.
|
|
|
|
|
Hi
i want to validate the float value which the user is going to enter in the edit box.
no integers are allowed and strings are allowed.
only float values are allowed.
is ther any API to valiate the float value
or is ther any solution for this
|
|
|
|
|
associate a variable to the editBox which is of type float or double ...
|
|
|
|
|
hello everyone!! i have certain data that needs to be sent and created as a file on the FTP server, but that data is not in a local file. how can i do this?? can anyone help me by explaining how it has to be done?? can anyone provide a sample code for me which does the task?? thanks ..
vijay.
|
|
|
|
|
aroli vijay wrote: that data is not in a local file
Create a temporary file,write your data into the file and delete it later when it's task is done.
Upload the file using the CFtpConnection::PutFile()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hello sir!! thanks for replying. i can upload a file onto a ftp server using Putfile. and the code i have written does exactly the same. but i want to modify it. i now want to store the data directly onto the FTP server without storing in a file in the local machine. how can i do this??? i have written some code that creates a file on the FTP server but i am not able to store data onto that file. what has to be done??
vijay
|
|
|
|
|
how would i go about opening a cmd.exe window from a mfc dialog?
|
|
|
|
|
locoone wrote: opening a cmd.exe window from a mfc dialog
ShellExecute(NULL,NULL,"cmd.exe",NULL,NULL,SW_SHOW);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
i was close on that i was thinking it was ShellExec close but no cookie. now ive been searching msdn for several hours on how to pass a command
ipconfig /all > ipconfig.txt
into the cmd window but i havent found anything on how to do it. ive run it in a batch file then used my program to open the txt file but i dont want to use 2 different things to open the txt file
|
|
|
|
|
or WinExec("cmd.exe",SW_SHOW);
|
|
|
|
|
UINT WINAPI WinExec(
LPCSTR lpCmdLine,
UINT uCmdShow
);
Where uCmdShow can be any of the following:
SW_FORCEMINIMIZE
Windows 2000/XP: Minimizes a window, even if the thread that owns the window is not responding. This flag should only be used when minimizing windows from a different thread.
SW_HIDE
Hides the window and activates another window.
SW_MAXIMIZE
Maximizes the specified window.
SW_MINIMIZE
Minimizes the specified window and activates the next top-level window in the Z order.
SW_RESTORE
Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
SW_SHOW
Activates the window and displays it in its current size and position.
SW_SHOWDEFAULT
Sets the show state based on the SW_ value specified in the STARTUPINFO structure passed to the CreateProcess function by the program that started the application.
SW_SHOWMAXIMIZED
Activates the window and displays it as a maximized window.
SW_SHOWMINIMIZED
Activates the window and displays it as a minimized window.
SW_SHOWMINNOACTIVE
Displays the window as a minimized window. This value is similar to SW_SHOWMINIMIZED , except the window is not activated.
SW_SHOWNA
Displays the window in its current size and position. This value is similar to SW_SHOW, except the window is not activated.
SW_SHOWNOACTIVATE
Displays a window in its most recent size and position. This value is similar to SW_SHOWNORMAL, except the window is not actived.
SW_SHOWNORMAL
Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
hi, experts, my project on solving the machine cell formation problem using genetic algorithm has encounter problems, the requirment for this project is to arrange the machines into different cells that can get the optimize timing and most efficiency, i don't know how to use the C++ to solve this problem, can anyone give me a hand!!!, this is my FYP, if i can't do it, i can't graduate, so any suggestion or need more detail about this project please contact me at sinbearzc@Hotmail.com, thank you so much!!!
|
|
|
|
|
Hi all,
I'm using the GetWindowThreadProcessId function, but for some or other reason the function causes an exception. This is what I'm doing...
<br />
char* wndName = "WindowName";<br />
HWND hWnd = NULL;<br />
LPDWORD lpdwProcessId;<br />
int rc;<br />
<br />
hWnd = ::FindWindow(NULL,wndName);<br />
<br />
rc = GetWindowThreadProcessId(hWnd,lpdwProcessId);<br />
<br />
return rc;<br />
Anyone know what I'm doing wrong??
Thanx in advance
Regards
Programm3r
|
|
|
|
|
You're using an uninitialised pointer ("lpdwProcessId"). Try this instead:
const char *pWndName = "WindowName";
HWND hWnd = ::FindWindow(NULL, pWndName);
DWORD ProcessId;
DWORD ThreadId = GetWindowThreadProcessId(hWnd, &ProcessId);
return ProcessId;
Steve
|
|
|
|
|
Thanx Steve....
Regards
Programm3r
|
|
|
|
|
, Need to refresh page frequently.
|
|
|
|
|
Programm3r wrote: LPDWORD lpdwProcessId;
//return value
int rc;
//get a window handle
hWnd = ::FindWindow(NULL,wndName);
//get the pid of the process that created the window
rc = GetWindowThreadProcessId(hWnd,lpdwProcessId);
Again , here you are passing invalid memmory to function GetWindowThreadProcessId .
Use DWORD dwProcessId; instead and pass its address as parameter.
,Stephan has already answered this.
|
|
|
|
|
Prasad, thank you for the concern and help...
I got it working
Regards
Programm3r
|
|
|
|
|
What kind of problem u got
|
|
|
|
|
Problem solved ... thanx for the concern..
Regards
Programm3r
|
|
|
|
|
Hi guys,
I have added ToolBars and MenuBars from the Resource. I want to show more than 1 toolbars and menubars in my SDI Application. Can any one plz show how to display the menu bars and tool bars.
Thanks in Advance
Velayudhan
|
|
|
|
|
Did you search in codeproject?
|
|
|
|
|
Hi All,
Do any one know abt problems in DDX.
I can send data from Control to variable but when I tried to send data from variable to control my application get hangs.
I had created the dialog using CreateIndirect method.
|
|
|
|
|