Calling a "Mixed mode" dll from c#

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
 
R

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.
 
F

Frank Lopez

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?
 
R

ron jacobs

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top