"Win API"의 두 판 사이의 차이

jjuiddong
이동: 둘러보기, 찾기
3번째 줄: 3번째 줄:
 
** http://msdn.microsoft.com/en-us/library/ms969905 사이트를 참조해서 구현했다.
 
** http://msdn.microsoft.com/en-us/library/ms969905 사이트를 참조해서 구현했다.
 
* 실행인자값 가져오기
 
* 실행인자값 가져오기
 +
int nArgs;
 
  LPWSTR *szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
 
  LPWSTR *szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
if (nArgs > 1)
+
if (nArgs > 1)
{
+
{
configFileName = wstr2str(szArglist[ 1]);
+
configFileName = wstr2str(szArglist[ 1]);
SetConfigFileName( configFileName );
+
SetConfigFileName( configFileName );
}
+
}

2013년 5월 15일 (수) 16:32 판

int nArgs;
LPWSTR *szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
if (nArgs > 1)
{
	configFileName = wstr2str(szArglist[ 1]);
	SetConfigFileName( configFileName );
}
개인 도구
이름공간

변수
행위
둘러보기
도구모음