Hi all,
I use LabWindows/CVI 8.0.1 and Visual Studio 2005 (C++).
I convert my old LabWIndows project to Visual C++ project by LabWindows/CVI conversion wizard.
I can compile Visual C++ project and have no program.
I can run compiled executable successfully
But I have trouble when I use tab control.
There are my steps as follows:
1. Add a tab control on UI.
2. Add a command button control on the first tab page of the tab control.
3. Set a callback function CbTest() to the command button.
4. Generate the callback function.
5. Compile the Visual C++ project. I compile it successfully.
6. Run the compiled executable.
Then, I get error message as follows:
========================================================
Error in call to LoadPanel.
Parent Panel Handle: 0
UIR File Name: example.uir
Panel Resource ID: 1
Error Code: -86
The callback function, CbTest, specified in the UIR file, is not a known function.
If you are using an external compiler, you must include the UIR callbacks object
or source file in the executable or DLL.
=========================================================
After get the error message, I do some experiments.
1. Use origin LabWindows/CVI environment to compile project,
Get no problem and program runs well.
The callback of the command button on the tab works successfully.
2. If i move the command button from tab control to main panel
and compile the project in Visual C++,
I will get no error message on running time.
And the callback of the command button still works successfully.
Is there any detail i forget when i use tab control?
Thank you for your help!