passing call-back function as parameter in ManagedC++

  • Thread starter Thread starter Roman Panas
  • Start date Start date
R

Roman Panas

Hello!
How to call function try_to_test() ?
Anybody can to show the psevdo code?
I tried next code but is doesn't work:
try_to_test( func_test );
Thanks.

typedef void( _cdecl *P_FUNC_TEST )( long test )

_gc class SomeClass
{
void _cdecl func_test( long test ){ ; }
void _cdecl try_to_test( P_FUNC_TEST pf ){ ; }
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top