Referencing a Project


G

Guest

Hi

I am adding a .NET Class library to an existing C DLL (using the VC2003.NET IDE), i've added the reference for the new .NET library in the existing code and also used using namespace GenSOAP; at the begining of the DLL file but whenever i call any function in the .NET Library from the C DLL it says that a namespace with that name does not exist

Help!!
 
Ad

Advertisements

M

Mohamoss

Hi
What are the access controls of the methods that you are using? Would you
post exactly the error message that you get.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
G

Guest

public void GenSOAP(string args) { } is the function in the C#.NET library under the namespace SOAPGe

This is the error generated in the C DLL when I try to acces
ClassSOAPGen.GenSOAP()

c:\Iris\Icis32_v4\ICIS32.cpp(55): error C2065: 'ClassSOAPGen' : undeclared identifie
c:\Iris\Icis32_v4\ICIS32.cpp(55): error C2227: left of '->GenSOAP' must point to class/struct/unio
c:\Iris\Icis32_v4\ICIS32.cpp(7): error C2871: 'SOAPGen' : a namespace with this name does not exis

Note : I've already added using namespace SOAPGen; at the begining of the C file and it does not show any erro
 
Ad

Advertisements

M

Mohamoss

Hi
do you see your .net dll in the references group of the ( when
you open the plus sign that is beside references ) .try to remove it and re
add the reference and rebuild . Is your c++ is a strong named assembly
because if it so , it can only reference strong named ones ( Ie the c#
should be strong named too). I am suggesting this as I don't see any thing
not normal in the snippet of your code so hope that helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

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