Mix C++ and VB.NET projects in one solution

xcheng75

New member
Joined
Jun 21, 2008
Messages
2
Programming Experience
Beginner
I am doing a project. I have some functions written in C++. I need to call these functions from a VB.NET project. In order to avoid to rewrite all these C++ functions, I put them inside one project which is CLR class library and put calling VB.net in another project under one solution file. And add reference of the VB.net project to the C++.net dll.

My questions are

1. How to correctly put all these C++ functions inside the CLR dll with correct syntax?
I found in the generated C++.net project template, inside .h file:
name space NameofSpace
{
public ref class ClassName
{
}
}
what is ref class?

2. how to call these C++ functions with correct syntax?

I am kind of new to .net and VB. Thank you very much guru!:D
 
FileNotFoundException

I am trying to put one C++ class library compiled with CLR and use VB.net code to call the functions of C++ functions, I got error:

Could not load file or assembly 'VCBmp, Version=1.0.3096.17469, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Could someone help me with this error?
 
sounds like the class loader cant find the DLL.. is it set to output to the same dir as the application?
 
Back
Top