Tech Support > Microsoft Windows > Development Resources > dll version resource issue
dll version resource issue
Posted by David Lowndes on February 14th, 2006


Open the good and bad DLLs in Visual Studio and check that the
apparent resource ID value in the bad DLL isn't actually a string -
that was a problem a colleague of mine experienced recently.

Dave

Posted by mayes on February 15th, 2006


Hi,

I can't get my dll to reflect the version information in the resource
file. I am compiling on the command line using Visual Studio .NET 2003.

The resource file contains a "VS_VERSION_INFO" block and compiles ok
with rc.exe. I copied it from one Visual Studio created and then
customized it with my company name, etc.

rc /l 0x409 /fo"libmin.res" libmin.rc

The link has no errors.

link /nodefaultlib:msvcrtd /nodefaultlib:msvcirtd /DEBUG /dll
/nologo /machine:I386 /OUT:lib\libmin.dll /subsystem:windows
....objects... libmin.res

When I right-click the dll in Explorer, there is no version information
for the dll. Is there an option for link I am missing? Is one of my
options preventing the res file from being loaded?

Any help will be sincerely appreciated.

---
Dave Mayes

Posted by mayes on February 16th, 2006


Your tip led me in the right direction. I had trimmed down the contents
of the rc file from what Microsoft created. Apparently I trimmed too
much. :S I restored it to the original contents, and it works now.
Thanks for the help.

---
Dave Mayes


Similar Posts