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 -- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: ftp://ftp.gerwinski.de/pub/keys/ - AntiSpam: http://spam.abuse.net