Download Pelles C here: http://www.smorgasbordet.com/pellesc/
HRSRC hVersion = FindResource(GetModuleHandle(NULL), MAKEINTRESOURCE(VS_VERSION_INFO), RT_VERSION);
if (hVersion != NULL) //<-- This line causes an Access Violation
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,2,0
PRODUCTVERSION 1,3,2,0
FILEFLAGSMASK 0x3F
FILEFLAGS 0x0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
{
BLOCK "StringFileInfo"
{
BLOCK "040904B0"
{
VALUE "FileVersion", "1.3.2.0\0"
VALUE "LegalCopyright", "2014 - 2025\0"
VALUE "ProductName", "Instrument Snapshot\0"
VALUE "ProductVersion", "1.3.2.0\0"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x409, 0x4B0
}
}
QuoteMike Henning wrote this app in 2006 and it still builds today using the current version of BCX.
It is important that you build this as a 32-bit executable, to minimize warnings and to ensure
its proper operation. Be certain to build it as a console mode app.
This app can attach a proper Windows binary resource file (*.res) to any 32-bit or 64-bit exe.
This is particularly good news for for folks that prefer working with the MINGW toolchain, as
WINDRES is not particularly adept at dealing with *.res files.
Page created in 1.253 seconds with 15 queries.