Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JohanErlank

    Array of struct with function pointers

    I managed to solve this one myself using __closure: typedef struct { int iBit; void (__closure *save_fun)(void); } __save_rec; and keeping the rest as is. Now to figure out mass initialisation as follows (in standard c:) const __save_rec SaveData[] = { { 1, TRBMAP, SavBmap }...
  2. JohanErlank

    Array of struct with function pointers

    Hi I am trying the following: file.h: typedef struct { int iBit; void (*save_fun)(void); } __save_rec; ... #define MAXRECS 20 class TForm1 : public TForm { __published: .. private: __save_rec SaveData[MAXRECS]; void SavPan(void); void SavAmt(void); void SavFD7(void); void __fastcall...

Part and Inventory Search

Back
Top