Click here to Skip to main content
15,881,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCustom DateTime Control Pin
AbhiHcl12-Jul-10 19:08
AbhiHcl12-Jul-10 19:08 
QuestionCan i convert from CStrin to double Pin
raju_shiva12-Jul-10 19:05
raju_shiva12-Jul-10 19:05 
AnswerRe: Can i convert from CStrin to double Pin
«_Superman_»12-Jul-10 19:49
professional«_Superman_»12-Jul-10 19:49 
AnswerRe: Can i convert from CStrin to double Pin
Aescleal12-Jul-10 21:57
Aescleal12-Jul-10 21:57 
QuestionTerminateProcess doesn't work as expected on Windows XP Pin
pubis12-Jul-10 13:18
pubis12-Jul-10 13:18 
AnswerRe: TerminateProcess doesn't work as expected on Windows XP Pin
El Corazon12-Jul-10 14:40
El Corazon12-Jul-10 14:40 
AnswerRe: TerminateProcess doesn't work as expected on Windows XP Pin
«_Superman_»12-Jul-10 16:27
professional«_Superman_»12-Jul-10 16:27 
GeneralRe: TerminateProcess doesn't work as expected on Windows XP Pin
pubis13-Jul-10 4:32
pubis13-Jul-10 4:32 
Sorry my mistake, here's the GetProcessHandle void

HANDLE CmyGUIApp::GetProcessHandle(LPSTR szExeName)
{
	PROCESSENTRY32 Pc = { sizeof(PROCESSENTRY32) };
	HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPALL, 0);
	if(Process32First(hSnapshot, Pc)){
	    do{
			if(!strcmp(Pc.szExeFile, szExeName))
			{
			    return OpenProcess(PROCESS_ALL_ACCESS, TRUE, Pc.th32ProcessID);
			}
		}while(Process32Next(hSnapshot, Pc));
	}
	return NULL;
}


Debugging the program on Windows 7 where on I have my VC++ installed doesn't show any error or any thing strange, I can terminate any process just by replacing "calc.exe" with another process name, the void above returns the exact process handle and the process gets terminated. Should I debug the program on Windows XP? How? I have only one license of VC++ which is currently installed on Windows 7, can I use WinDbg to debug my program on XP and how? please guide me I am new to all of this staff! Thanks
GeneralRe: TerminateProcess doesn't work as expected on Windows XP Pin
«_Superman_»13-Jul-10 5:43
professional«_Superman_»13-Jul-10 5:43 
QuestionMFC BOOK Pin
mdocvc12-Jul-10 8:41
mdocvc12-Jul-10 8:41 
QuestionRe: MFC BOOK Pin
Maximilien12-Jul-10 8:46
Maximilien12-Jul-10 8:46 
JokeRe: MFC BOOK Pin
Richard MacCutchan12-Jul-10 8:57
mveRichard MacCutchan12-Jul-10 8:57 
AnswerRe: MFC BOOK Pin
Hristo-Bojilov12-Jul-10 9:08
Hristo-Bojilov12-Jul-10 9:08 
GeneralRe: MFC BOOK Pin
Alan Balkany15-Jul-10 4:13
Alan Balkany15-Jul-10 4:13 
AnswerRe: MFC BOOK Pin
Rajesh R Subramanian12-Jul-10 9:11
professionalRajesh R Subramanian12-Jul-10 9:11 
AnswerRe: MFC BOOK Pin
CPallini12-Jul-10 9:13
mveCPallini12-Jul-10 9:13 
QuestionPocketPC 2003 programming on VS 2008?? Pin
AmbiguousName12-Jul-10 8:36
AmbiguousName12-Jul-10 8:36 
AnswerRe: PocketPC 2003 programming on VS 2008?? Pin
Richard MacCutchan12-Jul-10 8:59
mveRichard MacCutchan12-Jul-10 8:59 
QuestionWinsock - Select Which Adapter to use? Pin
Member 259847812-Jul-10 7:52
Member 259847812-Jul-10 7:52 
AnswerRe: Winsock - Select Which Adapter to use? Pin
Richard MacCutchan12-Jul-10 9:01
mveRichard MacCutchan12-Jul-10 9:01 
AnswerRe: Winsock - Select Which Adapter to use? Pin
Moak13-Jul-10 1:29
Moak13-Jul-10 1:29 
GeneralRe: Winsock - Select Which Adapter to use? Pin
Member 259847816-Jul-10 13:24
Member 259847816-Jul-10 13:24 
GeneralRe: Winsock - Select Which Adapter to use? Pin
Moak16-Jul-10 23:57
Moak16-Jul-10 23:57 
QuestionHow to code a skinned UI like in Windows Media Player? Pin
Tim De Baets12-Jul-10 5:30
Tim De Baets12-Jul-10 5:30 
AnswerRe: How to code a skinned UI like in Windows Media Player? Pin
Richard MacCutchan12-Jul-10 7:04
mveRichard MacCutchan12-Jul-10 7:04 

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.