Worker-Thread in Win32 Application
-
Hi: I have recently created a "Win32 Application" project or, more accurately "A Simple Win32 Application". but i need to use a Worker-Thread in this app so i useed AfxBeginThread()function,but when i want to compile project,i receive the following error: error C2065: 'AfxBeginThread' : undeclared identifier :confused::confused: Is it possible to use this function in Win32 Application ? Please Help me. Best Regards.
-
Hi: I have recently created a "Win32 Application" project or, more accurately "A Simple Win32 Application". but i need to use a Worker-Thread in this app so i useed AfxBeginThread()function,but when i want to compile project,i receive the following error: error C2065: 'AfxBeginThread' : undeclared identifier :confused::confused: Is it possible to use this function in Win32 Application ? Please Help me. Best Regards.
Nope.
AfxBeginThread
is declared inafxwin.h
, which is a part of MFC framework. In Win32 apps, use_beginthread
instead. Regards, BB -
Nope.
AfxBeginThread
is declared inafxwin.h
, which is a part of MFC framework. In Win32 apps, use_beginthread
instead. Regards, BBWin32 apps should use
_beginthreadex
, not _beginthread. -
Win32 apps should use
_beginthreadex
, not _beginthread.Both may be used, however
_beginthreadex
is better (security information, initial state, autoclosing handle, etc.). Thanks for your comment. :rolleyes: Regards, BB