Connecting Tech Pros Worldwide Help | Site Map

export/import C++ managed classes

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 26th, 2006, 05:05 PM
amirbehzadan@hotmail.com
Guest
 
Posts: n/a
Default export/import C++ managed classes

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, 05:05 PM
Luke Meyers
Guest
 
Posts: n/a
Default 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, 05:05 PM
mlimber
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.