1. define_c_proc/func Argument?

Dumb Q? regarding argument value.

Could someone please explain define_c_proc(dll, name, args),
I recieve 166777220 and 33554436 but no other argument values
for both proc and funcs.

Is this the same with all Win O/S's? on all Machines?

example:
RegisterWindowMessageA{16777220}
InitCommonControlsEx{16777220}
GetSysColor{16777220}
GetStockObject{16777220}
GetDoubleClickTime{}
GetSystemMetrics{16777220}
GetDC{33554436}
SaveDC{33554436}
GetDeviceCaps{33554436,16777220}
RestoreDC{33554436,16777220}
ReleaseDC{33554436,33554436}

ETC.....
Euman

new topic     » topic index » view message » categorize

2. Re: define_c_proc/func Argument?

Sure,
  "dll"  is the value returned by open_dll.
  "name" is the name of the library routine.
  "args" is a sequence that contains a list of the argument datatypes
expected by the library routine in question.

These values are defined in DLL.E

and I quote ...

-----------------------
global constant
  C_CHAR    = #01000001,
  C_UCHAR   = #02000001,
  C_SHORT   = #01000002,
  C_USHORT  = #02000002,
  C_INT     = #01000004,
  C_UINT    = #02000004,
  C_LONG    = C_INT,
  C_ULONG   = C_UINT,
  C_POINTER = C_ULONG,
  C_FLOAT   = #03000004,
  C_DOUBLE  = #03000008
---------------------


------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."

----- Original Message -----
From: "Euman" <euman at bellsouth.net>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, March 03, 2001 10:22 AM
Subject: define_c_proc/func Argument?


> Dumb Q? regarding argument value.
>
> Could someone please explain define_c_proc(dll, name, args),
> I recieve 166777220 and 33554436 but no other argument values
> for both proc and funcs.
>
> Is this the same with all Win O/S's? on all Machines?
>
> example:
> RegisterWindowMessageA{16777220}
> InitCommonControlsEx{16777220}
> GetSysColor{16777220}
> GetStockObject{16777220}
> GetDoubleClickTime{}
> GetSystemMetrics{16777220}
> GetDC{33554436}
> SaveDC{33554436}
> GetDeviceCaps{33554436,16777220}
> RestoreDC{33554436,16777220}
> ReleaseDC{33554436,33554436}
>
> ETC.....
> Euman
>
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu