31 Aug
2007
31 Aug
'07
5:33 p.m.
Kamil Zubair:
Hi, I'm trying to bind Win32 API function RegCloseKey like this (I'm using VC 2005 Express):
HKEY hKey; //--initialize hKey boost::function
RegClose = boost::bind(&RegCloseKey, hKey);
You can either #define BOOST_BIND_ENABLE_STDCALL or use boost::bind<LONG>. See http://boost.org/libs/bind/bind.html#Q_win32_api