From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-08-31 13:33:32


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<LONG(void)> 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