[RESOLVED] Import entire Class from DLL?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: [RESOLVED] Import entire Class from DLL?

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    51

    [RESOLVED] Import entire Class from DLL?

    Is it possible to import a Class from a DLL. Some of the information I have seen on line people seem to be referring to the class as the dll and only import functions from the class.

    What I'm looking to do is import the entire class from the Dll and use it in my code. Is this possible?

  2. #2
    Join Date
    Mar 2002
    Location
    NY, USA
    Posts
    12,097

    Re: Import entire Class from DLL?

    If the DLL is another .NET assembly then just add a reference and use the functionallity.

    If the DLL is COM compliant, just create a managed wrapper and add THAT as a reference.

    If the DLL is a C++ (non-COM) DLL, then you can not (effectively )import "entire classes". The closest you can come is to create a .NET class which acts as a wrapper to the individual functions. This will give you a decent class facade.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009
    In theory, there is no difference between theory and paractice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center