I am working on a small program to learn how to use FLTK. Part of a callback function retrieves the information in Fl_Input controls. The return type for the function Fl_Input_GetValue() is a Zstring pointer. The Fl_Input controls are initialized properly so the pointers to the controls are valid. So, here is a snip of the code:
Code: Select all
dim as zstring ptr zx,zy
zx = Fl_Input_GetValue(inXInput)
zy = Fl_Input_GetValue(inYInput)
Compilation fails on these functions with the message:
error 181: Invalid assignment/conversion in 'zx = Fl_Input_GetValue(inXInput)'
error 181: Invalid assignment/conversion in 'zy = Fl_Input_GetValue(inYInput)'
What am I missing?