[Jprogramming] cdcb call convention

bill lam bbill.lam at gmail.com
Thu Mar 1 23:20:13 HKT 2007


I downloaded expat_win32bin_2_0_0.exe from http://expat.sourceforge.net/ Those 
callback for SetElementHandler crashes.

You may try using this libexpat.dll to test Oleg's sax addon expat_test1.ijs

It looks like libexpat.dll from Oleg's addon has been modified to use stdcall 
callback, while the official build use cdecl callback.

I think that there are other library from Linux origin also use cdecl callback.

Also does callback return an integer result (in eax) to the caller? Some 
callback are expected to return a integer to indicate action taken or not.

Eric Iverson wrote:
> I will take a look at this and possibly consider it for 602. Can you 
> provide a simple example of a cdecl callback?
> 
> ----- Original Message ----- From: "bill lam" <bbill.lam at gmail.com>
> To: "Programming forum" <programming at jsoftware.com>
> Sent: Thursday, March 01, 2007 3:53 AM
> Subject: [Jprogramming] cdcb call convention
> 
> 
>> It seems that cdcb (15!:13) always assume stdcall call convention in 
>> window. This causes crash when callback is expected to be in cdecl. 
>> Will it be possible to add an alternative set of cdcb that use cdecl?
>>
>> -- 
>> regards,
>> bill
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


-- 
regards,
bill


More information about the Programming mailing list