Click here to Skip to main content
15,904,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: storing data on to a file in the FTP server. Pin
vijay_aroli3-Sep-06 21:59
vijay_aroli3-Sep-06 21:59 
Questionopening a cmd.exe window Pin
locoone3-Sep-06 21:24
locoone3-Sep-06 21:24 
AnswerRe: opening a cmd.exe window Pin
_AnsHUMAN_ 3-Sep-06 21:29
_AnsHUMAN_ 3-Sep-06 21:29 
GeneralRe: opening a cmd.exe window Pin
locoone4-Sep-06 8:28
locoone4-Sep-06 8:28 
AnswerRe: opening a cmd.exe window Pin
Hamid_RT3-Sep-06 22:11
Hamid_RT3-Sep-06 22:11 
AnswerRe: opening a cmd.exe window Pin
Programm3r3-Sep-06 22:26
Programm3r3-Sep-06 22:26 
Questionmachine cell formation using genetic algorithm Pin
sinbear3-Sep-06 21:01
sinbear3-Sep-06 21:01 
QuestionProblem with function Pin
Programm3r3-Sep-06 20:58
Programm3r3-Sep-06 20:58 
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 />
	//declaring a handle<br />
	HWND hWnd = NULL;<br />
	//Pointer that receives the process identifier<br />
	LPDWORD lpdwProcessId;<br />
	//return value<br />
	int rc;<br />
	<br />
	//get a window handle<br />
	hWnd = ::FindWindow(NULL,wndName);<br />
<br />
	//get the pid of the process that created the window <br />
	rc = GetWindowThreadProcessId(hWnd,lpdwProcessId);<br />
<br />
	//return the pid<br />
	return rc;<br />


Anyone know what I'm doing wrong??

Thanx in advance

Regards

Programm3r

AnswerRe: Problem with function Pin
Stephen Hewitt3-Sep-06 21:09
Stephen Hewitt3-Sep-06 21:09 
GeneralRe: Problem with function Pin
Programm3r3-Sep-06 21:13
Programm3r3-Sep-06 21:13 
GeneralRe: Problem with function Pin
prasad_som3-Sep-06 21:19
prasad_som3-Sep-06 21:19 
AnswerRe: Problem with function[modified] Pin
prasad_som3-Sep-06 21:18
prasad_som3-Sep-06 21:18 
GeneralRe: Problem with function[modified] Pin
Programm3r3-Sep-06 21:29
Programm3r3-Sep-06 21:29 
AnswerRe: Problem with function Pin
sheshidar3-Sep-06 21:32
sheshidar3-Sep-06 21:32 
GeneralRe: Problem with function Pin
Programm3r3-Sep-06 21:39
Programm3r3-Sep-06 21:39 
QuestionMenu Bars or Tool Bars Display Pin
velayudhan_raj3-Sep-06 20:57
velayudhan_raj3-Sep-06 20:57 
AnswerRe: Menu Bars or Tool Bars Display Pin
Hamid_RT4-Sep-06 9:16
Hamid_RT4-Sep-06 9:16 
QuestionProblem in DDX Pin
sheshidar3-Sep-06 20:50
sheshidar3-Sep-06 20:50 
AnswerRe: Problem in DDX Pin
Hamid_RT3-Sep-06 22:19
Hamid_RT3-Sep-06 22:19 
GeneralRe: Problem in DDX Pin
sheshidar4-Sep-06 1:08
sheshidar4-Sep-06 1:08 
GeneralRe: Problem in DDX Pin
sheshidar4-Sep-06 2:44
sheshidar4-Sep-06 2:44 
GeneralRe: Problem in DDX Pin
Hamid_RT4-Sep-06 9:34
Hamid_RT4-Sep-06 9:34 
QuestionHow to identify a *.exe file is running in OS using VC++ Pin
sujeet_kulk3-Sep-06 20:29
sujeet_kulk3-Sep-06 20:29 
AnswerRe: How to identify a *.exe file is running in OS using VC++ Pin
Programm3r3-Sep-06 21:01
Programm3r3-Sep-06 21:01 
JokeRe: How to identify a *.exe file is running in OS using VC++ Pin
Programm3r3-Sep-06 21:07
Programm3r3-Sep-06 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.