Good night,
I was trying to make a simple dll in C++/CLI to use in my c# library using something like the following code:
// This is the main DLL file.
#include "stdafx.h"
namespace Something
{
public class Tools
{
public : int Test (...)
{
(...)
}
}
}
I can compile the dll and load it into the C# project without any problems, and can use the namespace Something and the class Tools from C#. The problem is that when I try to write Tools.Test(something) I get an error message saying that Tools doesn't have a definition for Test. Why can't the compiler get the function, even if it is declared public?
Also... Can I share a class across two project, half written in C# and half written in managed C++?
Thank you very much.