[omniORB] (no subject)
Duncan Grisby
duncan at grisby.org
Thu May 28 12:19:46 BST 2009
On Friday 22 May, DiabloPlayerMerlin at gmx.de wrote:
[...]
> When i get in the bkSceneManagerAdapter an objref from the type
> bkVirtualObjectAdapter i cannot convert the object_ptr to a C++ Class
> like this:
>
> void bkSceneManagerAdapter_i::op(bkVirtualObjectAdapter_ptr voa){
>
> try{
> bkVirtualObjectAdapter_i *myVoa = voa;
> ...
> }
>
> Does anybody know, how to convert an _ptr to a real c++ class?
You need to ask the POA to convert the reference to a servant with
reference_to_servant, then use dynamic_cast to convert the ServantBase
to a pointer to your bkVirtualObjectAdapter_i class.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list