Hallo,
Before calling GetFileVersionInfo, GetFileVersionInfoSize needs to be called to get the size of information. The problem is that it always return 0 on NetDCU14. However, it returns correct value when running on NetDCU10.
IDE: VS2005 / SDK for NetDCU10
Get exe File Version
-
-
Hello,
what does return a call of "GetLastError" after attempting to retrieve the size?
Got you more details then? -
GetLastError() returns 1814.
According to MSDN it is ERROR_RESOURCE_NAME_NOT_FOUND with the desription:
The specified resource name cannot be found in the image file. -
The problem disappears after the size of an array variable reduced. The array was defined to use more than 20MB memory.