T
TxCHLInstructor
I have a 3rd-party program in managed C++ (source code) that I need to
add to a C# project.
I can compile the C++ program as a library. The C++ module includes a
class HIDBootLoaderFORM, but when I try to create an object of
HIDBootLoaderFORMin my C# program, it can't find the class.
Application.Run(new HIDBootLoaderFORM());
C:\TAOS\TAOS_DLSv3.x\TAOS_DigitalLightSensor\cTAOS_Device_Mgr.cs(412,33): error
CS0246: The type or namespace name 'HIDBootLoaderFORM' could not be
found (are you missing a using directive or an assembly reference?)
The sln file contains both the HIDBootLoaderFORM (in managed C++), and
the C# program from which I'm trying to call the HIDBootLoaderFORM ctor.
I've spent some time looking through the Microsoft documentation, but I
keep running into references that must be assuming that I already know
how to do this. For instance, there was one reference to linking a
..netmodule, but I can't find anything about linking anywhere in the C#
properties. (the article:
http://blogs.msdn.com/b/junfeng/archive/2005/05/19/420186.aspx)
Since I can't seem to find anything about this in my various searches, I
have to assume that this is a very basic problem that nobody else has.
I'm hoping someone here can enlighten me.
add to a C# project.
I can compile the C++ program as a library. The C++ module includes a
class HIDBootLoaderFORM, but when I try to create an object of
HIDBootLoaderFORMin my C# program, it can't find the class.
Application.Run(new HIDBootLoaderFORM());
C:\TAOS\TAOS_DLSv3.x\TAOS_DigitalLightSensor\cTAOS_Device_Mgr.cs(412,33): error
CS0246: The type or namespace name 'HIDBootLoaderFORM' could not be
found (are you missing a using directive or an assembly reference?)
The sln file contains both the HIDBootLoaderFORM (in managed C++), and
the C# program from which I'm trying to call the HIDBootLoaderFORM ctor.
I've spent some time looking through the Microsoft documentation, but I
keep running into references that must be assuming that I already know
how to do this. For instance, there was one reference to linking a
..netmodule, but I can't find anything about linking anywhere in the C#
properties. (the article:
http://blogs.msdn.com/b/junfeng/archive/2005/05/19/420186.aspx)
Since I can't seem to find anything about this in my various searches, I
have to assume that this is a very basic problem that nobody else has.
I'm hoping someone here can enlighten me.