Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2004

Tip: Looking for answers? Try searching our database.

how to export functions from dll

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dirk Reske - 26 Nov 2004 23:45 GMT
Hello,

I try to write a managed c++ dll
that exports some functions that should be called by a c++ app.
in this functions i will call a function in a c# dll

int __declspec(dllexport)plugin_main(char *event, void *data)
{
       //Here I call my C# functions
}

Is this declaration right? Because the host app (C++) gives an error.
The host app tries to call the plugin_main(...) method.
Is this exportet right?
Torben Laursen - 28 Nov 2004 19:13 GMT
I do not know if it will help but try to add a __stdcall to the function
def, like this

extern "C" __declspec(dllexport) int __stdcall plugin_main(char *event, void
*data)

Hope it helps

Torben

> I try to write a managed c++ dll
> that exports some functions that should be called by a c++ app.
[quoted text clipped - 8 lines]
> The host app tries to call the plugin_main(...) method.
> Is this exportet right?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.