DLL 경로 가져오기

399 단어 dll
char g_PlayerPath [MAX_PATH];
//  DLL     
	HMODULE hMyDll;
	hMyDll=GetModuleHandle(_T("Camera.dll"));
	::GetModuleFileName( hMyDll,g_PlayerPath, MAX_PATH );
	TCHAR szFull[_MAX_PATH];
	TCHAR szDrive[_MAX_DRIVE];
	TCHAR szDir[_MAX_DIR];
	_tsplitpath(g_PlayerPath, szDrive, szDir, NULL, NULL);
	_tcscpy(g_PlayerPath, szDrive);
	_tcscat(g_PlayerPath, szDir);

좋은 웹페이지 즐겨찾기