Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens1-Oct-03 3:53
Larry J. Siddens1-Oct-03 3:53 
GeneralRe: You Ever Wonder Why? Pin
Steve S1-Oct-03 4:30
Steve S1-Oct-03 4:30 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens1-Oct-03 10:18
Larry J. Siddens1-Oct-03 10:18 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens3-Oct-03 3:16
Larry J. Siddens3-Oct-03 3:16 
QuestionHow To OutPut To A Sound Card Pin
Cowwey30-Sep-03 4:19
Cowwey30-Sep-03 4:19 
GeneralRAM project Pin
IndrekSnt30-Sep-03 4:14
IndrekSnt30-Sep-03 4:14 
GeneralRe: RAM project Pin
David Crow30-Sep-03 4:49
David Crow30-Sep-03 4:49 
GeneralRe: RAM project Pin
IndrekSnt30-Sep-03 5:01
IndrekSnt30-Sep-03 5:01 
I know that, ok, my code that doesn't work:

 PROCESSENTRY32* info;<br />
       HANDLE proc2;<br />
<br />
Process32First(proc2,info);<br />
	for(int i=0;i<35;i++){<br />
	Process32Next(proc2,info);<br />
	MessageBox(info->szExeFile,"OK");<br />
	if(strstr("NOTEPAD",info->szExeFile)){MessageBox("MATCH","OK");break;}<br />
	}<br />
	proc2=OpenProcess(/*PROCESS_ALL_ACCESS*/SYNCHRONIZE|PROCESS_TERMINATE,TRUE,1241980);<br />
    <br />
	m_name.Format("%d",info->th32ProcessID);<br />
	SetDlgItemText(IDC_NAME,m_name.GetBuffer(0));<br />
<br />
<br />
	if(WaitForSingleObject(proc2,5000)!=WAIT_OBJECT_0){<br />
	result=TerminateProcess(proc2,0);<br />
	MessageBox("Terminated","OK");<br />
	}else{<br />
		result=TRUE;<br />
		cw=FindWindow(info->szExeFile,NULL);<br />
		cw->PostMessage(WM_CLOSE);<br />
		MessageBox("TRUE","VIGA");<br />
	}<br />
//	if(!TerminateProcess(proc2,1)){<br />
//	}<br />
	<br />
	CloseHandle(proc2);


Well, it's only for testing... Such a mess for testing Roll eyes | :rolleyes:
GeneralRe: RAM project Pin
IndrekSnt30-Sep-03 5:08
IndrekSnt30-Sep-03 5:08 
GeneralRe: RAM project Pin
David Crow30-Sep-03 5:25
David Crow30-Sep-03 5:25 
GeneralRe: RAM project Pin
IndrekSnt30-Sep-03 5:51
IndrekSnt30-Sep-03 5:51 
GeneralRe: RAM project Pin
David Crow30-Sep-03 6:37
David Crow30-Sep-03 6:37 
GeneralRe: RAM project Pin
IndrekSnt1-Oct-03 4:26
IndrekSnt1-Oct-03 4:26 
GeneralRe: RAM project Pin
David Crow1-Oct-03 4:33
David Crow1-Oct-03 4:33 
GeneralRe: RAM project Pin
IndrekSnt2-Oct-03 4:43
IndrekSnt2-Oct-03 4:43 
QuestionHow to restore minimized window? Pin
vgrigor30-Sep-03 3:28
vgrigor30-Sep-03 3:28 
AnswerRe: How to restore minimized window? Pin
David Crow30-Sep-03 3:37
David Crow30-Sep-03 3:37 
GeneralRe: How to restore minimized window? Pin
vgrigor30-Sep-03 3:48
vgrigor30-Sep-03 3:48 
GeneralCSocket - CSocketFile - CArchive Problem Pin
Brian Cox30-Sep-03 3:04
Brian Cox30-Sep-03 3:04 
GeneralRe: CSocket - CSocketFile - CArchive Problem Pin
DougW4830-Sep-03 7:01
DougW4830-Sep-03 7:01 
GeneralRe: CSocket - CSocketFile - CArchive Problem Pin
Brian Cox30-Sep-03 7:09
Brian Cox30-Sep-03 7:09 
GeneralSpy++ Pin
hph30-Sep-03 1:59
hph30-Sep-03 1:59 
GeneralMFC ShellExecuteEx structure Pin
Uke30-Sep-03 1:53
Uke30-Sep-03 1:53 
GeneralRe: MFC ShellExecuteEx structure Pin
David Crow30-Sep-03 2:28
David Crow30-Sep-03 2:28 
GeneralRe: MFC ShellExecuteEx structure Pin
Uke30-Sep-03 2:47
Uke30-Sep-03 2:47 

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.