Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Callback with c++
#1
Hello,
is there a simple example how to use callback functions whithin c++.
I think it’s more complex to define as in the delphi example.

I tried this:
void TfrmMain::myCallbackMethod(TStringList *slList)
{
  // some Code
}
void __fastcall TfrmMain::headerRightButtonClick(TObject *Sender)
{
  WebApplication->RegisterCallBack("MyCallback", &myCallbackMethod);
}

but it doesn’t compile.

Any hints?
Reply


Messages In This Thread
Callback with c++ - by kpenzkofer - 04-23-2021, 07:54 AM
RE: Callback with c++ - by Jose Nilton Pace - 04-23-2021, 12:19 PM
RE: Callback with c++ - by kpenzkofer - 04-23-2021, 01:43 PM
RE: Callback with c++ - by rlebeau - 04-23-2021, 03:34 PM
RE: Callback with c++ - by kpenzkofer - 04-23-2021, 03:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)