> Can we discuss this a little bit more?
> Assuming I have a simple test class library with one class:
[quoted text clipped - 24 lines]
> ------
> GreetMe function;
Don't know what that means.
> CString result;
>
> HINSTANCE hinstLib = LoadLibrary("vc6interop.dll");
Nope, only .NET framework can load a .NET assembly.
> if (hinstLib) {
>
> function = (GreetMe) GetProcAddress(hinstLib, "GreetMe");
Nope, .NET code doesn't have an address until the JIT compiles it.
Instead, you must use CoInitialize to enable COM support in your
application, and CoCreateObject to create an instance of a .NET class. Then
you will be able to call the methods.
> if (function)
> result = (function) ("John");
[quoted text clipped - 14 lines]
>>
>> either way should work without too many problems.