Re: Calling a "procedure of object" routine w/variable parameters
From: Sterling Bates (sterlingb_at_bigbangmapsonco.com)
Date: 10/29/03
- Previous message: Peter Below (TeamB): "Re: Calling a "procedure of object" routine w/variable parameters"
- In reply to: Peter Below (TeamB): "Re: Calling a "procedure of object" routine w/variable parameters"
- Next in thread: Sergio: "Re: Calling a "procedure of object" routine w/variable parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Oct 2003 12:33:46 -0700
"Peter Below (TeamB)" <100113.1101@compuXXserve.com> wrote in message
news:VA.0000a5ea.00955699@nomail.please...
> Which calling convention are you using for your routines? This is of
course
> utterly crucial for this type of coding. The C varargs mechanism only
works
> due to the way cdecl functions put parameters on the stack. That
guarantees
> that the constant parameters are always at the lowest stack positions, at
> known offsets in the stack frame.
It's a stdcall convention. Basically a Delphi routine is called from C,
with the parameter count & parameters passed in through a pointer. I need
to turn these parameters around into a standard Delphi method call.
Solerman Kaplon pointed me to Innerfuse Pascal, which appears to have
related code, though I'd have to trim the framework considerably :-)
I want Delphi developers to create classes that descend from my class, and
are instantly interactive with both native and SpiderMonkey code.
Properties are working, and parameterless functions are good as well, I just
need to get the parameters to work now. (Returning results from the
functions are the next target :-)
Sterling
- Previous message: Peter Below (TeamB): "Re: Calling a "procedure of object" routine w/variable parameters"
- In reply to: Peter Below (TeamB): "Re: Calling a "procedure of object" routine w/variable parameters"
- Next in thread: Sergio: "Re: Calling a "procedure of object" routine w/variable parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|