Connecting Tech Pros Worldwide Help | Site Map

export/import C++ managed classes

amirbehzadan@hotmail.com
Guest
 
Posts: n/a
#1: May 26 '06
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

Luke Meyers
Guest
 
Posts: n/a
#2: May 26 '06

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

mlimber
Guest
 
Posts: n/a
#3: May 26 '06

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