flat assembler
Message board for the users of flat assembler.

Index > Windows > Old Export Macro

Author
Thread Post new topic Reply to topic
msmith



Joined: 22 Jun 2003
Posts: 40
Location: Missouri
msmith 15 Jun 2006, 05:04
I am using an older version of macro includes for compatability with some older software with my compiler.

Code:
; macroinstruction for making export section

macro export dllname,[label,string]     ; strings must be sorted
 { common
    local module,addresses,names,ordinal,count
    count = 0
   forward
    count = count+1
   common
    dd 0,0,0,RVA module,1
    dd count,count,RVA addresses,RVA names,RVA ordinal
    addresses:
   forward
    dd RVA label
   common
    names:
   forward
    local name
    dd RVA name
   common
    ordinal: count = 0
   forward
    dw count
    count = count+1
   common
    module db dllname,0
   forward
    name db string,0 }
    


I need someone to show me how to declare 3 exported functions using this export macro. I can make it work with one function, but not 2 or three.

Any help greatly appreciated.

Nevermind, I figured it out...

export 'dll1.dll',\
Label1,'Label1',\
Label2,'Label2',\
Label3,'Label3'

Thanks anyway.
Post 15 Jun 2006, 05:04
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 15 Jun 2006, 08:34
Make sure your exports are sorted alphabetically (by ASCII -> so uppercase letters are BEFORE lowercase).
Post 15 Jun 2006, 08:34
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
msmith



Joined: 22 Jun 2003
Posts: 40
Location: Missouri
msmith 15 Jun 2006, 17:35
comrade wrote:
Make sure your exports are sorted alphabetically (by ASCII -> so uppercase letters are BEFORE lowercase).


Thanks for the reminder.

Mike
Post 15 Jun 2006, 17:35
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.