Hi !

I would like to call a function written in a static lib made in masm32 from a VC++ project (visual studio 2008). I have trouble to link it in the project because of the decorated function name.

Can someone please give me a basic template example where you call a function written in a masm32 static lib from a visual c++ project ?

Thank you.
Posted on 2009-06-21 14:39:42 by eoloe
Just declare your proc as extern-C, stdcall :

extern "C"{
int  __stdcall MyProc1(int x,int y);
int  __stdcall MyProc2(int x);
}
Posted on 2009-06-21 19:21:35 by Ultrano