Click here to Skip to main content
16,010,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralI ve run out of ideas Pin
1-Oct-01 9:12
suss1-Oct-01 9:12 
GeneralRe: I ve run out of ideas Pin
Mike Nordell1-Oct-01 9:46
Mike Nordell1-Oct-01 9:46 
GeneralRe: I ve run out of ideas Pin
Joaquín M López Muñoz1-Oct-01 9:51
Joaquín M López Muñoz1-Oct-01 9:51 
GeneralRe: I ve run out of ideas Pin
1-Oct-01 12:54
suss1-Oct-01 12:54 
GeneralSMTP Commands (Read Receipts) Pin
Bret Faller1-Oct-01 9:03
Bret Faller1-Oct-01 9:03 
GeneralRe: SMTP Commands (Read Receipts) Pin
Mike Nordell1-Oct-01 9:49
Mike Nordell1-Oct-01 9:49 
GeneralRe: SMTP Commands (Read Receipts) Pin
Bret Faller2-Oct-01 13:11
Bret Faller2-Oct-01 13:11 
GeneralA question about thread programming Pin
Chaos Lawful1-Oct-01 8:17
Chaos Lawful1-Oct-01 8:17 
Here is a class which I want to use in a multi-threaded program:
class threadclass {
public:
void A();
void B();
};

void threadclass::A()
{
B();
}

void threadclass::B()
{
}

UINT WINAPI threadproc(LPVOID lpData)
{
threadclass xx;
xx.A();
return 0;
}

I use it like this:
CWinThread *pThread=AfxBeginThread(threadproc,NULL);
Will there be some error occured? Is the class thread-safe? Confused | :confused:

Law is meaningless without chaos.
Chaos without Law is equal to destruction.
Chaos and Law create our rich and colorful world.
GeneralRe: A question about thread programming Pin
Joaquín M López Muñoz1-Oct-01 8:26
Joaquín M López Muñoz1-Oct-01 8:26 
GeneralBitmap question Pin
#realJSOP1-Oct-01 8:13
professional#realJSOP1-Oct-01 8:13 
GeneralRe: Bitmap question Pin
Mike Nordell1-Oct-01 9:52
Mike Nordell1-Oct-01 9:52 
GeneralRe: Bitmap question Pin
Paolo Messina1-Oct-01 12:33
professionalPaolo Messina1-Oct-01 12:33 
Generalcreating COM objects in Visual C++ to work in vbscript Pin
David Higgins1-Oct-01 7:39
David Higgins1-Oct-01 7:39 
GeneralRe: creating COM objects in Visual C++ to work in vbscript Pin
Andres Manggini1-Oct-01 8:09
Andres Manggini1-Oct-01 8:09 
GeneralDebugging ISAPI Tools Pin
CHERCHALI KARIM1-Oct-01 7:03
CHERCHALI KARIM1-Oct-01 7:03 
GeneralSimple !?! How to wait for OK Pin
Josh Knox1-Oct-01 6:55
Josh Knox1-Oct-01 6:55 
GeneralRe: Simple !?! How to wait for OK Pin
Stan Shannon1-Oct-01 7:09
Stan Shannon1-Oct-01 7:09 
GeneralRe: Simple !?! How to wait for OK Pin
Josh Knox1-Oct-01 8:09
Josh Knox1-Oct-01 8:09 
GeneralRe: Simple !?! How to wait for OK Pin
Stan Shannon1-Oct-01 8:19
Stan Shannon1-Oct-01 8:19 
GeneralRe: Simple !?! How to wait for OK Pin
Tomasz Sowinski1-Oct-01 7:16
Tomasz Sowinski1-Oct-01 7:16 
GeneralRe: Simple !?! How to wait for OK Pin
Josh Knox1-Oct-01 8:18
Josh Knox1-Oct-01 8:18 
GeneralRe: Simple !?! How to wait for OK Pin
Eric Jacobsen9-Jan-02 10:27
Eric Jacobsen9-Jan-02 10:27 
GeneralWM_DRAWITEM & CFrameWnd Pin
AJ1231-Oct-01 6:25
AJ1231-Oct-01 6:25 
GeneralRe: WM_DRAWITEM & CFrameWnd Pin
Tomasz Sowinski1-Oct-01 7:24
Tomasz Sowinski1-Oct-01 7:24 
GeneralAdding Menus to Dialog Boxes Pin
1-Oct-01 6:21
suss1-Oct-01 6:21 

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.