|
-
February 5th, 2002, 05:54 AM
#1
Preventing end of a SDI application
Hi there,
The application I'm working on is SDI application style.
The InitInstance function, creates an object from my own class which will manage independant threads. After the creation of the object, the main application stops its execution, so the threads are killed !
Here is the code :
BOOL MyApp::InitInstance()
{
MyClass object;
object.Go();
return TRUE;
}
My question : how can I keep alive an application that creates an object that will manage threads ? The important fact is that the application can't enter in an eternal loop because the object created must interact with the application to give it details on its work.
Thanks. Hope my explanations were clear to understand.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|