Lazarus

Free Pascal => General => Topic started by: 440bx on December 10, 2018, 07:46:23 am

Title: How to export a library function by ordinal only ?
Post by: 440bx on December 10, 2018, 07:46:23 am
Hello,

What is the syntax in FPC to export a library function by ordinal only ?

The syntax to export by name is well documented but, I have not been able to find the correct syntax to export by ordinal only.  If someone can show what the syntax is to do that (a one-liner example), that would be great.

thank you.
Title: Re: How to export a library function by ordinal only ?
Post by: HeavyUser on December 10, 2018, 07:59:48 am
Hello,

What is the syntax in FPC to export a library function by ordinal only ?

The syntax to export by name is well documented but, I have not been able to find the correct syntax to export by ordinal only.  If someone can show what the syntax is to do that (a one-liner example), that would be great.

thank you.
http://101.lv/learn/delphi/ch19.htm
search for "Exporting by Ordinal Value" in your browser to find it faster.
Title: Re: How to export a library function by ordinal only ?
Post by: 440bx on December 10, 2018, 08:22:04 am
http://101.lv/learn/delphi/ch19.htm
search for "Exporting by Ordinal Value" in your browser to find it faster.
Unfortunately, that exports by name and by ordinal.  I'd like to have the syntax of how to export by ordinal only.

If you have an example of how that is done, that would be very nice.

Thank you.
Title: Re: How to export a library function by ordinal only ?
Post by: HeavyUser on December 10, 2018, 01:04:25 pm
http://101.lv/learn/delphi/ch19.htm
search for "Exporting by Ordinal Value" in your browser to find it faster.
Unfortunately, that exports by name and by ordinal.  I'd like to have the syntax of how to export by ordinal only.

If you have an example of how that is done, that would be very nice.

Thank you.
https://stackoverflow.com/questions/15677327/export-functions-from-dll-only-ordinal
Title: Re: How to export a library function by ordinal only ?
Post by: 440bx on December 10, 2018, 05:22:20 pm
https://stackoverflow.com/questions/15677327/export-functions-from-dll-only-ordinal
That does the trick.  thank you.
TinyPortal © 2005-2018