flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 18 Dec 2012, 16:13
Try copying the DLL to the same folder your executable is at, modify your fasm source to refer the dll just by its filename rather than the full path. If there are still problems, please upload your DLL (the binary, the source is only optional).
|
|||
![]() |
|
nmake 18 Dec 2012, 16:23
printf uses c calling convention, you are not correcting the stack. You should use cinvoke for cdecl convention, even though it should still work, it is not good practice
![]() You must also verify that the dll uses cdecl or stdcall (or fastcall for that matter) You can also correct the stack manually, after printf, put add esp,8 |
|||
![]() |
|
panos90 18 Dec 2012, 16:34
Thanks for the fast replies.
@nmake Oops sorry , i missed that, but it does not fix the problem. @LocoDelAssembly I just tried that, still the problem remains Here is the dll
|
|||||||||||
![]() |
|
nmake 18 Dec 2012, 16:38
Ok
|
|||
![]() |
|
nmake 18 Dec 2012, 16:41
Your dll does not export any function.
If you make a .def(inition) file and store this inside of it Code:
LIBRARY MyLibrary
EXPORTS FunctionName @1 <- Ordinal here
|
|||
![]() |
|
LocoDelAssembly 18 Dec 2012, 16:47
nmake is correct, no function is exported. Have you done this? (Or whatever is necessary, I've never made a DLL in VS actually)
|
|||
![]() |
|
panos90 18 Dec 2012, 17:09
I have followed a tutorial to make my dll.
Just tried what msdn says, and it worked fine. Thank you ![]() |
|||
![]() |
|
shutdownall 18 Dec 2012, 20:12
Never forget the examples section on flatassembler.
There is a working example of creating a DLL. http://flatassembler.net/examples.php |
|||
![]() |
|
DOS386 20 Dec 2012, 01:47
Another one: http://board.flatassembler.net/topic.php?t=11170
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.