Bad DLL calling convention 
Author Message
 Bad DLL calling convention

If you had read the vbdll.txt (or something close to that) you would
know that the function has to use the _stdcall calling convetnion, and
that you need to define it in the DEF file via the exports statement:

#include<math.h>
#define DLLexport _declspec(dllexport)
extern  "C" DLLexport int  _stdcall compHyp(int, int);
int compHyp(int leg1, int leg2)
{
  return (int)sqrt(leg1*leg1+leg2*leg2);

Quote:
}

--
Talk is cheap & lies are expensive....
                My wallets fat & so is my head.


Sat, 21 Aug 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Bad DLL calling convention in my MFC (for VB) DLL

2. Bad DLL calling convention?

3. Bad dll calling convention

4. bad dll calling convention, on conversion from 16bit to 32 bit

5. Bad DLL calling convention?

6. Bad DLL calling convention

7. Bad DLL Calling Convention

8. VC6 DLL calls VB6 DLL calls back to VC6 DLL: Occasional GPF or ‘Bad DLL calling convention'

9. Bad DLL Calling Convention???? what ??

10. Desperate! Bad DLL Calling Convention with __stdcall exported functions

11. Desperate! Bad DLL Calling Convention with __stdcall exported functions

12. Calling an exported function of a dll which are exported Stdcall calling convention

 

 
Powered by phpBB® Forum Software