|
From: SourceForge.net <no...@so...> - 2005-11-02 18:23:22
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3410130 By: xeee Some version information functions differ from those that come with the Platform SDK. those are the functions I noticed, but there may be others: GetFileVersionInfo and GetFileVersionInfoSize I think the whole header should be revised The difference I've faced is in the char * parameters, in the Platform SDK they're declared as LPCSTR and LPCWSTR, however in header that come with MinGW, the are declared as LPSTR and LPWSTR. however... in the docs, either the online MSDN or the offline one, they're declared as non-consts!! which one should MinGW stick to? the docs or the headers? I think the headers. for example, the following piece of code compiles successfuly on MSVCTK with Platform SDK installed, however it doesn't compile with the latest MinGW version: const TCHAR* const fileName = "test.exe"; DWORD dummy; const DWORD versionInfoSize = GetFileVersionInfoSize(fileName, &dummy); ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286641 |