Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help needed!!!! Pin
Antti Keskinen4-Aug-04 22:15
Antti Keskinen4-Aug-04 22:15 
QuestionHow to distinguish file from directory ? Pin
Amarelia4-Aug-04 17:23
Amarelia4-Aug-04 17:23 
AnswerRe: How to distinguish file from directory ? Pin
PJ Arends4-Aug-04 17:52
professionalPJ Arends4-Aug-04 17:52 
AnswerRe: How to distinguish file from directory ? Pin
Shiva Prasad4-Aug-04 17:59
Shiva Prasad4-Aug-04 17:59 
GeneralRe: How to distinguish file from directory ? Pin
PJ Arends4-Aug-04 18:16
professionalPJ Arends4-Aug-04 18:16 
GeneralSpy ++ , Thread and Message Pin
Danny Gilbert4-Aug-04 17:23
Danny Gilbert4-Aug-04 17:23 
GeneralRe: Spy ++ , Thread and Message Pin
Ryan Binns4-Aug-04 18:21
Ryan Binns4-Aug-04 18:21 
GeneralRe: Spy ++ , Thread and Message Pin
Danny Gilbert5-Aug-04 4:12
Danny Gilbert5-Aug-04 4:12 
Thanks Ryan !

My InitInstance() function is the one given by Wizard. It returns TRUE and it works. (I saw it with debugger).

Here is a part of my code.

// Create Thread.
m_pUIThreadTestPlan = (ThreadTestPlan *) AfxBeginThread( RUNTIME_CLASS(ThreadTestPlan));


// Start the execution of all activities in the thread.
m_pUIThreadTestPlan->PostThreadMessage( WU_UITHREAD_TESTPLAN_START, 0, (LPARAM) thread_info);

thread_info is a structure with some information for the thread.


Here is the message map for the handler of my WU_UITHREAD_TESTPLAN_START message.

BEGIN_MESSAGE_MAP(ThreadTestPlan, CWinThread)
//{{AFX_MSG_MAP(ThreadTestPlan)
ON_THREAD_MESSAGE(WU_UITHREAD_TESTPLAN_START, OnStart)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()


And for sure, I have a function named OnStart().

LRESULT ThreadTestPlan::OnStart(WPARAM, LPARAM lp)
{
// Something inside here.
With my debugger I never ENTER here. NOTHINGS HAPPEN.
}

The other point is I don't see The THREAD in SPY++.
Blush | :O
GeneralRe: Spy ++ , Thread and Message Pin
Ryan Binns5-Aug-04 17:15
Ryan Binns5-Aug-04 17:15 
GeneralRe: Spy ++ , Thread and Message Pin
Danny Gilbert5-Aug-04 18:23
Danny Gilbert5-Aug-04 18:23 
QuestionHow to use a functin in ANSI which is taking UNICODE standard ? Pin
Amarelia4-Aug-04 17:17
Amarelia4-Aug-04 17:17 
AnswerRe: How to use a functin in ANSI which is taking UNICODE standard ? Pin
PJ Arends4-Aug-04 17:37
professionalPJ Arends4-Aug-04 17:37 
GeneralButton Pin
Archer2824-Aug-04 16:59
Archer2824-Aug-04 16:59 
GeneralRe: Button Pin
PJ Arends4-Aug-04 17:21
professionalPJ Arends4-Aug-04 17:21 
QuestionAutomate "New Connection Wizard"? Pin
guangguang4-Aug-04 16:06
guangguang4-Aug-04 16:06 
AnswerRe: Automate "New Connection Wizard"? Pin
Cohen6-Aug-04 0:41
Cohen6-Aug-04 0:41 
QuestionMemory leak again? Pin
ting6684-Aug-04 16:02
ting6684-Aug-04 16:02 
AnswerRe: Memory leak again? Pin
Anthony_Yio4-Aug-04 19:56
Anthony_Yio4-Aug-04 19:56 
AnswerRe: Memory leak again? Pin
User 5838524-Aug-04 20:00
User 5838524-Aug-04 20:00 
GeneralUsing cursor as Icons in toolbar Pin
mango_lier4-Aug-04 13:03
mango_lier4-Aug-04 13:03 
GeneralRe: Using cursor as Icons in toolbar Pin
Antti Keskinen5-Aug-04 6:37
Antti Keskinen5-Aug-04 6:37 
Generaldisable the Task manager Pin
X20404-Aug-04 12:30
X20404-Aug-04 12:30 
GeneralRe: disable the Task manager Pin
Antti Keskinen5-Aug-04 6:40
Antti Keskinen5-Aug-04 6:40 
GeneralRe: disable the Task manager Pin
Bo Hunter5-Aug-04 12:17
Bo Hunter5-Aug-04 12:17 
GeneralRe: disable the Task manager Pin
ThatsAlok5-Aug-04 22:15
ThatsAlok5-Aug-04 22:15 

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.