Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

I am trying to send some text from my actor to trig... but couldnt able to do.
Please tell me what steps i need to follow to do it correctly?
what i m doing is...

error = IACTORCONTEXT_CreateStructContainer( self->m_context, name, 2, (IVfsContainer*)container, 0, &myContainer ) ;

error = IACTORCONTEXT_CreateString ( self->m_context, KUpDateLatLon,25, (IVfsContainer*)myContainer, 0, &cLatLon ) ;
if ( error == SUCCESS ) {
error = IVFSSTRUCTCONTAINER_AddChild( myContainer, cLatLon ) ;

error = IVFSNODE_SetData( cLatLon,NULL, AEEIID_VFS_STRING_DATA, (void*)strLat, sizeof( WSTRLEN(strLat)*sizeof(AECHAR) ) );

*node = (error == SUCCESS) ? (IVfsNode*)myContainer : NULL;

Am having string "abcd" in strlat variable but on the trig side it shows 1...
Please give ur comments???

Thanks....

I believe it is
WSTRLEN(strLat)*sizeof(AECHAR) ) and not
sizeof( WSTRLEN(strLat)*sizeof(AECHAR) ).

I believe it is
WSTRLEN(strLat)*sizeof(AECHAR) ) and not
sizeof( WSTRLEN(strLat)*sizeof(AECHAR) ).

thanks ocean 11
i am able to send string data now from actor problem was not sending correct path from uione.
And did bluder too which u pointed out :D
Thanks

thanks ocean 11
i am able to send string data now from actor problem was not sending correct path from uione.
And did bluder too which u pointed out :D
Thanks