Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

'_endthreadex' : undeclared identifier

Posted on 2003-11-19
2
Medium Priority
?
1,089 Views
Last Modified: 2013-12-03
I have to admit that I'm still very new to multithreading in C++ but I got this code running without the merest error on Dev-Cpp so it must work on VC++ too.
Well I have a Thread class that I found somewhere on the net. But when I try to compile the code I get the following error (only the part wich is interesting):

Thread.hpp(180) : error C2065: '_beginthreadex' : undeclared identifier
xlocale(467) : while compiling class-template member function 'bool __thiscall Thread::TThread<class Socket>::Start(void)'
Thread.cpp(21) : error C2065: '_beginthreadex' : undeclared identifier
Thread.cpp(98) : error C2065: '_endthreadex' : undeclared identifier

I know that these 3 functions are defined in process.h and inside the class I included them too but it doesn't work.

Hope you can help me

Snyke
0
Comment
Question by:Snyke
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 9780958
You need to set the appropriate runtime library. Go to the project settings, choose the C++ tab and pick "Code Generation" from the ComboBox. Then, set "Use Runtime Library" to the appropriate multithreaded version, I'd recommend 'Multithreaded DLL'.
0
 
LVL 1

Author Comment

by:Snyke
ID: 9781033
Thank you very much. That was fast :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question