Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   Installation / Documentation (http://www.xtremevbtalk.com/installation-documentation/)
-   -   declaring standard dll's in vb6 (http://www.xtremevbtalk.com/installation-documentation/323418-declaring-standard-dlls-vb6.html)

thewallrus 02-19-2012 10:01 PM

declaring standard dll's in vb6
Hi, I am trying to call a .NET dll in VB6, and I am getting a "Cannot find entry point" error. I've got something like this:

Private Declare Function GetJunk Lib "C:\location\net.dll" (ByVal mystuff as string) as integer

Private Sub dostuff ()
Dim result as integer
result = GetJunk("Burrito")
End Sub

Unfortunately I cannot recreate the DLL.

1st question) Is the problem with the function name GetJunk at the declaration? Or is it the way that I call the GetJunk funtion in the sub?

2nd Question) What if when the dll was created there are two funcitons of the same name but under two different classes? There isn't a way to tell the declartion that this function comes from a certain class?

All times are GMT -6. The time now is 04:19 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.