This question is directed to f0dder but if anyone else can help me out..

I'm am trying to make a LIB or DLL in Assembly and then link it with app written in C.
I do this all the time with Assembly apps and it works fine but with damned VC++ I just can't do it. I quess it's something that has to do with calling conventions or something.

What is the correct way for declaring functions in ASM code and protoryping them in C headers?
Posted on 2002-01-10 17:15:27 by Milos
Have u added the .lib file to the vc++ project and defined the function in the header file? What error messages are you getting?
Posted on 2002-01-11 00:52:33 by Quantum
In case your compiler operates in C++ mode,


extern "C" void MyAssemblyProc(int a, int b);


will allow you to call



MyAssemblyProc PROC C, A:DWORD, B:DWORD
; yadda yadda
ret
MyAssemblyProc ENDP
Posted on 2002-01-11 01:45:42 by f0dder
Thanks man, this helps.
Posted on 2002-01-11 03:36:52 by Milos