
10 Mar
2010
10 Mar
'10
7:59 p.m.
On Wed, 10 Mar 2010 20:51:38 +0100, joel falcou wrote:
Alexander Lamaison wrote:
template<typename Signature> boost::function<Signature> proc_address( hmodule hmod, const std::string& name) { return boost::function<Signature>(GetProcAddress(hmod, name.c_str()); }
IIRC MSVC has problem with the int() notation try the portabel function usage:
boost::function<int,void> or something
Unfortunately, I can't write proc_address<int, int> because it only has the single Signature template paramter. I notice that the boost 'portable syntax' would be boost::function*X*<int, void, etc...>. I don't have numbered versions of proc_address. Is this what I need to get it to work? Alex