Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Open Reality / newbee need help to parse a packet for a new device
  RSS 2.0 ATOM  

newbee need help to parse a packet for a new device
Rate this thread
 
17587
 
Permlink of this thread  
avatar
  • zozizozu
  • Posted: 08 October 2008 09:00 AM
  • Total Posts: 9
  • Joined: 08 October 2008 03:47 PM

Hi all,
fist i have to say that i’m new on cpp and mb sdk, (and also in english speeking) ...

I’m trying to make a udp device, and i need to parse the buffer i’m receiving.
I use to do this with “ std::istringstream iss( buffer ); “, and then separate datas and convet into floats.
The trouble i have is that if i include iostream, i have 352 errors :

c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2365: ‘operator new’ : redéfinition ; la précédente définition était ‘fonction’
c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2491: ‘new’ : définition de données dllimport non autorisée
c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2078: initialiseurs trop nombreux
........

Is there a special way to use the std:: stuf ? , or to convert a substring of my “ FBString thePacket(buffer); “ into floats ?

Thanks in advance



3o3i

Replies: 0
avatar
  • zozizozu
  • Posted: 08 October 2008 11:18 AM

Hi again, i’ve just notice that these errors was under debug only, the release is compiling correctly.
This may be come from my debug’s setting, but i don’t find where.

Debuging mode should be very helfull for me, so if some can help ...

thanks



3o3i

Replies: 0