Hi Karl.
My guess is that you aren't exporting the function correctly.
In Explorer right click on the DLL and choose QuikView.
Goto the exported functions section and check your function is there.
If it is there then I haven't a clue!
But if it is not there, then make sure you have all the gubbins required to
export the function in your code.
Hope it helps,
Steve


-----Original Message-----
From: Karl Kliparchuk <[EMAIL PROTECTED]>
To: MapInfo listserv <[EMAIL PROTECTED]>
Date: 02 September 1999 23:22
Subject: MI Mapbasic DLL programming question


>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]
>

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to