Hello, I'm sorry if this question has already been answered but I couldn't find it.
I am trying to open a C# form when a function in a C++ program is called (the main program is in C++, the form is in C#, it is an empty form just to try how it works). I am using Visual Studio 2005 and I have both projects in my solution. The C# project is just a form and I have configured it as a class library. However, when I go to the C++ program's function I type this in the beginning:
int _stdcall Init(void)
{
...
FormProject::Form1 form1;
form1 = new FormProject::Form1::Form1();
form1.something();
...
}
I have little experience in C++, I have tried different combinations but I am unlucky. The C++ project has been made compatible with CLI. I have already included the needed:
#using <System.Windows.Forms.dll>
#using <System.dll>
I am aware there are some big mistakes but I only need this form running, no more. Thank you very much.
Edit: I have already added the references.