flat assembler
Message board for the users of flat assembler.

Index > Windows > Import

Author
Thread Post new topic Reply to topic
Inagawa



Joined: 24 Mar 2012
Posts: 153
Inagawa 07 Jun 2012, 18:01
Hello,

how do you make an independent import? Let's say I have a file Main.asm and Test.inc. Main.asm has its idata section and is importing stuff, but I'd like to have an independent idata section in Test.inc too. When I create two idata sections there's a problem and trying it with the weird import fashion in 64PEDEMO doesn't help me.
Post 07 Jun 2012, 18:01
View user's profile Send private message Reply with quote
Enko



Joined: 03 Apr 2007
Posts: 676
Location: Mar del Plata
Enko 07 Jun 2012, 19:27
I think it doesn't work this way. When you assemble main.asm, and make an include of test.inc, the test.inc is assembled inside main.asm.
So there is only one object generated.

If you want test.inc be a seperate model, then assemble it as a DLL. Export the functions that you need. Then import them in main.asm.


If you use imported functions from a dll in test.inc, just include them inside main.asm, that should do the trick.
Post 07 Jun 2012, 19:27
View user's profile Send private message Reply with quote
Inagawa



Joined: 24 Mar 2012
Posts: 153
Inagawa 07 Jun 2012, 20:10
I see, thank you.
Post 07 Jun 2012, 20:10
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.