|
From: Roger H. <rog...@mi...> - 2004-12-17 19:42:15
|
One way might be: myStruct * myStructPtr; myStructPtr = ( myStruct*) ( (int) myStructPtr + sizeOfMyStruct ) ; Very similar to what we had to do in Pascal a decade or more ago. Roger. On Friday, December 17, 2004, at 06:49 pm, Jose' Cruanyes wrote: > I'm trying to compile Quesa with VC++ 6.0, and an issue has risen > > the cast on l-values are not allowed in MS VC++ > > this expression is illegal in C++ (according to MS) > > myStruct * myStructPtr; > > ((char*) myStructPtr)) += sizeOfMyStruct > > error C2106 left operand must be l-value... > > there are 44 of them in quesa > > several other changes had been made, but this is serious > do you know a way to avoid it? > > Pax et Bonum > > # dott. Jose' Cruanyes Aguilar - C.E. Soft srl > # Pzza. Firenze,4 MILANO - XX Settembre 10, CREMONA > # 02,33603122 0372,460602 > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Quesa-develop mailing list > Que...@li... > https://lists.sourceforge.net/lists/listinfo/quesa-develop > |