Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to call _beginthreadex

Status
Not open for further replies.

JimmyK

Programmer
Sep 8, 2000
142
VN
I invoke _beginthredex in my C++ prgoram. Already include
process.h

But when i complile. VC6 report
error C2065: '_beginthreadex' : undeclared identifier


How can i work around this?

Thanks in advance

Jimmy K
[sig][/sig]
 
Jimmy,

_beginthreadex() will only be defined for a "Multithreaded" build. This is done by going into your project settings, and on the C++ tab select the Code Generation category, and on the "Use Run Time Library" drop down, select "Multithreaded". This will cause the _MT symbol to be defined during compilation and will resolve your compile error.

Hope that helps!
[sig]<p>Pat Gleason<br><a href=mailto:gleason@megsinet.net>gleason@megsinet.net</a><br><a href= > </a><br> [/sig]
 
Check in project->settings->link->object/library modules, you maybe didn't include one .lib file. I don't know in wich library is defined this function, but check in settings if one of theese files is absent
kernel32.lib user32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib uuid.lib [sig][/sig]
 
Thanks Pat,
Yes ,It works

JimmyK [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top