Click here to Skip to main content
14,842,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting Fortran source to C++ Source Pin
leon de boer9-Jun-16 4:21
Memberleon de boer9-Jun-16 4:21 
GeneralRe: Converting Fortran source to C++ Source Pin
David A. Gray13-Jun-16 11:35
MemberDavid A. Gray13-Jun-16 11:35 
AnswerRe: Converting Fortran source to C++ Source Pin
Richard MacCutchan9-Jun-16 3:42
mveRichard MacCutchan9-Jun-16 3:42 
AnswerRe: Converting Fortran source to C++ Source Pin
leon de boer9-Jun-16 4:10
Memberleon de boer9-Jun-16 4:10 
QuestionC++ and Visual Studio help? Error messages etc.. Pin
User 125396568-Jun-16 8:19
MemberUser 125396568-Jun-16 8:19 
SuggestionRe: C++ and Visual Studio help? Error messages etc.. Pin
David Crow8-Jun-16 9:32
MemberDavid Crow8-Jun-16 9:32 
AnswerRe: C++ and Visual Studio help? Error messages etc.. Pin
Richard MacCutchan8-Jun-16 20:53
mveRichard MacCutchan8-Jun-16 20:53 
AnswerRe: C++ and Visual Studio help? Error messages etc.. Pin
leon de boer8-Jun-16 21:57
Memberleon de boer8-Jun-16 21:57 
Sometimes I just shake my head at answers offered ... anyhow moving on Smile | :)

Basically your definition of WinMain isn't correct it has parameters and a call directive, it will look like an overloaded function in that form
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){


I haven't done this in ages but you had a console app and are trying to turn it to a windows app so there will be a project setting somewhere. To be honest the fastest way to do this will be to set the project up from scratch. Delete all the files in your directory except the source files and stuff you made. Then goto "new project" and select your directory but make sure you select Win32 Application not Win32 Console Application. On the next screen click on the "application settings" and tick the box "empty project". Ok all that and you get an empty project.

Now on the source files entry in solution explorer simply select "add existing item" and bring your source files in as you need.

With the right WinMain you are then good to compile and all should be fixed.

If that all gets too hard here is one I prepared earlier Smile | :) Skeleton Windows App project setup[^]
In vino veritas


modified 9-Jun-16 4:21am.

GeneralRe: C++ and Visual Studio help? Error messages etc.. Pin
Richard MacCutchan8-Jun-16 22:26
mveRichard MacCutchan8-Jun-16 22:26 
QuestionMemory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
lostangels5-Jun-16 4:37
Memberlostangels5-Jun-16 4:37 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
Daniel Pfeffer5-Jun-16 21:39
professionalDaniel Pfeffer5-Jun-16 21:39 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
Richard MacCutchan5-Jun-16 22:35
mveRichard MacCutchan5-Jun-16 22:35 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
Victor Nijegorodov6-Jun-16 1:17
MemberVictor Nijegorodov6-Jun-16 1:17 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
leon de boer6-Jun-16 3:27
Memberleon de boer6-Jun-16 3:27 
QuestionType checking Pin
Rahul Thengadi4-Jun-16 10:26
MemberRahul Thengadi4-Jun-16 10:26 
AnswerRe: Type checking Pin
leon de boer4-Jun-16 21:03
Memberleon de boer4-Jun-16 21:03 
Questionwhat is the difference between definition numeric value 0.0, .0, 0.? Pin
Member 125258022-Jun-16 22:23
MemberMember 125258022-Jun-16 22:23 
AnswerRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Richard MacCutchan2-Jun-16 23:40
mveRichard MacCutchan2-Jun-16 23:40 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Member 125258023-Jun-16 1:59
MemberMember 125258023-Jun-16 1:59 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Jochen Arndt3-Jun-16 2:38
professionalJochen Arndt3-Jun-16 2:38 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Richard MacCutchan3-Jun-16 2:42
mveRichard MacCutchan3-Jun-16 2:42 
QuestionSyntax of How to Call a Member Function via a Function Pointer Pin
Bram van Kampen1-Jun-16 14:37
MemberBram van Kampen1-Jun-16 14:37 
AnswerRe: Syntax of How to Call a Member Function via a Function Pointer Pin
Jochen Arndt1-Jun-16 21:09
professionalJochen Arndt1-Jun-16 21:09 
SuggestionRe: Syntax of How to Call a Member Function via a Function Pointer Pin
Richard MacCutchan1-Jun-16 21:09
mveRichard MacCutchan1-Jun-16 21:09 
AnswerRe: Syntax of How to Call a Member Function via a Function Pointer Pin
leon de boer4-Jun-16 5:00
Memberleon de boer4-Jun-16 5:00 

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.