Changes

Jump to: navigation, search

The CIO Framework - OOP344 20123

280 bytes added, 19:44, 26 November 2012
Adding note about obj file
* [http://matrix.senecac.on.ca/~fardad.soleimanloo/files/classObjs/borland/cfield.zip Borland C++ 5.5]
* [http://matrix.senecac.on.ca/~fardad.soleimanloo/files/classObjs/vc/cfield.zip Visual C++ 10]
* Note. At least with the VS obj files, if you look at cfield.h, the method: virtual void* data(); is now: virtual void* data()'''const'''; However, this isn't the case in our header requirements. Noticed this when trying to compile with our header based on this wiki.
 
==CLabel==
A readonly Field that encapsulates console.display() function. (i.e it is responsible to display a short character string on the display) CLabel although, by inheritance is Frame, but it is never '''bordered'''.
if len is zero, it will allocate enough memory to store the string pointed by Str and then copies the Str into it.
if len > 0, then it will allocate enough memory to store '''len''' chars, copying only len characters of str.
In any way, the allocated memory is pointed by '''_data'''. Also it will set the width to the length of the memory allocated.
<big><syntaxhighlight lang="cpp">
CLabel(int Row, int Col, int Len);

Navigation menu