‘&’ : illegal operation on bound member function expression [duplicate]

This works when I try from a single cpp file with a main function,

 sprintf(smem_options ,
     "#transcode{vcodec=RV24}:smem{"
     "video-prerender-callback=%lld,"
     "no-time-sync},"
    , (long long int)(intptr_t)(void*)&cbVideoPrerender
);

How do I pass function arguments to sprintf within a class?

sprintf(smem_options ,
     "#transcode{vcodec=RV24}:smem{"
     "video-prerender-callback=%lld,"
     "no-time-sync},"
    , (long long int)(intptr_t)(void*)&cbVideoPrerender
);

The error message I get is: error C2276: ‘&’ : illegal operation on bound member function expression

Leave a Comment