Author Topic: DLL function Declaration  (Read 7179 times)

0 Members and 2 Guests are viewing this topic.

Emil_halim

  • Guest
Re: DLL function Declaration
« Reply #30 on: April 24, 2013, 08:22:34 AM »
Chales ,

how to declare an import function as a c function "cdecl" ?

Charles Pegge

  • Guest
Re: DLL function Declaration
« Reply #31 on: April 24, 2013, 10:57:06 PM »
cdecl can go into the xtern statement, if it applies to several functions, or it can be applied to individual functions:

extern lib "mylib.dll" cdecl
! myproc alias "MyProc" (..)
end extern

extern lib "mylib.dll"
! myproc cdecl alias "MyProc" (..)
end extern


Emil_halim

  • Guest
Re: DLL function Declaration
« Reply #32 on: April 25, 2013, 07:19:52 AM »

yes that will help me a lot, thanks Charles.