Marius F

Hello i'm trying to make a solution that contains diferent projects... and i did make it but the projects were all C#.

i want to combine me C# project. with another project but the problem is that that projects is in C++.

if u can make a small exemple on how can i do that plz tell me.




Re: Visual C# IDE VS Solution diferent projects

Dmitry Pavlov

Hi Marius,

First of all you need to have both (C# and C++) languages included into your Visual Studio installation.

If both project types are presented in 'Add New Project' dialog, you can:

  1. Create new project (either C# or C++ - doesn't matter)/ Solution will be created automatically.
  2. Then right click on solution node (that is a root node) in Solution Explorer and select Add -> New Project. 'Add New Project' dialog will appear. Then select one of the project types for another language and click OK.

Hope that helps!






Re: Visual C# IDE VS Solution diferent projects

Marius FANU

i did that. but my problem now is accesing the methods in the C++ project.

i did include the c++ project into the references... but i can't figure out how the tho the C++ methods






Re: Visual C# IDE VS Solution diferent projects

Marius FANU

a small demo app whould be apreciated. send to this email

msdn.marius[-at-]gmail.com






Re: Visual C# IDE VS Solution diferent projects

Dmitry Pavlov

Hi Marius,

I have created 2 projects C# and C++ class libraries and in C# project added a project reference to C++ project. Then I used a method from here in my C# code. All works great. I have emailed you a demo.

There is also a link describing the how to create similar demo I've sent. So it might be usefull for other people looking for such demo too.

Hope that helps!






Re: Visual C# IDE VS Solution diferent projects

Marius FANU

thx