02-21-2017 10:26 PM
When I debug this problem,it tips NON-FATAL RUN ERROR,how to solve it?
02-21-2017 11:26 PM
I would assume that you did not include the corresponding include file in your project. So if your GUI file is called MyGUI.uir, you need to add #include <MyGUI.h> to your code, because this include file defines your callbacks, menu and control elements. Otherwise Quitcallback remains an unknown function name.
02-22-2017 12:17 AM
I'm sorry, still not solve the problem。。。
02-22-2017 01:36 AM
Does Quitcallback function actually exist anywhere in project source files?
02-22-2017 02:01 AM - edited 02-22-2017 02:02 AM
I just realized from your other thread that you may be developing a DLL: if this is true, you should use LoadPanelEx instead of LoadPanel to load panel with functions defined inside the DLL.
I take this opportunity to ask you a bit more attention when opening a discussion: "How to solve this problem" is too generic a title to be meaningful to anyone, especially if you open two discussions with this very same title in the same moment! Use a more specific title instead: e.g "Error in LoadPanel function" will give readers more clues on what to expect opening the discussion now and in the future; the discussion will additionally be reachable with the search function.
On the other hand, in every discussion include all useful elements that may help other to understand your problem. Creating a DLL is different from creating a standalone executable and requires special precautions in the code: you should have added this detail in the initial post.
Take a look to this document that explains how to open a discussion.
02-22-2017 02:03 AM
yes,you can see the program source code of mine.
02-22-2017 02:08 AM
So search for LoadPanelEx in CVI help: at the bottom of the page a link exists that opens dll\gui\guidll.cws example program: that example shows how a .dll with a Graphical User Interface should be developed and called from an external program. I think this is a valid example for you to develop your own library.
02-22-2017 02:13 AM
Thank you for your suggestion, I will listen to, I am a graduate student, for this software contact time is not long, will produce a lot of problems during may, consult and then every time is to solve, but my ability is limited, if there is anything wrong place during my ask period,I said sincere apology ! Thank you very much!
02-27-2017 02:31 AM
maybe you set the callback functions in you uir file, but not generate the callback function in your .c file, this error will popup when you compile the file. check it
02-28-2017 10:00 AM
the callback function is: Quitcallback ,but in your code is: QuitCallback
attention to the caps