THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/05/2011 at 12:58, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
Hi
After really crazy experiance with thread and dialog in a recent post, I'm trying to use SendMessage to set the GeDialog properties. If I try to call SendMessage like this:
SendMessage(DLG_BTN_UP, BaseContainer(BFM_ENABLE));
I receive the compile error:
error C2660: 'SendMessageA' : function does not take 2 arguments
This happens in any part of the program I try to call this method. My c4d includes are:
#include "c4d.h"
#include "c4d_gui.h"
#include "c4d_symbols.h"
#include "c4d_general.h"
#include "c4d_baseplugin.h"
#include "C4D_Thread.h"
With the VS intellisense I see that the method called is one in winuser.h which is not in my includes. The prototype is:
LRESULT SendMessageA(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
I don't understand which is the problem...why this conflict?
Thanks for any help.
Bye.