Hello, it's possible to include header file in Visual C# Form application? For example i have code (on bottom of this text) and i want use it in my code, how can i do this? I need copy full function and use it in program? :/ Thanks
and second question, i have public void FunctionName() in my Form1, when i include in Form2 code
1 2
Form1 form1 = new Form1();
form1.FunctionName();
then nothing happend. When i put messageboxshow in function, i see message, but when for example i want change label or textbox text, then nothing. What i do wrong? THanks :)
I think (from limited experience) that you can wrap the native c++ code in a managed class, (ie ref class MyClass ...) and return result through a managed method or managed functor. This managed wrapper should be made into a dll/assembly that can be include in the c# project.