On 16.05.2012 12:29, Rajesh Kumar wrote: > Hi Albrecht, > > I did it with fltk2.0, reason is a few days before only I > migrate to FLTK1.3. I thought I will complete test code in fltk2.0 in > faster way. > > Here is the test code,
Your test code is incomplete and can't be compiled to test. > What I am doing is when i%10 becomes I want to show a separate > window, just for two seconds. So this block of code will do it. > > i++; > if( i%10 == 0 ) { > win->show(); > sleep(2); > win->hide; > fprintf(stderr, "\nTesting.........%d\n", i); > sleep(1); > > There I am just showing a separate window and giving 2secs delay the > hiding it. But when I compile it throwing error "statement cannot resolve > address of overloaded function" . What should I change???? First of all, you should post REAL error messages together with the code and line numbers, so that we can see what's going on. In this case, it's likely that the error comes from this line: win->hide; Change this to "win->hide();", and it's probably okay. But your test code is bad, since sleep() will block the entire program. See the suggested solutions with timeouts posted before. Albrecht _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk