Hi,
I wrote a few days ago about problems concerning the compilation
of code resource (.lsb files) for CINs. Someone from NI
suggested me to double check the procedure that I was using,
but this never helped. So I tried to compile on different
computers than my own, and it work fine on 2 PCs out of 3 that
I tried.
However, the compilation does not work anymore on one of the two,
after that I did a bad setting in the MSVC++ 6.0 DLL project.
This setting was as follow:
Project>> settings>> All config>> C/C++>> code generation
>> struct member alignment>> 8byte
instead of:
Project>> settings>> All config>> C/C++>> code generation
>> struct member alignment>> 1byte
I tried to create a new project with all the right settings.
but the computer keeps freezing during the build, when calling
the LVSB utility after the linking.
The next step is to uninstall and reinstall Labview 5.0 on this computer, but
it does not look too promising.
In the very first computer(my own) that I used, I uninstalled MSVC++ and
Labview 5.0, and reinstalled them afterwards, but the compilation
never worked.
I have finally been able to compile and get the code interface node
working on this computer after formating my hard drive and reinstalling
Windows 98, MSVC++ 6.0 and Labview 5.0. But for how long is it going to work fine?
So I have a strong feeling that the LVSB utility is not very stable,
and is doing damages to the settings of the computer whenever it crashes.
Is there a way to do the fix to the system without the need of reinstalling
everything? Do you have an idea about what is affected by the crash of
the LVSB utility? What is involved in the execution of this utility?
Here is my configuration:
MSVC++ 6.0
DLL empty project
Files added to the project:
cin.obj, labview.lib, lvsb.lib, lvsbmain.def, and the .c file
Project>> settings>> All config>> C/C++>> code generation>> Multithreaded DLL
Project>> settings>> All config>> C/C++>> code generation>> struct member alignment>> 1byte
Project>> settings>> All config>> C/C++>> preprocessor>> additionnal include directories>>
C:\Program Files\National Instruments\LabVIEW\CINTOOLS\
Project>> settings>> All config>> C/C++>> custom build>> commands>>
"C:\Program Files\National Instruments\LabVIEW\CINTOOLS\win32\lvsbutil" "$(TargetName)" -d "$(WkspDir)\$(OutDir)"
Project>> settings>> All config>> C/C++>> custom build>> outputs>>
$(OutDir)$(TargetName).lsb