- How can I cast or convert boost bind to C function pointer?
- void func(WCHAR* pythonStatement) {
- // Do something with pythonStatement
- }
- bind(func, TEXT("console.write('test')"))
- typedef void (__cdecl * PFUNCPLUGINCMD)();
- struct FuncItem {
- PFUNCPLUGINCMD pFunc;
- // ...
- };
- void uglyWorkaround() {
- globalLambdaFunctor();
- }
- void wrapper() {
- func(TEXT("console.write('test')"));
- }