
C DLL (VC5) and Bad DLL Calling Convention
Hey --
I'm working on an AI for a game (Ataxx) that is fairly intensive. I've
decided to move the code to a DLL (written in C), but I'm not having
problems whenever I need to pass a parameter to a function in the DLL. One
of the two problematic function is declared:
__declspec(dllexport) void SetLevelAI(int level)
I've been reading through all the different files on the VC CD, but I
haven't found a solution. I'm trying to avoid having to use a DEF file (I'm
trying to keep this simple since this is my first DLL)...
Any ideas?
Thanks!
-Patrick