Click here to Skip to main content
16,013,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert a HRESULT to a string Pin
Philippe Mori29-May-02 3:49
Philippe Mori29-May-02 3:49 
GeneralRe: Convert a HRESULT to a string Pin
CodeGuy29-May-02 3:44
CodeGuy29-May-02 3:44 
GeneralSubclassing a static control Pin
Cathy29-May-02 3:03
Cathy29-May-02 3:03 
GeneralRe: Subclassing a static control Pin
Roger Allen29-May-02 4:58
Roger Allen29-May-02 4:58 
GeneralRe: Subclassing a static control Pin
Cathy29-May-02 11:45
Cathy29-May-02 11:45 
GeneralATL DLL-server problem Pin
Hans Ruck29-May-02 2:27
Hans Ruck29-May-02 2:27 
GeneralRe: ATL DLL-server problem Pin
[James Pullicino]29-May-02 4:48
[James Pullicino]29-May-02 4:48 
GeneralRe: ATL DLL-server problem Pin
Roger Stewart29-May-02 4:44
professionalRoger Stewart29-May-02 4:44 
This is straight from MSDN, help topic _ATL_MIN_CRT :

Note When building a Release version of a project, you can get the following link error:

LIBCMT.LIB(crt0.obj) : error LNK2001: unresolved external symbol _main

This error occurs if you are using CRT functions that require CRT startup code. The Release configurations define _ATL_MIN_CRT, which excludes CRT startup code from your EXE or DLL. To avoid this error, do one of the following:

Remove _ATL_MIN_CRT from the list of preprocessor defines to allow CRT startup code to be included. On the Project menu, click Settings. In the Settings For: drop-down list, choose Multiple Configurations. In the Select project configuration(s) to modify dialog box that appears, click the check boxes for all Release versions, and then click OK. On the C/C++ tab, choose the General category, then remove _ATL_MIN_CRT from the Preprocessor definitions edit box.

If possible, remove calls to CRT functions that require CRT startup code and use their Win32 equivalents. For example, use lstrcmp instead of strcmp. Known functions that require CRT startup code are some of the string and floating point functions.



Roger Stewart
"I Owe, I Owe, it's off to work I go..."

GeneralRe: ATL DLL-server problem Pin
Hans Ruck29-May-02 5:53
Hans Ruck29-May-02 5:53 
GeneralCompiled HTML Help Pin
LittleYellowBird29-May-02 2:04
LittleYellowBird29-May-02 2:04 
GeneralRe: Compiled HTML Help Pin
Simon Walton29-May-02 2:57
Simon Walton29-May-02 2:57 
GeneralRe: Compiled HTML Help Pin
lucy29-May-02 3:22
lucy29-May-02 3:22 
GeneralRe: Compiled HTML Help Pin
LittleYellowBird29-May-02 4:27
LittleYellowBird29-May-02 4:27 
QuestionHow to implement half-transparent window in win98? Pin
liyuan-rey29-May-02 0:36
liyuan-rey29-May-02 0:36 
AnswerRe: How to implement half-transparent window in win98? Pin
Philippe Mori29-May-02 4:00
Philippe Mori29-May-02 4:00 
GeneralRe: How to implement half-transparent window in win98? Pin
liyuan-rey29-May-02 14:53
liyuan-rey29-May-02 14:53 
GeneralRe: How to implement half-transparent window in win98? Pin
Alex Cramer29-May-02 15:54
Alex Cramer29-May-02 15:54 
AnswerRe: How to implement half-transparent window in win98? Pin
ttzzgg_8071311-Jul-02 22:00
ttzzgg_8071311-Jul-02 22:00 
QuestionHow to set single system cursor for ALL System? Pin
Alex Cramer28-May-02 23:58
Alex Cramer28-May-02 23:58 
AnswerRe: How to set single system cursor for ALL System? Pin
Mike Nordell29-May-02 0:16
Mike Nordell29-May-02 0:16 
GeneralRe: How to set single system cursor for ALL System? Pin
Alex Cramer29-May-02 0:26
Alex Cramer29-May-02 0:26 
GeneralRe: How to set single system cursor for ALL System? Pin
Nish Nishant29-May-02 1:18
sitebuilderNish Nishant29-May-02 1:18 
GeneralRe: How to set single system cursor for ALL System? Pin
Alex Cramer29-May-02 15:49
Alex Cramer29-May-02 15:49 
GeneralRe: How to set single system cursor for ALL System? Pin
Mike Nordell2-Jun-02 1:16
Mike Nordell2-Jun-02 1:16 
GeneralMessageBox (want to use something else) Pin
Grant Cooper28-May-02 23:47
Grant Cooper28-May-02 23:47 

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.