source: trunk/Utilities/Miscellaneous/GetModuleFileName01/GetModuleFileName01.cpp @ 937

Last change on this file since 937 was 391, checked in by roman, 9 years ago
File size: 379 bytes
RevLine 
[391]1#include "stdafx.h"
2
3int _tmain(int argc, _TCHAR* argv[])
4{
5        TCHAR pszPath1[MAX_PATH] = { 0 };
6        GetModuleFileName(NULL, pszPath1, _countof(pszPath1));
7        _tprintf(_T("(%d) %s\n"), _tcslen(pszPath1), pszPath1);
8        TCHAR pszPath2[2048] = { 0 };
9        GetModuleFileName(NULL, pszPath2, _countof(pszPath2));
10        _tprintf(_T("(%d) %s\n"), _tcslen(pszPath2), pszPath2);
11        return 0;
12}
13
Note: See TracBrowser for help on using the repository browser.