DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006

    Question Accessing VB dll from VC++

    I have developped windows dll from VB. (The site http://www.windowsdevcenter.com/pub/...ll.html?page=3 gives a way to generate windows dll from VB). when I try to access it from VC++, it gives run time error as access violation. But I can access it from VB client

    If anybody knows the solution to access the DLL in VC++ , created from VB please let me know


  2. #2
    Join Date
    Jan 2006
    In my opinion, you just try to complicate your life. Normally people do the reverse, cause VB is very good to create GUI, and VC++ is very convenient to create classic DLL. I mean if you're VB programmer, do it all in VB, and if you're C programmer, do it all in VC++.
    But if you really want to do it for whatever reason, pay attention to use only basic type in the parameter. Even string for me brings problem (the COM used BSTR instead of that VB string for exchanging). Sorry, if it doesn't help much (but the logic is you can't control the pointer in VB while you have to do it in VC++).

  3. #3
    Join Date
    Jan 2006
    Thanks for your reply, But I need this for an issue. I have checked with a basic datatype also, but what ever the thing, it gives the access violation runtime error.

    please let me know if you have solution for this

    you can contact me at john_christopher_s@hotmail.com

Similar Threads

  1. VB as a career choice?
    By steve in forum Careers
    Replies: 8
    Last Post: 08-08-2008, 09:46 AM
  2. Accessing a Servlet from a VB application
    By Rajesh in forum Enterprise
    Replies: 2
    Last Post: 12-12-2005, 12:17 AM
  3. They created J#, why couldn't they do VB#?
    By Thomas Eyde in forum .NET
    Replies: 290
    Last Post: 12-22-2001, 02:13 PM
  4. How to print image using VB COM DLL and ASP?
    By Tarmo Ausing in forum ASP.NET
    Replies: 0
    Last Post: 01-24-2001, 07:25 AM
  5. Dll Surrogates in VB
    By Eric in forum VB Classic
    Replies: 1
    Last Post: 11-10-2000, 03:27 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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.