Hi David,
There's a mailing list devoted to programming issues:
[email protected]
tc

David Graham wrote:
This code always works in a VBA client. It sometimes works in OpenOffice.org Basic.

declare sub HelloWorld lib "c:\dll.dll"
sub calldll
   HelloWorld
end sub

dll.dll is the DLL example from Dev-C++, (using  gcc).
The error indicates that the DLL did not load. LoadLibrary also fails. GetLastError returns zero, presumably because OpenOffice.org Basic has inserted another DLL call after LoadLibrary. Depends (the MS dependency walker) and the DLL viewer I use, do not show any problem with the DLL. MSInfo shows that the DLL is not already loaded. The dependencies are kernel32.dll, msvcrt.dll, and user32.dll.

Rebooting the PC normally allows OpenOffice.org Basic to load the DLL again. Regardless of the state of OpenOffice.org Basic, the DLL always loads and runs correctly from Office 97.

Does anyone have any suggestions about (1) any further tests I can do, (2) any characteristics of DLL's that might cause this behaviour, (3) any characteristics of OpenOfice.org Basic that might cause this behaviour, (4) any characteristics of Windows that might cause this behaviour, or (5) any other places where I could ask this question.

(david)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to