UPDATE: I thought it was Windsows.h i need to include and you have confirmed this, but when i do include it i get a bunch of messages like the following...
1>C:Program FilesMicrosoft SDKsWindowsv6.0Aincludeobjidl.h(5934) : error C2872: IDataObject : ambiguous symbol
1> could be C:Program FilesMicrosoft SDKsWindowsv6.0Aincludeobjidl.h(251) : System::Windows::Forms::IDataObject IDataObject
1> or c:windowsmicrosoft.netframeworkv2.0.50727system.windows.forms.dll : System::Windows::Forms::IDataObject
I Don t know how to fix this, eik!
I m trying to call PeekMessage but when I try to compile I get the following errors.
MSG : undeclared identifier HWND : undeclared identifier PM_REMOVE : undeclared identifier
my code is as below...
MSG message;
while(form->Created)
{
while( PeekMessage( &message, (HWND)form->Handle.ToPointer(), 0, 0, PM_REMOVE ) )
{
TranslateMessage( &message );
DispatchMessage( &message );
if( !mainWindow->Created )
break;
}
}
I know what these structures are but can get the compiler to recognise them. Am i missing a ref or are there VC++ alias for the same?
Cheers.