[boost] Problem with boost::bind and windows api calls

2003-01-30 Thread DudeSan
Hey there! I've had some problems trying to make a function pointer to a specific windows callback function. It's defined as LRESULT CALLBACK WndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam ), however, any sore attempt I try to get the boost::bind working with it seems to fail

Re: [boost] Problem with boost::bind and windows api calls

2003-01-30 Thread Peter Dimov
From: DudeSan [EMAIL PROTECTED] Hey there! I've had some problems trying to make a function pointer to a specific windows callback function. It's defined as LRESULT CALLBACK WndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam ), however, any sore attempt I try to get the

Re: Re: [boost] Problem with boost::bind and windows api calls

2003-01-30 Thread DudeSan
No, this won't work. boost::bind returns a function object, an object with operator() defined, not a function pointer. You can't use bind() to create a function pointer. So, are there any suggestions or ideas that I could use? I'm trying to make the wndProc point at a member function. I've

Re: Re: [boost] Problem with boost::bind and windows api calls

2003-01-30 Thread Peter Dimov
From: DudeSan [EMAIL PROTECTED] No, this won't work. boost::bind returns a function object, an object with operator() defined, not a function pointer. You can't use bind() to create a function pointer. So, are there any suggestions or ideas that I could use? I'm trying to make the

Re: Re: [boost] Problem with boost::bind and windows api calls

2003-01-30 Thread William E. Kempf
Peter Dimov said: From: DudeSan [EMAIL PROTECTED] No, this won't work. boost::bind returns a function object, an object with operator() defined, not a function pointer. You can't use bind() to create a function pointer. So, are there any suggestions or ideas that I could use? I'm