Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Code:-86

I have created a CVI project(using NI Measurement Studio AppVizard) in visual C++6.0. This application will load a .uir file "test.h" which was created in CVI6.0. The uir file contains only one button "OK" and the callback function for this button is "OnOK". I have implented the function in file "test.c". I included both "test.h" and "test.c" in the visual c++ project. When I built and run the project, a panel displayed and said:
Error Code: -86
The callback function, OnOK, specified in the UIR file, is
not a known funciton. If you are using an external compiler,
you must include the UIR callbacks object or source file
in the executable or DLL.

I don't know what is the problem.
Could anyone help me?
Thank you very very much.
0 Kudos
Message 1 of 3
(2,857 Views)
One possibility could be that you don't have the object file for the callback table in your project. Take a look at the KB article I Get Error -86 When I Try to Use a Static Library Created in CVI. Why? and see if it helps in your case.

- Elton
Message 2 of 3
(2,857 Views)
Thank you so so so much. You are right and now my application works. Thank you again for your answer.
0 Kudos
Message 3 of 3
(2,857 Views)