Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reading file header Pin
pnpfriend19-Jan-06 5:01
pnpfriend19-Jan-06 5:01 
GeneralRe: reading file header Pin
Blake Miller19-Jan-06 8:40
Blake Miller19-Jan-06 8:40 
QuestionCSliderCtrl redraw when transparent Pin
Jerry Ott III18-Jan-06 10:55
Jerry Ott III18-Jan-06 10:55 
AnswerRe: CSliderCtrl redraw when transparent Pin
Owner drawn18-Jan-06 17:57
Owner drawn18-Jan-06 17:57 
GeneralRe: CSliderCtrl redraw when transparent Pin
Jerry Ott III19-Jan-06 4:06
Jerry Ott III19-Jan-06 4:06 
QuestionVisual C++ and C programming Pin
thierrypp18-Jan-06 7:41
thierrypp18-Jan-06 7:41 
AnswerRe: Visual C++ and C programming Pin
Tombo18-Jan-06 8:02
Tombo18-Jan-06 8:02 
GeneralRe: Visual C++ and C programming Pin
FarPointer18-Jan-06 8:17
FarPointer18-Jan-06 8:17 
QuestionRe: Visual C++ and C programming Pin
David Crow18-Jan-06 8:27
David Crow18-Jan-06 8:27 
AnswerRe: Visual C++ and C programming Pin
thierrypp18-Jan-06 8:32
thierrypp18-Jan-06 8:32 
QuestionRe: Visual C++ and C programming Pin
David Crow18-Jan-06 8:39
David Crow18-Jan-06 8:39 
AnswerRe: Visual C++ and C programming Pin
thierrypp18-Jan-06 8:57
thierrypp18-Jan-06 8:57 
AnswerRe: Visual C++ and C programming Pin
thierrypp18-Jan-06 9:04
thierrypp18-Jan-06 9:04 
GeneralRe: Visual C++ and C programming Pin
David Crow18-Jan-06 9:16
David Crow18-Jan-06 9:16 
GeneralRe: Visual C++ and C programming Pin
thierrypp18-Jan-06 9:25
thierrypp18-Jan-06 9:25 
GeneralRe: Visual C++ and C programming Pin
David Crow18-Jan-06 9:58
David Crow18-Jan-06 9:58 
GeneralRe: Visual C++ and C programming Pin
thierrypp18-Jan-06 10:07
thierrypp18-Jan-06 10:07 
GeneralRe: Visual C++ and C programming Pin
BadKarma18-Jan-06 10:35
BadKarma18-Jan-06 10:35 
GeneralRe: Visual C++ and C programming Pin
thierrypp18-Jan-06 10:42
thierrypp18-Jan-06 10:42 
GeneralRe: Visual C++ and C programming Pin
Graham Bradshaw18-Jan-06 9:10
Graham Bradshaw18-Jan-06 9:10 
GeneralRe: Visual C++ and C programming Pin
thierrypp18-Jan-06 9:16
thierrypp18-Jan-06 9:16 
GeneralRe: Visual C++ and C programming Pin
BadKarma18-Jan-06 9:54
BadKarma18-Jan-06 9:54 
hi,

when code compiled is with a c++ compiler the code needs to be c++ compiler compatible.
C code is almost 90% compliant to c++ code, but there are some distinct issues that one must
know off.
thierrypp wrote:
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main


this error means that the compiler didn't find the main entry point of your code.
you did write
#include <something>

main()
{

you did forget to add a return value for your main function. Some C compilers automatically asume that you meant to write int main(void) but most C++ compilers don't do this automatic translation. Thats way the function main didn't compile hence there is no function to link too -> Unresolved external

The rest of the code looks fine.



codito ergo sum
GeneralRe: Visual C++ and C programming Pin
thierrypp18-Jan-06 9:58
thierrypp18-Jan-06 9:58 
GeneralRe: Visual C++ and C programming Pin
BadKarma18-Jan-06 10:07
BadKarma18-Jan-06 10:07 
GeneralRe: Visual C++ and C programming Pin
thierrypp18-Jan-06 10:20
thierrypp18-Jan-06 10:20 

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.