Results 1 to 2 of 2

Thread: LWItemID convertion

  1. #1
    Newbie Member
    Join Date
    Mar 2007
    Location
    France
    Posts
    49

    LWItemID convertion

    Hi,

    I need to get the selected items from the scene, so I do the following:

    LWItemID* id;

    id = intinfo->selItems;

    However, intinfo->selItems (const LWItemID *) can't be converted into LWItemID*.

    Does anyone know how I could convert it ?!

    (C++ plugin compiled with VCExpress 2005)

    Cheers

  2. #2
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,607
    "const LWItemID* id = intinfo->selItems;"
    should do it in C++.

    You could also do a const cast:
    LWItemID* id;
    id = const_cast<LWItemID *>(intinfo->selItems);

    Also remember, id is an array.

    Cheers,
    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •