Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cant find dll entry point for a function

Status
Not open for further replies.

thewhip

Programmer
Oct 9, 1999
27
US
the dll was created in VB.  The public function name is very simple(one letter "A").  It is just a test for bigger and better things.  It takes one string parameter and returns a string.  It displays a msgbox with that parameter.  I make the Dll(there is only one anywhere on the system).in a new standard project I declare the function and correct Lib and parameters in and out.  When I call it the project finds the dll OK, but it can't find the functions.  What am I missing?1. I am calling it by name with proper case (its only A)2. I can't be the version because it does it even the first time i make the dll?3. I am not using an alias.4.  If I have methods etc in the class, I can instantiate it and use them, but I am testing for another language where I will not have access to the methods, I need to access a function directly.
 
Assuming that you have made the dll available to the project,<br>under project -&gt; references, you can test whether or not vb<br>is finding the code by typing in projectname (or dll name) <br>period.&nbsp;&nbsp;If vb doesn't then list what (method(s)) is/are available<br>in the dll, it's not going to work. <p>Jim<br><a href=mailto:nx56@inetarena.com>nx56@inetarena.com</a><br><a href= > </a><br>oracle, vb, some javascript
 
That is the problem. I CAN access methods properties etc if I create a reference.&nbsp;&nbsp;I have to access a function because of the limits of the environment that I will eventually will be using it in.&nbsp;&nbsp;So in the end I will be wrapping the methods and properties up into functions with parameters.&nbsp;&nbsp;As a test I tried to create this simple function in a module, but I can't access it.
 
The Whip -<br><br>Two things you said make me think you're trying to access a VB dll as if it were a C/C++ dll.&nbsp;&nbsp;You said &quot;the dll was created in VB.&quot; and then &quot;in a new standard project I declare the function and correct Lib and parameters in and out.&quot;<br><br>VB only can create Active-X dlls.&nbsp;&nbsp;To use them you would use either a reference to them (early binding) or do a CreateObject on them (late binding).&nbsp;&nbsp;You wouldn't use a Define statement on them.&nbsp;&nbsp;The Define is used with system APIs and dll's created by a C development tool.<br><br>Chip H.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top