Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to creat exe files? Pin
gamitech15-Nov-04 19:59
gamitech15-Nov-04 19:59 
GeneralRe: How to creat exe files? Pin
Dody_DK17-Nov-04 7:37
Dody_DK17-Nov-04 7:37 
GeneralRe: How to creat exe files? Pin
gamitech17-Nov-04 10:35
gamitech17-Nov-04 10:35 
GeneralRe: How to creat exe files? Pin
Dody_DK17-Nov-04 10:53
Dody_DK17-Nov-04 10:53 
GeneralRe: How to creat exe files? Pin
gamitech17-Nov-04 10:56
gamitech17-Nov-04 10:56 
GeneralRunning main() from a dialog-based control Pin
aaadetos13-Nov-04 9:30
aaadetos13-Nov-04 9:30 
GeneralRe: Running main() from a dialog-based control Pin
aaadetos13-Nov-04 12:55
aaadetos13-Nov-04 12:55 
GeneralRe: Running main() from a dialog-based control Pin
John R. Shaw13-Nov-04 16:58
John R. Shaw13-Nov-04 16:58 
Sigh | :sigh: How did you manage to get to 20 source files without knowing how to program?
(Never mind) The main() it the enterance to your program. That is you have to have one and only one main() function (routine, method or what ever you what to call it), otherwize you have no program.

Now down to business!

What ever code you put in the main() function move it to another function (name it anything you like). Now all you have to do is call that new function (simple).

Oh! By the way the new fuction should not be in the same file as the origanal main() funtion and the file containing the origanal main() funtion should not be included in the build.


INTP
GeneralRe: Running main() from a dialog-based control Pin
aaadetos14-Nov-04 16:16
aaadetos14-Nov-04 16:16 
GeneralRe: Running main() from a dialog-based control Pin
John R. Shaw17-Nov-04 7:39
John R. Shaw17-Nov-04 7:39 
GeneralRe: Running main() from a dialog-based control Pin
aaadetos19-Nov-04 21:39
aaadetos19-Nov-04 21:39 
GeneralRe: Running main() from a dialog-based control Pin
John R. Shaw20-Nov-04 11:03
John R. Shaw20-Nov-04 11:03 
GeneralCEdit subclass question Pin
nguyenvhn13-Nov-04 6:48
nguyenvhn13-Nov-04 6:48 
GeneralRe: CEdit subclass question Pin
BlackDice13-Nov-04 11:39
BlackDice13-Nov-04 11:39 
GeneralRe: CEdit subclass question Pin
nguyenvhn13-Nov-04 14:46
nguyenvhn13-Nov-04 14:46 
GeneralRe: CEdit subclass question Pin
John R. Shaw13-Nov-04 17:29
John R. Shaw13-Nov-04 17:29 
GeneralRe: CEdit subclass question Pin
Ravi Bhavnani13-Nov-04 23:21
professionalRavi Bhavnani13-Nov-04 23:21 
GeneralCAsyncSocket Question Pin
Rassul Yunussov13-Nov-04 0:01
Rassul Yunussov13-Nov-04 0:01 
Generaltime critical thread Pin
LeeeNN12-Nov-04 20:17
LeeeNN12-Nov-04 20:17 
GeneralRe: time critical thread Pin
Michael Dunn13-Nov-04 5:39
sitebuilderMichael Dunn13-Nov-04 5:39 
GeneralRe: time critical thread Pin
Anonymous13-Nov-04 9:57
Anonymous13-Nov-04 9:57 
GeneralRe: time critical thread Pin
John R. Shaw13-Nov-04 17:49
John R. Shaw13-Nov-04 17:49 
GeneralPostThreadMessage Pin
includeh1012-Nov-04 19:17
includeh1012-Nov-04 19:17 
GeneralRe: PostThreadMessage Pin
peterchen12-Nov-04 19:50
peterchen12-Nov-04 19:50 
Questionemail ? Pin
BaldwinMartin12-Nov-04 18:25
BaldwinMartin12-Nov-04 18:25 

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.