Function does not exist in DLL (OpenInsight 32-bit Specific)
At 04 APR 2002 07:47:51PM Roman wrote:
I am trying to use a function from existing dll.
I first set up a protoype record, then run DECLARE_FCSN "Proc_Name".
It runs successfully. Then when I use the function in code it
returns "Function does not exist in DLL" error.
I know for sure that this function does exist there. I can
use it from Visual Basic.
I have 32 bit version OpenInsight.
Can someone tell me what causing this error?
Tnanks in advance,
Roman
At 04 APR 2002 09:45PM Donald Bakke wrote:
Roman,
Two things that come to mind initially:
1. Is this a 32-bit DLL?
2. Is the "Proc_name" in your statement DECLARE_FCSN "Proc_Name" the name of the function or the DLL record in SYSPROCS? It should be the latter.
At 05 APR 2002 04:11PM Roman wrote:
Don
It is a 32-bit DLL and "Proc_name" is the name of the
prototype record in SYSPROCS.
Can the problem be related to which data types I am using for parameters when declaring a function?
Is there a "conversion table" which says what data type
in a dll corresponds to which data type in prototype record?
Thanks very much,
Roman
At 05 APR 2002 06:17PM Pat McNerthney wrote:
Roman,
Some things to keep in mind is 32-bit dlls are case-sensitive, whereas 16-bit dlls were not. Also, many of the system APIs have two versions, one that ends with an "A" (for the ansi version) and one that ends with a "W" (for the unicode version).If you are still having problems, I would recommend getting a hold of a tool that will display the names exported by a dll, that way you can see if the name you are trying to import really is exported by the dll in question.Pat McNerthney