I have created a DLL by Pascal compiler with a function which takes a pointer to a BYTE array as an argument. My Visual C++ application will also take this BYTE array as output after I call this Pascal function in that DLL. However, the output simply is not correct. The way I load the DLL is like:
typedef void (*MYDLL)(BYTE *);
And then I use LoadLibrary() to load DLL and use GetProcAddress() to get a pointer to myDll() in DLL. However, it simply gave me wrong answers (it works fine if I load that DLL from a Pascal application). So my question is: is there any other things that I need to worry about when I load this DLL because of mixing language issue?