by czcomtt » Jul 6, 2008 @ 5:39pm
and I had a question, how to get my app's current dir?
when I call CreateFile(...), the file was created in the root, but I want to create it in the path same with my app.
I had search the wm5 sdk, but no result, need you help.
I had solved it by
WINAPI DWORD GetModuleFileName(
HMODULE hModule,
LPWSTR lpFilename,
DWORD nSize
);
if you had a better way to solve my problem, tell me please, 3Q!