FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DLL Call Constants of the calling conventions
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
DLL Call Constants of the calling conventions
Posted: Tue Sep 17, 2024 04:05 AM
hi,

i saw in Thread https://forums.fivetechsupport.com/viewtopic.php?t=44864&start=41
Code (fw): Select all Collapse
#define DC_CALL_STD 0x20
where can t find these Constants ?

under Xbase++ i have more Constants
Code (fw): Select all Collapse
#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 :?:
greeting,

Jimmy
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: DLL Call Constants of the calling conventions
Posted: Tue Sep 17, 2024 05:44 AM
hbdll.h
Code (fw): Select all Collapse
#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
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: DLL Call Constants of the calling conventions
Posted: Tue Sep 17, 2024 08:39 AM
hi,
Enrico Maria Giordano wrote:hbdll.h
THX for those Constants
just for Interesting : WHERE do i found hbdll.h :?:
greeting,

Jimmy
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: DLL Call Constants of the calling conventions
Posted: Tue Sep 17, 2024 08:51 AM

xharbour\include

Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: DLL Call Constants of the calling conventions
Posted: Tue Sep 17, 2024 08:54 AM
hi
Enrico Maria Giordano wrote:xharbour\include
OK it is from xharbour, thats why i did not found it. THX
greeting,

Jimmy
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: DLL Call Constants of the calling conventions
Posted: Tue Sep 17, 2024 09:05 AM

For Harbour: harbour\contrib\xhb\hbdll.ch

Continue the discussion