Calling a "Mixed mode" dll from c#

  • Thread starter Thread starter ron jacobs
  • Start date Start date
R

ron jacobs

I have just implemented a "mixed mode" dll in VC++. I
have implemented this dll in accordence with several
articles found on the MSDN website including KB 814472.
The crux of the problem is that when the dll is built
with the \noentry linker option, I can not load the dll
in a c# client. There is plenty of help available for
loading this dll in a c++ client.

Does anyone know how to load this dll in C# or VB?? Am I
forced to use reflection on this assembly??

Thanks in advance,

Ron Jacobs
 
I guess I should have mentioned that... I have added a
reference to the dll in my c# project, the error I get is
that the namespace (defined in the dll) is unrecognized.
I have no problem if I remove the "\noentry" link option
from the dll.
 
Does anyone know how to load this dll in C# or VB?? Am I
forced to use reflection on this assembly??

What is the exact error message you are receiving and when?

What type of C# project did you create?
 
It complains about my using namespace call.
snip...
using System;
using System.Data;
using Xcellenet.Data.Client;

snip...

error:
Z:\Platform\Server\DLLs\Database\XSDataAccess\Tester\Class
1.cs(3): The type or namespace name 'Xcellenet' could not
be found (are you missing a using directive or an
assembly reference?)

I have the correct assembly already as a reference, when
I browse this assembly with the object browser, I can see
my namespace and all of my types.

This problem occurs on any C# project, but this example
is a console application.
 
Back
Top