DLL exported routines ordinal assigning

Hi,

I’m adding new exported functions to the DLL (ASPI layer code if you care).
By default linker assignes the ordinal numbers in alphabetic order. This
does not work for me as Adaptec layer assignes numbers in other way. So I
have a question: how to tell the linker about ordinal numbers?

Thanks for help,
Anton


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Anton,

You use a DEF file to specify the ordinal numbers for exported functions.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HT
ML/_core_module.2d.definition_files.asp

Shaun

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@hotmail.com
Sent: Sunday, October 21, 2001 7:13 PM
To: NT Developers Interest List
Subject: [ntdev] DLL exported routines ordinal assigning

Hi,

I’m adding new exported functions to the DLL (ASPI layer code if you care).
By default linker assignes the ordinal numbers in alphabetic order. This
does not work for me as Adaptec layer assignes numbers in other way. So I
have a question: how to tell the linker about ordinal numbers?

Thanks for help,
Anton


You are currently subscribed to ntdev as: xxxxx@tenpennies.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I think you can assign the ordinals in the def file.

Gary

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Sunday, October 21, 2001 7:13 PM
To: NT Developers Interest List
Subject: [ntdev] DLL exported routines ordinal assigning

Hi,

I’m adding new exported functions to the DLL (ASPI layer code if you care).
By default linker assignes the ordinal numbers in alphabetic order. This
does not work for me as Adaptec layer assignes numbers in other way. So I
have a question: how to tell the linker about ordinal numbers?

Thanks for help,
Anton


You are currently subscribed to ntdev as: xxxxx@inland.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Use the .DEF file.
It is a good idea anyway to prevent name mangling by the compiler.

Max

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Sunday, October 21, 2001 7:13 PM
Subject: [ntdev] DLL exported routines ordinal assigning

> Hi,
>
> I’m adding new exported functions to the DLL (ASPI layer code if you care).
> By default linker assignes the ordinal numbers in alphabetic order. This
> does not work for me as Adaptec layer assignes numbers in other way. So I
> have a question: how to tell the linker about ordinal numbers?
>
> Thanks for help,
> Anton
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com