[Trilldev-develop] Re: tplug::psend( )
Status: Alpha
Brought to you by:
azhrarnlod
From: Erik <Er...@kr...> - 2002-10-04 15:26:12
|
Thanks, I knew there had to be a better way, I just couldn't think of it. I'll add it when I get home. :) --- Hunter <rf_...@us...> wrote: >In tplug::psend( ), instead of: > char myGUID[128]; > char myEvent[128]; > GUID.copy(myGUID, 128, 0); > outEvent.copy(myEvent, 128, 0); > return plugin_send(myGUID, myEvent, data); > >you should use: > return plugin_send( > const_cast<char *>(GUID.cstr()), > const_cast<char *>(outEvent.cstr()), > data); > >or if that's too many characters on one line for you, >you could use the less effective (C-style): > return plugin_send((char *)GUID.cstr(), > (char *)outEvent.cstr(), data); _____________________________________________________________ Modern Rock K-Rock...be part of the New Music Revolution and check out www.krock.com!! _____________________________________________________________ Select your own custom email address for FREE! Get yo...@yo... w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag |