c++ - Sending parameters to a DLL to be boost::bind'ed -


I have a DLL that changes the function that the function pointer accepts in the boost :: function. It is then stored and then called from within DLL.

In this way I want to add functions to DLL to handle members' work. I know that I have to use boost :: bind to wrap member function pointer and object together. I want to bind to the DLL side, though Boost libraries are not required to include EXE.

How would you write this function? The one who accepts the function pointer and objects together and bundles them together.

Thank you!

You have been warned by @caloton, so you can try something like this: / P>

  __dllexport void store_mem_fn (zero (your_class :: * mem_fn) (zero), Your_class and examples) {std :: vector & lt; Boost :: function & lt; Void (zero) & gt; & Gt; Container; Container. Push_back (boost :: bind (mem_fn, example)); }  

Comments