Hi All,
Have defined a sub as follows, it is located for testing purposes where the dll is being developed everything is on my local drive. When I run the MBX the DLL runs perfectly it creates a dialog like I wanted.
Declare Sub CCadtrialApp Lib "C:\Program Files\Microsoft Visual Studio\Proj\trial\Debug\trial.dll"()
However when I close the dialog I get the following error:
Unable to load library trial.dll. Unable to link to external library C:\Program Files\Microsoft Visual Studio\Proj\trial\Debug\trial.dll. Unable to read application file.
The funny thing is that everything is running just fine, however I now need to clean this piece up. This is a regular DLL using shared MFC DLL.
Regards,
Hayden Fisher
Development and Support
BizeAsset Pty Ltd
Peter Horsbøll Møller
GIS Developer, MTM
Geographical
Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense
S.
Denmark
Tel
+45 6311 4900
Direct +45 6311
4908
Mob +45 5156
1045
Fax +45 6311
4949
E-mail p...@cowi.dk
http://www.cowi.dk/gis
Hi, Peter, yes same deal and error unfortunately.
Hayden Fisher
Development and Support
BizeAsset Pty Ltd
<BR
I'm trying to call a dll from Map Basic for the first time.
Encountering the same problem as Hayden mentioned some time ago under
this topic.
I have a very simple dll as a sample, which works with VB, but when I
try to access it via MapBasic, I get the following error:
"Unable to load library mydll.dll. Unable to link to external library
C:\lib\mydll.dll. Unable to read application file."
Tried putting it in the same folder as the script itself, still the
same error.
I specifically tried with a script as simple as pasted below.
Would anyone be able to tell what I'm doing wrong?
Include "mapbasic.def"
Declare Sub mysum Lib "mydll.dll"
Declare Sub Main
Sub Main
Call mysum
End Sub
What would be a potential problem on the dll side that would cause it
not to be found/loaded?
Cheers,
Ozlem
Hi All,
Regards,
Hayden Fisher
Development and Support
BizeAsset Pty Ltd
Regards
Uffe Kousgaard
| From: | Oz <Ozlem...@gmail.com> on 10/14/2008 08:30 AM MST |
| To: | MapInfo-L <mapi...@googlegroups.com> |
| cc: |