muta...@gmail.com
2023-05-12 13:24:52 UTC
I would like to create a library that allows people with
compilers that only do cdecl (ie subc) to call Windows
functions.
So I created some assembler "glue".
I can get a link, but it doesn't actually create the directory,
and then it crashes.
I have tried various combinations.
Any ideas?
.386p
.model flat
.code
extrn ***@8:dword
public _CreateDirectoryA
_CreateDirectoryA:
push 8[esp]
push 8[esp]
push [***@8]
ret
ret
Thanks. Paul.
compilers that only do cdecl (ie subc) to call Windows
functions.
So I created some assembler "glue".
I can get a link, but it doesn't actually create the directory,
and then it crashes.
I have tried various combinations.
Any ideas?
.386p
.model flat
.code
extrn ***@8:dword
public _CreateDirectoryA
_CreateDirectoryA:
push 8[esp]
push 8[esp]
push [***@8]
ret
ret
Thanks. Paul.