hey guys,
i have a static linked native c++ dll i built.
i want to try and load the c++ classes in it, from an exe (for example). i want to be able to load these classes, and make objects and start using them.
im trying to implement a plugin system of some sort.
is that feasible i have done it using C# and the System.Reflection, but what about native C++
Since its done in the .NET framework, then its done C++, cause what im imagining the .NET was built on C++, so its there somewhere, maybe somebody could help me out please.
how r plugin systems implemented then
note: i know the idea of making interfaces, and the classes in the dll have to implement that interface, so i can call them easily,but how to load the dll dynamicly at run time and make object form it.
thx alot guys.

loading the classes in a native dll
CWGibbs
Mehmet Ozdemir
There's no such thing as a static native DLL. You can either have a static lib or a DLL. If you have a DLL, you can use LoadLibrary and GetProcAddress to dynamically load and invoke exported functions. You cannot dynamically load a static lib - it's not intended to be used that way.
Simba
/clr is not compatible with static libs. So you cannot create a managed static lib (as of VC++ 8). And you cannot reflect over native types, so what you would like to do is not possible.
D-S
hm, ok thx for the help :D
Pete Lux
to be able to get the classes in it, so i can instanciate them!
Karthikeyan K
David Vertex Harris
What do you mean by static DLL You mean a static lib, don't you
Or if you actually mean a managed DLL written using C++/CLI, yes, you can use reflection on it (same as in C#).