THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/07/2003 at 03:45, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform:
Language(s) : C.O.F.F.E.E ;
---------
Hiya
I have searched the forum and used the same exact code that I have found, yet it doesn't work.
the code I looked at says to do this..
oDialog::Message(msg)
{
if(msg->GetId() == BFM_DRAGRECEIVE)
..
but console quickly gets filled up with member not found errors on the if statement. It seems the msg doesn't have a GetID() member.
The COFFEE SDK on the other hand says to do something like this
oDialog::Message(msg)
{
if (msg->GetData(BFM_DRAG_FINISHED))
{
if (CheckDropArea(DRAG_TEST, msg))
{
var obj = GetDragObject(msg);
var result = new(BaseContainer, BFM_DRAGRESULT);
result->SetData(BFM_DRAGRESULT_CURSOR, MOUSE_POINT_HAND);
return result;
}
}
return super::Message(msg);
}
but that errors on line var result = new(BaseContainer, BFM_DRAGRESULT); with 'Variable or Function expected'
What am i doing wrong? which way is correct?