Hello all,
I have developed a Visual C++ DLL that will be used in one of
our LabView projects. The Visual C++ project has two classes that
perform the duties needed. The interface methods for the class have
been made public so they are accessible. There are also two function
with are essentially procedural C functions for calculating the CRC for
messages. When we attempt create an interface to the DLL using the
"Call Library Function Node" the "Call Library Function" window only
shows the two procedural C function calls that were declared as follows
__declspec( dllexport ) uint16 __stdcall ComputeCRC16( uint8* dataPtr, uint32 length );
__declspec( dllexport ) bool __stdcall IsCRC16Valid( uint8* dataPtr, uint32 length );
For the class that I would like to export I declared it as follows
class __declspec(dllexport) LRUInterface
{
// ...
}
I would assume that LabView would be able to access the class,
instantiate an object then access the methods, but it just doesn't seem
to work. How do I declare the class properly so LabView will be able to
use the DLL correctly?
Mark