I am using Delphi XE3 write a function, as follows:
function CheckLicense(const lpszAppName: PChar): Integer; stdcall;
begin
...
end;
exports
CheckLicense;
Then should I use CALLBACK in Visual C++ to call it:
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef INT (CALLBACK* CHECKLICENSEPROC)(LPCTSTR lpszAppName);
#ifdef __cplusplus
}
#endif
Or use __stdcall instead?
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef INT (__stdcall* CHECKLICENSEPROC)(LPCTSTR lpszAppName);
#ifdef __cplusplus
}
#endif
Is that correct?