Original Post
When I debug and check the value in temp , it equals zero which means no error. But I don''t see a savefiledialog anywhere!
Anyone know whats wrong?:
OPENFILENAME ofn; ofn.lStructSize = sizeof( OPENFILENAME );//OPENFILENAME_SIZE_VERSION_400; ofn.hwndOwner = g_hWnd; ofn.Flags = OFN_OVERWRITEPROMPT; ofn.lpstrDefExt = "txt"; GetSaveFileName( &ofn ); DWORD temp = GetLastError();