Click here to Skip to main content
16,014,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Access Rights! Pin
hph4-Apr-02 9:20
hph4-Apr-02 9:20 
QuestionFunction _beginthreadex not recognized? Pin
NicholasCougar3-Apr-02 21:38
NicholasCougar3-Apr-02 21:38 
AnswerRe: Function _beginthreadex not recognized? Pin
Joaquín M López Muñoz3-Apr-02 21:58
Joaquín M López Muñoz3-Apr-02 21:58 
AnswerRe: Function _beginthreadex not recognized? Pin
Tim Smith4-Apr-02 2:06
Tim Smith4-Apr-02 2:06 
AnswerRe: Function _beginthreadex not recognized? Pin
Le centriste4-Apr-02 5:46
Le centriste4-Apr-02 5:46 
GeneralRe: Function _beginthreadex not recognized? Pin
NicholasCougar4-Apr-02 14:39
NicholasCougar4-Apr-02 14:39 
GeneralRe: Function _beginthreadex not recognized? Pin
Tim Smith4-Apr-02 14:59
Tim Smith4-Apr-02 14:59 
GeneralRe: Function _beginthreadex not recognized? Pin
NicholasCougar4-Apr-02 15:38
NicholasCougar4-Apr-02 15:38 
Ok, let's put it clear and clean.

I've chosen "Win32 Console Application" and then checked "An Empty Application". My application itself is a single thread. Though I set the "Use Runtime Library" as "Multithreads". The debug results are:


--------------------Configuration: Worker - Win32 Debug---------------
Compiling...
worker.cpp
Linking...
LIBCMT.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Worker.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Worker.exe - 2 error(s), 0 warning(s)


Somebody said that I'd used the wrong console. I used "Win32 Console Application", and in "An simple application", the app is just as:

// worker09.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"


int main(int argc, char* argv[])
{
return 0;
}


There is no such thing like "WinMain()".

There are somethings in your comment, but the problem is still out there.




Best regard.

I confess that I am a stubborn guy, but why not put things thoroughly, logically and systematically clean. A quetion can make one somebody if he takes it really seriously.

One concrete prolem is worth a thousand unapplied abstractions.
GeneralCTime !!!! Pin
3-Apr-02 21:36
suss3-Apr-02 21:36 
GeneralRe: CTime !!!! Pin
Michael P Butler3-Apr-02 23:29
Michael P Butler3-Apr-02 23:29 
GeneralRe: CTime !!!! Pin
4-Apr-02 0:28
suss4-Apr-02 0:28 
QuestionThe full path of WordPad.exe ?? Pin
3-Apr-02 21:26
suss3-Apr-02 21:26 
AnswerRe: The full path of WordPad.exe ?? Pin
3-Apr-02 23:05
suss3-Apr-02 23:05 
GeneralRintime error! Pin
Mazdak3-Apr-02 21:09
Mazdak3-Apr-02 21:09 
GeneralRe: Rintime error! Pin
Niklas L3-Apr-02 22:02
Niklas L3-Apr-02 22:02 
GeneralRe: Rintime error! Pin
Mazdak3-Apr-02 22:23
Mazdak3-Apr-02 22:23 
GeneralStatusbar between titlebar and menu Pin
CSZX3-Apr-02 20:12
CSZX3-Apr-02 20:12 
Generalstruct alignment and OSVERSIONINFO Pin
3-Apr-02 19:43
suss3-Apr-02 19:43 
GeneralRe: struct alignment and OSVERSIONINFO Pin
Paul M Watt3-Apr-02 20:33
mentorPaul M Watt3-Apr-02 20:33 
GeneralRe: struct alignment and OSVERSIONINFO Pin
Joaquín M López Muñoz3-Apr-02 20:43
Joaquín M López Muñoz3-Apr-02 20:43 
GeneralRe: struct alignment and OSVERSIONINFO Pin
3-Apr-02 20:47
suss3-Apr-02 20:47 
QuestionOwnerdraw detect XP or Win9x? Pin
3-Apr-02 19:33
suss3-Apr-02 19:33 
AnswerRe: Ownerdraw detect XP or Win9x? Pin
4-Apr-02 18:22
suss4-Apr-02 18:22 
GeneralBYTE and CString Pin
Mazdak3-Apr-02 19:04
Mazdak3-Apr-02 19:04 
GeneralRe: BYTE and CString Pin
Joaquín M López Muñoz3-Apr-02 20:45
Joaquín M López Muñoz3-Apr-02 20:45 

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.