-
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.
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks