03-03-2010 05:58 PM
I wrote this simple callback function and when I compile the program, it gives me an error that I am missing prototype for Test1() even though I included its .h file that has prototype of this function. If I put the #include for Test1.h first in my source file, the compiler complains about the prototype of Test2() and vice versa :
int CVICALLBACK timer (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_TIMER_TICK:
if(g_Test2)
{
Test1();
}
if(g_Test2)
{
Test2();
}
break;
}
return 0;
}
Thank you in advance!!!
03-03-2010 06:07 PM