I have function which I have created a DLL for. I'm trying to call this function from a C++ program using some code I found online. I know the code works fine when the function in the DLL uses the convention call __stdcall
, however, I don't want to use this calling convention because I don't want to modify my DLL functions.
The part in the C++ application which allows me to prototype the function is as follows:
typedef int(__stdcall * pICFUNC)(int, int);
pICFUNC add;
add = pICFUNC(lpfnGetProcessID);
The question is, can I use this function without having to prototype it with __stdcall
?