[Mono-list] delegate: more problem & solution
Lloyd Dupont
lloyd@galador.net
Tue, 13 Nov 2001 20:35:46 +0100
Happily someone gives me the solution.
in my C struct i must declare _cdel function
i mean
int (_cdecl * read) (void * ptr, int l, int buf);
now i realize that all my interop code could have a problem ?
(as i never use the CallingConvention field before)
or the solution might lie in the default value of the CallingConvention
field of the DllImport attribute class, what is its value ?
but i fell i have done a mistake, but curiously (until now) all my
programs run well and behave as expected, anyone has any idea,
experience, explanation ?