Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.55K
~608 People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for DotNetUser

[quote=DotNetUser;165555]I added stdafx.h/.cpp and now it's working. But, how do you detect that no arguments were passed in? I want to set a default value when arguments are not provided.[/quote] [CODE] if(CommandLineToArgvW(GetCommandLineW(), &argc)) printf("commandline: %s %d\n", GetCommandLine(), argc); //CommandLineToArgvW - get# argc else return 0; [/CODE]

Member Avatar for cpg
0
608

The End.