RE: Wrapping C -- errno's?
Matthew Lewis wrote:
>
> > -----Original Message-----
> > From: Andy Serpa [mailto:ac at onehorseshy.com]
>
> >
> > Matthew Lewis wrote:
>
> > As far as callbacks, I solved it using the method described a few
> > messages ago (Re:Callback problem), but you might want to
> > take a look at
> > your func_asm in fptr.e -- seems to call the function ok but
> > not always
> > exit properly, but I'm not qualified to comment. (If I call
> > those same
> > functions that were crashing myself via call_cdecl_func they don't
> > crash, by the way, just when they are called from the .dll.)
>
> Do you know what compiler compiled the dll? As I recall, I only really
> tested using MSVC6. I wonder if the compiler is using some sort of
> fastcall
> convention (passing arguments via register).
>
Visual C++ 6.0 (big thanks to Evan Marshall for compiling it!)
I can send you the .dll and show you the calls that aren't working if
you like. Or just wait a few days until I release the wrapper and you
can just change the callbacks to your method and play around with it...
> > I am still using your library for the rest of the calls as
> > they are all
> > object methods (& cdecl) and there is no other way to call
> > them than by
> > reference, so big thanks to you for that...
>
> Glad someone else has a use for it. :)
>
It makes the otherwise impossible possible, so it is a great help for
using all those existing C libraries out there...
|
Not Categorized, Please Help
|
|