Re: ffidl and pascal calling convention
From: Helmut Giese (hgiese_at_ratiosoft.com)
Date: 10/28/03
- Next message: Helmut Giese: "Re: Feasibility question: Simulating (basic) hardware ?"
- Previous message: Marco Maggi: "Re: Feasibility question: Simulating (basic) hardware ?"
- In reply to: Paul Battersby: "ffidl and pascal calling convention"
- Next in thread: Paul Battersby: "Re: ffidl and pascal calling convention"
- Reply: Paul Battersby: "Re: ffidl and pascal calling convention"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Oct 2003 19:59:39 GMT
On Tue, 28 Oct 2003 19:02:41 GMT, "Paul Battersby"
<batman42ca@yahoo.ca> wrote:
>I haven't found any reference to this in the documentation but what do I
>have to do to get ffidl and TCL to deal with a DLL that uses the pascal
>calling convention?
>
>TCL fails to find the DLL procedures when I try to use a DLL that used the
>pascal calling convention.
Hi Paul,
sorry, I cannot help you directly, but I am a bit surprised:
1) If calling conventions don't match, your program will most likely
crash - and not report a 'not found' error.
2) All of Windows is compiled using Pascal calling conventions (IIRC)
and
3) I seem to remember that people reported sucess calling into plain
Windows DLLs via ffidl.
So maybe the problem is somewhere else? Maybe the functions aren't
exported by name but only by index? Or you are not writing the name
'comme il faut': Pascal itself is not case sensitive but Windows is,
so you have to spell the name like it is spelled in the DLL. (Open it
with a hex viewer and search for the name you have been told to use
ignoring case.) Or some other reason, which I can't think of right now
???
HTH
Helmut Giese
- Next message: Helmut Giese: "Re: Feasibility question: Simulating (basic) hardware ?"
- Previous message: Marco Maggi: "Re: Feasibility question: Simulating (basic) hardware ?"
- In reply to: Paul Battersby: "ffidl and pascal calling convention"
- Next in thread: Paul Battersby: "Re: ffidl and pascal calling convention"
- Reply: Paul Battersby: "Re: ffidl and pascal calling convention"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|