Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Version info of executing DLL

lklawrie1
Beginner
652 Views
I have built a DLL with a Version resource in it and want to access it during the running of a program which is calling the DLL. The Version info routine that I've been using is accessing the version of the program fine, but I need the version number off the DLL.
Linda
0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
652 Views
You can get the handle (HINSTANCE/HMODULE) of a Dll either by:

* Using GetModuleHandle("DllName.dll"C), or
* Writing a DllMain routine and storing hModule argument, then reusing it later.

I believe that's the missing chain?

Jugoslav
0 Kudos
lklawrie1
Beginner
652 Views
Thanks, will give that a try and let you know.
Linda
0 Kudos
lklawrie1
Beginner
652 Views

That was the key to getting it done, thanks.

Linda

0 Kudos
Reply