I run an application(e.g. Test.exe) in Debug or Release mode, without manifest file, the applcation will good. But, I met a GDI Objects leak issue, when I run the application with a manifest file(e.g. Test.exe.manifest). the follow is in the manifest file: The leak will not issue, when I remove the codes from the manifest file, or, the leak will not issue , I rename the application name(e.g. ATest.exe). The GDI Objects leak due to manifest file? Who can give me some comments, thanks in advance!
Yu Zhiquan
Posts
-
GDI Objects LEAK due to manifest file codes? -
map erase issueWhen I use map erase in "for", it will be error, I do not know the reason, who can tell me details, and how to correct it? thanks a lot! following is code: #pragma warning(disable:4786) #include #include #include using namespace std ; typedef map STRING2INT; void main() { STRING2INT MyMap; STRING2INT::iterator MyIterator; MyMap["January"] = 1; MyMap["February"] = 2; MyMap["March"] = 3; MyMap["April"] = 4; MyMap["May"] = 5; MyMap["June"] = 6; MyMap["July"] = 7; MyMap["August"] = 8; MyMap["September"] = 9; MyMap["October"] = 10; MyMap["November"] = 11; MyMap["December"] = 12; for (MyIterator = MyMap.begin(); MyIterator!=MyMap.end(); MyIterator++) { MyMap.erase(MyIterator); } cout << MyMap.size() << endl; }
-
Unicode issue? How to resolve?CFileFind find; ... ... CString strTemp = find.GetFilePath(); on WindowsXP with language for non-unicode programs "English(United States)" to use CFileFind::GetFilePath to get file path, the path is "F:\MY MUSIC\MP3\城里的月光.MP3", which encoding chinese(PRC), so strTemp get such as "F:\MY MUSIC\MP3\?????.MP3". Is it unicode issue? How to solve it?
-
"parameter not optional"?I add an interface to an OCX, when I use the OCX, it throw an exception and pop a message box "parameter not optional". Why? who can tell me reason? Thanks a lot!
-
How to get the information from CDHi! How to get the music's detail information such as title, artist, album and genre etc from a CD format file?:confused: Thanks!