flat assembler
Message board for the users of flat assembler.
Index
> Main > Importing symbols without type casting |
Author |
|
l_inc 17 Aug 2015, 14:59
PeExecutable
Didn't check that, but I guess, you could do the following: Code: interface IMyInterface,\ MyMethod1,\ MyMethod2 extrn 'ExternalObjectIMyInterface' as _ExternalObjectIMyInterface:dword virtual at _ExternalObjectIMyInterface ExternalObjectIMyInterface IMyInterface end virtual That's provided the external label references a pointer to the object. If it references the object directly, then you need to use comcall anyway, but still no need to use an intermediate register. _________________ Faith is a superposition of knowledge and fallacy |
|||
17 Aug 2015, 14:59 |
|
PeExecutable 17 Aug 2015, 16:04
That makes sense, I had a thought about 'virtual at' thanks for verifying it. (It reminds me of the absolute directive from nasm.)
|
|||
17 Aug 2015, 16:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.