Connecting Tech Pros Worldwide Help | Site Map

export/import C++ managed classes

  #1  
Old May 26th, 2006, 06:05 PM
amirbehzadan@hotmail.com
Guest
 
Posts: n/a
Hello,

I am writing some C++ classes and want to export them as .dll files so
other users can import them and use the methods I have provided in
those classes. I have two types of classes : unmanaged (or regular
classes) and managed (__gc classes). I already know how to use
"__declspec(dllexport)" to export and "__declspec(dllimport" to import
"unmanaged" classes>. However I dont know how to export "managed"
classes since this method doesnt work for them.

Can anyone help me with this ?

Regards,
Amir

  #2  
Old May 26th, 2006, 06:05 PM
Luke Meyers
Guest
 
Posts: n/a

re: export/import C++ managed classes


amirbehza...@hotmail.com wrote:[color=blue]
> I am writing some C++ classes and want to export them as .dll files so
> other users can import them and use the methods I have provided in
> those classes. I have two types of classes : unmanaged (or regular
> classes) and managed (__gc classes). I already know how to use
> "__declspec(dllexport)" to export and "__declspec(dllimport" to import
> "unmanaged" classes>. However I dont know how to export "managed"
> classes since this method doesnt work for them.
>
> Can anyone help me with this ?[/color]

Sorry, we can't. You're asking about nonstandard extensions, which are
off-topic here. I suggest consulting a forum specific to your compiler
and/or platform.

A good clue to help you recognize compiler extensions is the double
leading underscore, which is reserved for that purpose.

Luke

  #3  
Old May 26th, 2006, 06:05 PM
mlimber
Guest
 
Posts: n/a

re: export/import C++ managed classes


amirbehza...@hotmail.com wrote:[color=blue]
> I am writing some C++ classes and want to export them as .dll files so
> other users can import them and use the methods I have provided in
> those classes. I have two types of classes : unmanaged (or regular
> classes) and managed (__gc classes). I already know how to use
> "__declspec(dllexport)" to export and "__declspec(dllimport" to import
> "unmanaged" classes>. However I dont know how to export "managed"
> classes since this method doesnt work for them.
>
> Can anyone help me with this ?[/color]

You're asking in the wrong group. See this FAQ for what is on-topic
here and for a list of potential groups (including Microsoft-specific
ones) that you could post to:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export / Import C++ Managed Classes amirbehzadan@hotmail.com answers 3 May 27th, 2006 08:05 AM
exporting unmanaged classes from a managed dll nikola answers 3 November 17th, 2005 03:42 PM
Migrating to Managed C++ Shai Levi answers 6 November 16th, 2005 09:07 PM
Wrapping native-C++ DLL in Managed C++: LNK2020 problem Jacob Cohen answers 2 November 16th, 2005 09:07 PM