SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Calling dlls

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Calling dlls
Author Message
Sue Gordon



Joined: 29 Aug 2001
Posts: 1

Post Calling dlls Reply with quote

I am trying to call a method inside a dll that I built in Visual basic. I am using the following statement, but am recieving a "GetDLLVersion() not found" error returned. It's finding the dll but not the function.

Call ("UCCRevenue.dll","GetDLLVersion()","s", True,, strRtnVersion)

To do the samething in VB Script (from an ASP page) I would do the following. Is the class getting in the way?

Set oNewObj = Server.CreateObject("UccRevenue.cUccRevenue")
Response.Write("UccRevenue instantiated...Version: " & oNewObj.GetDLLVersion() & " ")
Set oNewObj = Nothing

Please help.

Wed Aug 29, 2001 4:31 pm View user's profile Send private message
Mark Richards



Joined: 05 Jun 2000
Posts: 31

Post Re: Calling dlls Reply with quote

We just experienced a similar issue with Microsoft SQL Server 2000's ODS interface. I believe the function might have one or two underscores preceding the name. Try that, or just take a look inside the DLL to see how VB named it.

-m-

: I am trying to call a method inside a dll that I built in Visual basic. I am
: using the following statement, but am recieving a "GetDLLVersion()
: not found" error returned. It's finding the dll but not the function.

: Call ("UCCRevenue.dll","GetDLLVersion()","s",
: True,, strRtnVersion)

: To do the samething in VB Script (from an ASP page) I would do the following.
: Is the class getting in the way?

: Set oNewObj = Server.CreateObject("UccRevenue.cUccRevenue")
: Response.Write("UccRevenue instantiated...Version: " &
: oNewObj.GetDLLVersion() & " ")
: Set oNewObj = Nothing

: Please help.

Wed Aug 29, 2001 4:39 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Calling dlls Reply with quote

You probably have the Dependencies Walker utility that comes with VStudio. Open your DLL using this utility and check names of your exported functions. Most likely they look like __@34567 or __GetDLLVersion

I don't know how to avoid this in VB but in VC++ you will need to create .DEF file and list every exported function in this file. Also make sure you use standard calling conventions in your project, e.g. __stdcall. This will ensure that exported functions will have correct names.

: I am trying to call a method inside a dll that I built in Visual basic. I am
: using the following statement, but am recieving a "GetDLLVersion()
: not found" error returned. It's finding the dll but not the function.

: Call ("UCCRevenue.dll","GetDLLVersion()","s",
: True,, strRtnVersion)

: To do the samething in VB Script (from an ASP page) I would do the following.
: Is the class getting in the way?

: Set oNewObj = Server.CreateObject("UccRevenue.cUccRevenue")
: Response.Write("UccRevenue instantiated...Version: " &
: oNewObj.GetDLLVersion() & " ")
: Set oNewObj = Nothing

: Please help.

Wed Aug 29, 2001 5:26 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.