Click here to Skip to main content
15,915,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Which of these methods is more efficient? Pin
Tim Smith9-May-04 9:27
Tim Smith9-May-04 9:27 
GeneralUsing MFC Source Code Question Pin
nm_1148-May-04 8:26
nm_1148-May-04 8:26 
GeneralRe: Using MFC Source Code Question Pin
Joe Woodbury8-May-04 8:41
professionalJoe Woodbury8-May-04 8:41 
GeneralRPC: Problem in sending data Pin
ahsan_a8-May-04 8:17
ahsan_a8-May-04 8:17 
GeneralRe: RPC: Problem in sending data Pin
ahsan_a8-May-04 12:03
ahsan_a8-May-04 12:03 
GeneralRe: RPC: Problem in sending data Pin
Gary R. Wheeler8-May-04 13:42
Gary R. Wheeler8-May-04 13:42 
QuestionAccess WindowProc in MFC? Pin
Anonymous8-May-04 7:04
Anonymous8-May-04 7:04 
GeneralVoid Pin
soul.ripper8-May-04 7:03
soul.ripper8-May-04 7:03 
I need stop the program,


<br />
<br />
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {<br />
	if (stricmp(lpCmdLine, "-noautorun") == 0) {<br />
		autorun(); <br />
i cant juse break; <br />
    <br />
	}else if (lpCmdLine == NULL || _tcslen(lpCmdLine) == 0) {<br />
<br />
    MessageBox(NULL, _T("No switch specified"), g_pszCaption, MB_OK | MB_ICONEXCLAMATION);<br />
    return 0;<br />
  }<br />
<br />
void autorun(){<br />
if void autorun() ends, <br />
the program needs to stop running <br />
<br />
i cant juse return 0;<br />
<br />
// terminate the program:<br />
  return 0;<br />
}<br />
error C2562: 'autorun' : 'void' function returning a value<br />
<br />

Confused | :confused:
thanx for helping me

Greets Jeroen Big Grin | :-D
GeneralRe: Void Pin
Ryan McDermott8-May-04 7:08
Ryan McDermott8-May-04 7:08 
GeneralRe: Void Pin
soul.ripper8-May-04 8:17
soul.ripper8-May-04 8:17 
GeneralRe: Void Pin
toxcct9-May-04 10:27
toxcct9-May-04 10:27 
GeneralRe: Void Pin
sps-itsec468-May-04 22:34
sps-itsec468-May-04 22:34 
GeneralRe: Void Pin
soul.ripper9-May-04 7:09
soul.ripper9-May-04 7:09 
GeneralRe: Void Pin
Anonymous9-May-04 9:30
Anonymous9-May-04 9:30 
GeneralRe: Void Pin
toxcct9-May-04 10:26
toxcct9-May-04 10:26 
GeneralRe: Void Pin
soul.ripper9-May-04 12:54
soul.ripper9-May-04 12:54 
GeneralRe: Void Pin
toxcct9-May-04 20:56
toxcct9-May-04 20:56 
GeneralAssembley question Pin
Andrew Peace8-May-04 6:34
Andrew Peace8-May-04 6:34 
GeneralRe: Assembley question Pin
Ryan McDermott8-May-04 6:45
Ryan McDermott8-May-04 6:45 
GeneralRe: Assembley question Pin
Andrew Peace8-May-04 7:31
Andrew Peace8-May-04 7:31 
GeneralRe: Assembley question Pin
Ryan McDermott8-May-04 7:46
Ryan McDermott8-May-04 7:46 
GeneralRe: Assembley question Pin
Andrew Peace8-May-04 8:22
Andrew Peace8-May-04 8:22 
GeneralRe: Assembley question Pin
Paul Ranson9-May-04 0:50
Paul Ranson9-May-04 0:50 
GeneralCopyFile help Pin
Ryan McDermott8-May-04 5:33
Ryan McDermott8-May-04 5:33 
GeneralRe: CopyFile help Pin
John R. Shaw8-May-04 6:51
John R. Shaw8-May-04 6:51 

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.