From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

why i'm getiing indeclared identifier "PANEL"

i had made the following code:

#include "extcode.h"
#pragma pack(push)
#include "SharedLib.h"
#include <ansi_c.h>
#include <userint.h>
#pragma pack(1)
#include <stdio.h>
#include <cvirte.h>
#include <windows.h>


#ifdef __cplusplus
extern "C" {
#endif

static int panelHandle;

int main (int argc, char *argv[])
{
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
if ((panelHandle = LoadPanel (0, "IOLOGIC-dll-TCP-IP.uir", PANEL)) < 0)
return -1;
DisplayPanel (panelHandle);
RunUserInterface ();
DiscardPanel (panelHandle);

 

 

 

but when debugging i had always the following errors 

why i'm getiing indeclared identifier "PANEL"

 

 

0 Kudos
Message 1 of 3
(4,320 Views)

When you create an user interface this results in two files, the UI file and a corresponding include file which you should include in your code...

 

#include "IOLOGIC-dll-TCP-IP.h"

0 Kudos
Message 2 of 3
(4,315 Views)

Hey SASA1,

 

have you been able to resolve the issue?

0 Kudos
Message 3 of 3
(4,227 Views)