|
这是我的一个小程序,调试时一点“OK”按扭出现如下提示: NON-FATAL RUN-TIME ERROR: "111.c", line 27, col 13, thread id 0x00000CA4: Library function error (return value == -58 [0xffffffc6]). The control does not have a value
哪位大虾帮忙看下,万分感激!
代码如下:
#include <cvirte.h>
#include <userint.h>
#include "111.h"
static int panelHandle;
int main (int argc, char *argv[])
{
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
if ((panelHandle = LoadPanel (0, "111.uir", PANEL)) < 0)
return -1;
DisplayPanel (panelHandle);
RunUserInterface ();
DiscardPanel (panelHandle);
return 0;
}
int CVICALLBACK OkCallback (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
// SetActiveTabPage (panelHandle, PANEL_TAB,1 );
SetCtrlVal (panelHandle, TABPANEL_STRING, "SDFSDF");
break;
}
return 0;
}
int CVICALLBACK QuitCallback (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
QuitUserInterface (0);
break;
}
return 0;
} |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|