flat assembler
Message board for the users of flat assembler.
Index
> Windows > Export variables in dll and access them |
Author |
|
asmcoder 03 Aug 2009, 00:00
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:47; edited 1 time in total |
|||
03 Aug 2009, 00:00 |
|
ass0 03 Aug 2009, 01:24
Thank you, but it stills not solve my problem, because you are using from the same executable the vars.
Maybe i didn't explain myself correctly, what i want is to use the vars of a dll from others dlls, exes, etc. I can compile without errors the dll and the exe "caller", but when i call the var from the exe caller i got runtime error:(0xc0000005). i.e. Code: ;var in a1.dll succesfully exported var1 db 'Hello World ' then i import the a1.dll doing the rva a1_name,rva a1_table... but when i want to use the var1: Code: mov esi,var1 ; i can't use brackets like [var1] because it will treat it as contents and not like address In few words i want to load all my vars stored in a dll from others dlls, exes, etc. |
|||
03 Aug 2009, 01:24 |
|
ass0 03 Aug 2009, 01:37
Another question: How can i create variables at runtime and share them?
|
|||
03 Aug 2009, 01:37 |
|
windwakr 03 Aug 2009, 01:39
I have no help for you, But I do have a question.
Are you coming down from a HLL? Just wondering. |
|||
03 Aug 2009, 01:39 |
|
ass0 03 Aug 2009, 01:44
Yeah i code in Actionscript 3.0 xD and i also know a bit of python, C, php, (javascript of course)...
Why? Do I seem so stupid? xD |
|||
03 Aug 2009, 01:44 |
|
windwakr 03 Aug 2009, 01:56
No, its just the things you want to do seem HLL'ish(at least to me). Is there a reason you don't use the FASM includes? They makes things much easier:
Code:
invoke ExitProcess,eax
instead of Code: push eax call [ExitProcess] And importing and exporting are similarly simple. Hand coding stuff your way at most just saves a few bytes. |
|||
03 Aug 2009, 01:56 |
|
asmcoder 03 Aug 2009, 02:02
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:47; edited 1 time in total |
|||
03 Aug 2009, 02:02 |
|
ass0 03 Aug 2009, 02:24
All i want is pretty simple, i want to get my dlls sorted:
a1.dll will only contain vars, lots of them (strings and integers). a2.dll will only contain functions. a.exe will only load a1.dll and a2.dll. That's so much to ask? In any case, thank you very much asmcoder, you rock my world xD. |
|||
03 Aug 2009, 02:24 |
|
asmcoder 03 Aug 2009, 02:43
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:47; edited 1 time in total |
|||
03 Aug 2009, 02:43 |
|
ass0 03 Aug 2009, 03:00
I don't know, i think is the only reason for the dlls existence xD
|
|||
03 Aug 2009, 03:00 |
|
asmcoder 03 Aug 2009, 04:22
[content deleted]
|
|||
03 Aug 2009, 04:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.