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

Thread: newbie in DLL

  1. #1
    Join Date
    Sep 2001
    Posts
    254

    newbie in DLL

    DLL is new to me, and i did the following thru VB6

    class1(myfristclassdll)

    Option Explicit
    Public i As Integer
    Public vCounter As Long
    Public vRecCount As Long
    Public vValue As Long

    Public Function Seekok(pparam As String, pparam2 As String) As Boolean
    Seekok = False
    End Function

    I have compile this and created a DLL file, how can i use this in my vb6 app.

    rgds
    cyrus

  2. #2
    Join Date
    Aug 2000
    Location
    Essex, Uk
    Posts
    1,214

    Re: newbie in DLL

    In your new project you simply make a reference to it through project/references.

    then in code you can either

    Early bind:

    Code:
    dim myDll as new myfristclassdll
    or late bind:
    Code:
    dim myDll = CreateObject("myfristclassdll")


    If you wish to debug it then make a project group, placing this project with your new project.
    If you find my answers helpful, dont forget to rate me

  3. #3
    Join Date
    Jan 2006
    Location
    Pearl of the orient
    Posts
    304

    Re: newbie in DLL

    This should be a good read for you...
    Last edited by dee-u; November 12th, 2008 at 10:44 AM.

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