pointer to a function
Solved
General and Desktop
-
HI
I have a function:void MainWindow::WriteID() { ... }
I want to make a pointer to this function. here is my code:
void (*F_Code)() = MainWindow::WriteID;
but receive this error:
error: void value not ignored as it ought to be void (*F_Code)() = MainWindow::WriteID;
why?
-
HI
I have a function:void MainWindow::WriteID() { ... }
I want to make a pointer to this function. here is my code:
void (*F_Code)() = MainWindow::WriteID;
but receive this error:
error: void value not ignored as it ought to be void (*F_Code)() = MainWindow::WriteID;
why?