flat assembler
Message board for the users of flat assembler.
Index
> Windows > External Data |
Author |
|
msmith 14 Jun 2006, 05:20
How do you declare data (initialized or uninitialized) in a dll that will actually reside in the the calling program?
|
|||
14 Jun 2006, 05:20 |
|
Vasilev Vjacheslav 15 Jun 2006, 11:12
i think he means how to export constant variable from '.data' section
|
|||
15 Jun 2006, 11:12 |
|
msmith 16 Jun 2006, 02:47
I use FASM as a backend to my compiler. The compiler handles both console and graphic mode.
An example of what I was asking about might be a prestored CRLF string and its dope block. Like Reverend says, the data is reloaded each time the pgm is run, so if the code in the dll tries to reference the CRLF dope block in the calling pgm, it wont know where it is (or if it even exists). It looks like the best thing to do is create the prestored stuff in each dll so each dll has its own copy of all the common compiler vars. Another one is STATUS which is a global var (dword) that stores the result of many functions (especially I/O) for reference by the compiler user to see if the operation was successful. I hope this explains it better. |
|||
16 Jun 2006, 02:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.