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

Thread: COM DLL

  1. #1
    Join Date
    Jun 2001
    Posts
    28

    COM DLL

    Hi All,

    I have Com DLL which I registered. I am able to see that In Project--Reference. But I don't know how to use that.It has 2 methods.

    Any code will be helpful.

    Thanks,
    Anita



  2. #2
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: COM DLL

    Create object this DLL or define function from this dll. Definition liked on API declaration.

    Andy Tower

  3. #3
    Join Date
    Jun 2001
    Posts
    28

    Re: COM DLL

    Hi Tower,

    Thanks for reply.

    Can you give sample for creating object from dll.

    Thanks,
    Anita


  4. #4
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: COM DLL

    Register DLL. If this correct you can select this dll from Reference menu in IDE.

    Second way: objDll = CreateObject("Test.TestObject")

    Andy Tower

  5. #5
    Join Date
    Mar 2000
    Location
    Arizona, USA
    Posts
    493

    Re: COM DLL

    Here is how you can use your DLL.

    private Sub DLLTest()
    Dim TestDLL as YourDLL

    '//set A new Reference to The DLL
    set TestDLL = new YourDLL

    '//Execute First Method
    TestDLL.Method1 (Any Parameters Needed)

    '//Execute Second Method
    TestDLL.Method1 (Any Parameters Needed)

    End Sub





    Kris
    Software Engineer
    Phoenix,AZ
    Kris
    Software Engineer
    Phoenix, AZ USA

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