Creating UI with Threads
-
Hi I have used this code for a UI in a dll.
CNewApp * thread = (CNewApp *) AfxBeginThread(RUNTIME_CLASS(CNewApp),THREAD_PRIORITY_NORMAL,0, CREATE_SUSPENDED);
I get the following compile error error: C2039: 'classCNewApp' : is not a member of 'CNewApp' Note the no space in the error Why Why Why?? CNewApp is of type CWinApp with is of type CWinThread --- -
Hi I have used this code for a UI in a dll.
CNewApp * thread = (CNewApp *) AfxBeginThread(RUNTIME_CLASS(CNewApp),THREAD_PRIORITY_NORMAL,0, CREATE_SUSPENDED);
I get the following compile error error: C2039: 'classCNewApp' : is not a member of 'CNewApp' Note the no space in the error Why Why Why?? CNewApp is of type CWinApp with is of type CWinThread ---Does you CNewApp class contain a DECLARE_CLASS statement? Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
-
Does you CNewApp class contain a DECLARE_CLASS statement? Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
-
Hi I have used this code for a UI in a dll.
CNewApp * thread = (CNewApp *) AfxBeginThread(RUNTIME_CLASS(CNewApp),THREAD_PRIORITY_NORMAL,0, CREATE_SUSPENDED);
I get the following compile error error: C2039: 'classCNewApp' : is not a member of 'CNewApp' Note the no space in the error Why Why Why?? CNewApp is of type CWinApp with is of type CWinThread ---Why are you trying to create a CWinApp object? You ought to be using a direct derivation of CWinThread. Signature space for rent. Apply Within.