November 6th, 2008, 10:41 AM
[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?
November 6th, 2008, 10:49 AM
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!)
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
* 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
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.