Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linking Error Pin
john563223-Nov-09 3:01
john563223-Nov-09 3:01 
GeneralRe: Linking Error Pin
kikoso23-Nov-09 5:16
kikoso23-Nov-09 5:16 
QuestionProblem with Win32 Threads Pin
kikoso23-Nov-09 2:13
kikoso23-Nov-09 2:13 
AnswerRe: Problem with Win32 Threads Pin
HimanshuJoshi23-Nov-09 2:22
HimanshuJoshi23-Nov-09 2:22 
GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 2:38
kikoso23-Nov-09 2:38 
AnswerRe: Problem with Win32 Threads Pin
Member 392263923-Nov-09 2:27
Member 392263923-Nov-09 2:27 
GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 2:32
kikoso23-Nov-09 2:32 
AnswerRe: Problem with Win32 Threads Pin
Rajesh R Subramanian23-Nov-09 2:50
professionalRajesh R Subramanian23-Nov-09 2:50 
If you're using MFC, you *must* use AfxBeginThread to begin a worker thread. If you are using Win32, you should be using _beginthreadex to create a thread.

CreateThread is an API and that will even create a thread if you're linking to the single threaded version of the CRT (which will inevitably lead to disaster).

If you're writing managed code, take a look at Thread.Start method in the documentation. Basically, I want to emphasise that there's no sane reason or excuse to use CreateThread from your code. There are safer and sane alternatives.


“Follow your bliss.” – Joseph Campbell

GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 5:15
kikoso23-Nov-09 5:15 
QuestionSubscript requires array or pointer type Pin
deadlyabbas23-Nov-09 0:47
deadlyabbas23-Nov-09 0:47 
AnswerRe: Subscript requires array or pointer type Pin
Cedric Moonen23-Nov-09 1:03
Cedric Moonen23-Nov-09 1:03 
AnswerRe: Subscript requires array or pointer type Pin
T210223-Nov-09 1:29
T210223-Nov-09 1:29 
QuestionHow can i register a service using Visual Studio Setup .??? Pin
jain_MS22-Nov-09 23:53
jain_MS22-Nov-09 23:53 
QuestionLinking problem Pin
KASR122-Nov-09 23:50
KASR122-Nov-09 23:50 
AnswerRe: Linking problem Pin
Cedric Moonen22-Nov-09 23:56
Cedric Moonen22-Nov-09 23:56 
GeneralRe: Linking problem Pin
KASR122-Nov-09 23:59
KASR122-Nov-09 23:59 
GeneralRe: Linking problem Pin
Cedric Moonen23-Nov-09 0:10
Cedric Moonen23-Nov-09 0:10 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:13
KASR123-Nov-09 0:13 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:35
KASR123-Nov-09 0:35 
AnswerRe: Linking problem Pin
Richard MacCutchan23-Nov-09 0:02
mveRichard MacCutchan23-Nov-09 0:02 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:10
KASR123-Nov-09 0:10 
GeneralRe: Linking problem Pin
Cedric Moonen23-Nov-09 0:14
Cedric Moonen23-Nov-09 0:14 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:19
KASR123-Nov-09 0:19 
GeneralRe: Linking problem Pin
Richard MacCutchan23-Nov-09 0:22
mveRichard MacCutchan23-Nov-09 0:22 
AnswerRe: Linking problem Pin
KarstenK23-Nov-09 0:13
mveKarstenK23-Nov-09 0:13 

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.