Hi everybody,
I have a MapBasic programming question. I am trying to link to a DLL
but when I run my MBX I get the message "Unable to load library abc.dll.
Unable to link to external library abc.dll". Has anyone come across
this before? I heard from MapInfo that only 32 bit dll's are supported
and this is a 32 bit dll so that shouldn't be the problem.
The dll is in C. A snippet of one of the functions in the .h file is:
ABC_OBJECT_C_API ABC_MsgNum ABC_SessionCreate
(ABC_SESSION_HANDLE *sessionHandle); <-- note that sessionHandle has an
"*" infront of it.
ABC_SESSION_HANDLE is typedef'd as an unsigned long.
In my .MB program declared the function as:
Declare Function ABC_sessionCreate LIB "abc.dll"
(ABC_sessionHandle As Integer) As Integer
The dll is called "abc.dll", all lower-case letters. My mbx is stored
in the same subdirectory as the dll.
I defined ABC_sessionHandle as an Integer.
My function call is:
check_status = ABC_sessionCreate (ABC_sessionHandle)
At this point I get the unable to load dll error message.
Any help is greatly appreciated.
Karl
--
_________________________________________________________________
Terratech Mapping Services Inc.
Suite 201 - 7112 Russell Avenue
Burnaby, British Columbia Providing
CANADA V5J 4R9 Geographic Solutions...
Tel: (604) 437-MAPS (6277) Email: [EMAIL PROTECTED]
Fax: (604) 433-5715 http://www.tms.bc.ca
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]