Howdy,
I am creating a dynamic 2D data structure. I am using vectors (unless i find a better option). I am also new to the STL.
I also am using the personal edition of C++ Builder 6.
How can i declare and manipulate a vector of a vector?
can i declare a vector of a vector like this ?
vector...
When i boot XP it asks what to use to open these files :
TFTP3104
TFTP408
It says file type is : FILE
can someone help fix this problem?
Thanks in advance.
cppdev
I have made the changes suggested. when i call
((TPanelCanvasHack*)Panel1)->Paint(); It does not paint the canvas white, it stays gray.
This is what i was calling:
((TPanelCanvasHack*)Panel1)->PaintCanvas();
Thanks in advance,
cppdev
Yes, when i move the panel off the screen, release and drag back onto the screen the rectangle disappears.
This is the class i have been using. Could a modification of this work?
class TPanelCanvasHack : public TPanel
{
public:
__property Canvas;
// specifies brush parameters and...
Also, when i comment out these lines of code :
Label8->Caption = XLocation;
Label9->Caption = YLocation;
It does not erase the shapes drawn on the canvas.
SO i am assuming the problem is something to do with these lines of code but i do not know why. These are not even displayed on the...
I have the following code called when the event "OnMouseMove" Occurs. It lets me draw a rectangle on the screen ...and then the error occurs immediately after drawing the rectangle...soon as i move the mouse the image disappears. Any ideas what could be wrong?
all this code...
I am writing text directly to a canvas.
I set the font (courier since it is fixed width by definition) and need to know how to find or calculate the space between the characters.
My goal is to calculate the location of each possible character on this canvas....i know how to find the character...
It seems i was wrong about the use of "extern".
should I put the keyword "extern" before the definition of the class, and put this class definition in a seperate header file ( global.h ) and put "#include "global.h" in both unit1.cpp and unit2.cpp ?
Good point.
shouldnt the syntax be :
extern FieldDefinitionObject FieldDefinition;
where FieldDefinitionObject is the Class defined in unit2.h .
and just put the above "extern" statement in unit1.cpp or unit1.h ?
It keeps telling me FieldDefinition is not defined yet.
I have tried including header file "unit2.h" in unit1.cpp and tried including it in in unit1.h (just including it in one file at a time) and i still get the same error.
I believe since i am including the file "unit2.h" (where FieldDefinition is defined as a class) it...
How can i fix this error? I am confused about what it means.
[Linker Warning] Public symbol '_FieldDefinition' defined in both module C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\RECEIPTGENERATOR\UNIT1.OBJ and C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\RECEIPTGENERATOR\UNIT2.OBJ
Thanks in...
I have been using a demo of the enterprise edition of C++ Builder v 6. The demo expired and i have reinstalled my personal version which has everything i need in it.
when i reinstalled my personal version there were MANY *.bpi files that were not included in my pesonal version, thus could not...
I am developing a custom gui it consists of a Form with a panel sitting on top of the form, and a canvas on top of the panel.
when i start the app i must click on the canvas to make it paint the canvas. I want it to paint the canvas automatically when the app starts.
I have tried several...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.