I have a program that uses a CNiGraph object that I want to be able to run on any Windows2000 computer. Alas, the executable works only on the development computer but not on any other computer.
I examined the Dynamic Control sample program and the licence utility sample program and was able to both reproduce the example and to integrate the ideas successfully into my program. All programs run fine on the development mashine that has all the National Instrument software installed.
However, If I try to run the executable contained in the Dynamic Control Example on a stand-alone PC that has no NI software installed, then the example program crashes : "Invalid Pointer" (the executable provided by National Instruments that is).
If
I run my own program or the Control Example after inserting the licence string (compiled on the development PC), then these programs run fine on the development PC but crash with an assertion error: "File: winocc.cpp, Line: 345"
From earlier debugging sessions while trying to get the licencing stuff to work in my program I got stuck in the same location if I attempted to .Create() if the corresponding m_hWnd member had already been invoked and was not zero - however, this is not the case now, because I check for this condition before I execute the Create() member function.
I thought the whole point of using the licence string stuff was to be able to deploy executables on any computer, not just the ones that have NI Measurement Studio for C++ installed?!