I'm trying to get the current directory under win7 with VS c++ but
TCHAR pBuf[MAX_PATH];
int bytes = GetModuleFileName(NULL, pBuf, MAX_PATH);
std::cout << bytes << " " << pBuf << " " << GetLastError() << std::endl;
returns length 58 and what I believe to be a pointer in pBuf pointing to 68. Errorcode is 0.
Thank you!