Click here to Skip to main content
15,907,497 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Combobox problems Pin
Hamid_RT1-Nov-06 5:22
Hamid_RT1-Nov-06 5:22 
QuestionDisconnect data exchange Pin
Wim Engberts1-Nov-06 3:56
Wim Engberts1-Nov-06 3:56 
AnswerRe: Disconnect data exchange Pin
David Crow1-Nov-06 4:39
David Crow1-Nov-06 4:39 
GeneralRe: Disconnect data exchange Pin
Wim Engberts1-Nov-06 5:04
Wim Engberts1-Nov-06 5:04 
GeneralRe: Disconnect data exchange Pin
David Crow1-Nov-06 5:32
David Crow1-Nov-06 5:32 
QuestionGetThreadId - kernel32.dll Pin
edvintas1-Nov-06 3:48
edvintas1-Nov-06 3:48 
AnswerRe: GetThreadId - kernel32.dll Pin
Chris Meech1-Nov-06 4:29
Chris Meech1-Nov-06 4:29 
GeneralRe: GetThreadId - kernel32.dll Pin
edvintas1-Nov-06 4:39
edvintas1-Nov-06 4:39 
hmm.. i am using windows xp Smile | :)
but how then i can send message to the thread process...? Confused | :confused:

int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
{
    HANDLE pKhwnd;
    pKhwnd = CreateThread(0, 0, pKhookThread, &hInstance, 0, 0); 
	WaitForSingleObject(pKhwnd, 10000);
	PostThreadMessage(GetThreadId(pKhwnd), WM_DESTROY, 0, 0);
	//Sleep(10000);
	FileWrite("Application Terminated");
    return 0;
}


what function i have to use to get thread id? D'Oh! | :doh:
GeneralRe: GetThreadId - kernel32.dll Pin
Chris Meech1-Nov-06 5:16
Chris Meech1-Nov-06 5:16 
GeneralRe: GetThreadId - kernel32.dll Pin
edvintas1-Nov-06 6:21
edvintas1-Nov-06 6:21 
QuestionRe: GetThreadId - kernel32.dll Pin
Hamid_RT1-Nov-06 5:23
Hamid_RT1-Nov-06 5:23 
AnswerRe: GetThreadId - kernel32.dll Pin
Niklas L1-Nov-06 20:46
Niklas L1-Nov-06 20:46 
QuestionFunction Pointers and ctors. Pin
Chris Meech1-Nov-06 2:35
Chris Meech1-Nov-06 2:35 
AnswerRe: Function Pointers and ctors. [modified] Pin
benjymous1-Nov-06 3:42
benjymous1-Nov-06 3:42 
GeneralRe: Function Pointers and ctors. Pin
Chris Meech1-Nov-06 4:18
Chris Meech1-Nov-06 4:18 
GeneralRe: Function Pointers and ctors. Pin
benjymous1-Nov-06 4:42
benjymous1-Nov-06 4:42 
Questionproblem with gethostbyaddr() Pin
priyank_ldce1-Nov-06 2:15
priyank_ldce1-Nov-06 2:15 
AnswerRe: problem with gethostbyaddr() Pin
David Crow1-Nov-06 3:32
David Crow1-Nov-06 3:32 
GeneralRe: problem with gethostbyaddr() Pin
priyank_ldce1-Nov-06 6:05
priyank_ldce1-Nov-06 6:05 
GeneralRe: problem with gethostbyaddr() Pin
David Crow1-Nov-06 7:14
David Crow1-Nov-06 7:14 
GeneralRe: problem with gethostbyaddr() Pin
priyank_ldce1-Nov-06 22:39
priyank_ldce1-Nov-06 22:39 
QuestionListing Video Capture Devices Pin
ceejeeb1-Nov-06 2:11
ceejeeb1-Nov-06 2:11 
AnswerRe: Listing Video Capture Devices Pin
Mark Salsbery1-Nov-06 6:08
Mark Salsbery1-Nov-06 6:08 
GeneralRe: Listing Video Capture Devices Pin
ceejeeb2-Nov-06 2:41
ceejeeb2-Nov-06 2:41 
QuestionChange name Activex Control Project Pin
Demian Panello1-Nov-06 1:33
Demian Panello1-Nov-06 1:33 

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.