Hi! I generated 32-bit dll in GNU Pascal. I used examples from GNU Pascal. My new functions (added to that example) work with *.exe program (that program was in examples too) which uses that dll. But when I'm trying to run function from my dll in my program written in
Power Builder 6.0 I get message:"Error opening dll library testdll.dll for external function"
Thanks in advance.
Joanna
Joanna Owczarzak wrote:
I generated 32-bit dll in GNU Pascal. I used examples from GNU Pascal. My new functions (added to that example) work with *.exe program (that program was in examples too) which uses that dll. But when I'm trying to run function from my dll in my program written in Power Builder 6.0 I get message:"Error opening dll library testdll.dll for external function"
Not being a specialist for MS-Windows and DLLs: Maybe your compilers use different naming conventions. To become case insensitive, GPC capitalizes the first letter of each identifier. Maybe Power Builder (Is this a language???) capitalizes everything, or whatever ...
Please see the GPC FAQ list,
http://home.pages.de/~GNU-Pascal/gpc-faq.html ,
the section about interfacing with other languages for how to specify the external name of functions explicitly. (Hint: "asmname".)
Hope this helps,
Peter