1
2
3
4
5
6
7
8
9
10
11
12
13 |
#include<windows.h>
#include<tchar.h>
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdPram, int nCmdShow){
TCHAR cmdline[4096] ;
TCHAR* argv[4096] ;
int argc = 0 ;
_tcscpy( cmdline, GetCommandLine() ) ;
argv[argc] = _tcstok( cmdline, TEXT(" \t") ) ;
while( argv[argc] != 0 )
argv[++argc] = _tcstok( 0, TEXT(" \t") ) ;
for(int i=0;i<argc;i++)
MessageBox(NULL, argv[i], "MessageBox caption", MB_OK);
} |
cs |
'C&C++' 카테고리의 다른 글
Using scanf() As gets() (0) | 2018.06.15 |
---|---|
WINAPI GetClipboardData() (0) | 2018.05.17 |
C++ WinSock Sample Code (0) | 2018.04.09 |
[MinGW] Using DLL and Compile Options (0) | 2018.04.09 |
swap using exclusive-or (0) | 2017.02.15 |