Page 1 of 1

DLL Call Constants of the calling conventions

Posted: Tue Sep 17, 2024 4:05 am
by Jimmy
hi,

i saw in Thread https://forums.fivetechsupport.com/view ... 4&start=41

Code: Select all | Expand

#define DC_CALL_STD 0x20
where can t find these Constants ?

under Xbase++ i have more Constants

Code: Select all | Expand

#define  DLL_SYSTEM               4
#define  DLL_CDECL                8
#define  DLL_STDCALL             32
#define  DLL_XPPCALL            128

#ifdef   __OS2__
  #define DLL_OSAPI             DLL_SYSTEM
#else
  #define DLL_OSAPI             DLL_STDCALL
#endif
 
how does it look like under Harbour :?:

Re: DLL Call Constants of the calling conventions

Posted: Tue Sep 17, 2024 5:44 am
by Enrico Maria Giordano
hbdll.h

Code: Select all | Expand

#ifndef __DLL_H
   #define __DLL_H

   #define DC_MICROSOFT           0x0000      // Default
   #define DC_BORLAND             0x0001      // Borland compat
   #define DC_CALL_CDECL          0x0010      // __cdecl
   #define DC_CALL_STD            0x0020      // __stdcall
   #define DC_RETVAL_MATH4        0x0100      // Return value in ST
   #define DC_RETVAL_MATH8        0x0200      // Return value in ST

#endif

Re: DLL Call Constants of the calling conventions

Posted: Tue Sep 17, 2024 8:39 am
by Jimmy
hi,
Enrico Maria Giordano wrote:hbdll.h
THX for those Constants
just for Interesting : WHERE do i found hbdll.h :?:

Re: DLL Call Constants of the calling conventions

Posted: Tue Sep 17, 2024 8:51 am
by Enrico Maria Giordano
xharbour\include

Re: DLL Call Constants of the calling conventions

Posted: Tue Sep 17, 2024 8:54 am
by Jimmy
hi
Enrico Maria Giordano wrote:xharbour\include
OK it is from xharbour, thats why i did not found it. THX

Re: DLL Call Constants of the calling conventions

Posted: Tue Sep 17, 2024 9:05 am
by Enrico Maria Giordano
For Harbour: harbour\contrib\xhb\hbdll.ch