DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Grace Faustino Guest

    DLL accessing from C++.


    I am trying do create a C++ DLL that can be accessed from visual basic. Every
    time I try to access the functions in the DLL the VB application gives me
    an error saying " Can't DLL entry Point". I am exactly sure how to construct
    a .def file for VB. Also I would appreciate we someone out there has sample
    code for creating a small dll and accessing it from a VB application.

  2. #2
    prasanna Guest

    Re: DLL accessing from C++.


    hi,
    what do you have as the entry point for ur dll is it DllMain or do you
    have a DllGetClassObject(other words a COM DLL).

    In case you have DllMain as the entrypoint try using the __declspec(dllexport)
    instead of using .def file... it sounds weird but it works for me...

    pras.

    "Grace Faustino" <inyaa@hotmail.com> wrote:
    >
    >I am trying do create a C++ DLL that can be accessed from visual basic.

    Every
    >time I try to access the functions in the DLL the VB application gives me
    >an error saying " Can't DLL entry Point". I am exactly sure how to construct
    >a .def file for VB. Also I would appreciate we someone out there has sample
    >code for creating a small dll and accessing it from a VB application.



Bookmarks

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links