CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Posts
    13

    use functions in vc created dll in vb using add reference

    hi,

    I have successfully created a dll in vc++ using ATL COM.
    And i am able to add reference to it in VB.
    However i am still unable to use the functions inside the dll.
    How should i code my dll so that i can use the functions inside?
    I do not wish to use "declare function"

    Hope someone can help!

    thank you!


  2. #2
    Join Date
    Oct 2000
    Location
    JHB South Africa
    Posts
    27

    Re: use functions in vc created dll in vb using add reference

    I am no C++ programmer, but what i have picked up is that you should not create a dll. You must create an ActiveX project where you specify that you want to compile it as a dll.
    This will cause you to create an interfaceless object that can be included in the Refereces within VB and would also require registration before it can be used.


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