CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Dll in VBasic

  1. #1
    Join Date
    Jun 2001
    Posts
    36

    Dll in VBasic

    hi every one

    i wonder if someone can help me here
    i'm programing in access with visual basic codes and i included a function of a dll in the module section
    Public Declare Function GenerateLicenceID Lib "C:\Final\bin\vproc.dll" (ByVal sBaseID As String, ByVal duration As Integer, ByRef sLicenceID As String)

    but when i call the function i get an error can't find entry of c:\Final\bin\vproc.dll
    can someone help please



  2. #2
    Join Date
    Sep 2001
    Location
    New Haven, CT
    Posts
    4

    Re: Dll in VBasic

    Remove the Public Declare Function line from your code.
    On the Tools menu select "References" and set a reference to your dll here.

    In the code do something similar to the following:

    Public objTest as New vproc [or whatever the name of the object is]
    objTest.GenerateLicenseID(?,?,? [insert parameter values])

    Hope this helps!
    -Kelli



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured