Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-07

How to include a Windows Version resource in a fpc compiled DLL?

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alan Krause

I have recently ported over a DLL from Delphi to fpc, so we can offer the DLL as a shared library on 32/64 bit linux, as well as 64-bit Windows.

On the Windows platform, version information is often included as a resource which can be queried & displayed. Is there any way to include this information in the 64-bit fpc compiled DLL?

Thanks much,
Alan

Reply by email

Paul Ishenin
to Alan Krause
Alan Krause wrote
On the Windows platform, version information is often included as a resource which can be queried & displayed. Is there any way to include this information in the 64-bit fpc compiled DLL?

Use Lazarus IDE for editing you dll project. You can set the version information in it and Lazarus create a res file for you.

Best regards,
Paul Ishenin.

Reply by email

Alan Krause
to Paul Ishenin

Paul,

I don't use lazarus, and am trying to automate the entire build and release cycle for the different platforms. Can you provide me with a sample that can be compiled from the command line, or point me towards the appropriate documentation?

Thanks much,
Alan

Paul Ishenin wrote 15 lines
02.07.2010 23:29, Alan Krause wrote: > On the Windows platform, version information is often included as a > resource which can be queried & displayed. Is there any way to include this > information in the 64-bit fpc compiled DLL? > Use Lazarus IDE for editing you dll project. You can set the version information in it and Lazarus create a res file for you. Best regards, Paul Ishenin. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Paul Ishenin
to Alan Krause
Alan Krause wrote
I don't use lazarus, and am trying to automate the entire build and release cycle for the different platforms.

You don't need to use it for every build. Just once to create the res file with version information. If you include that res file into your project {$R myres.res} you will have a dll with the version information.

Best regards,
Paul Ishenin.

Reply by email