Thank you very much, William, and for those wishing to use the text from the selected line in the list box, please, note that the address reference might give you a type mismatch error. This is how I used the code (to check if the string was actually seen):
CString str...
Hello, everyone! :-)
Does anybody know what the equivalent of a 'GetLine' function in respect of List Boxes is? If I have the index of the selected line, how do I get its contents? The 'DlgDirSelect' does not seem to work... :-(
Well, I am not really dealing with directories anyway, so, what...
Hello, again!
It's me, cluelessC! It might be a bit late, but I decided to come back with the answer to my own question - for the benefit of beginners, like myself. Here is the code that I was after:
void __fastcall TForm1::OnKeyDown(TObject *Sender, WORD &Key, TShiftState Shift)
{
switch (Key)...
Thanks very much,
I've seen the incredible variety of symbols using John's code (with very slight modifications - total beginners like me forget the vital getchar() to hold the output!). Useful reference, thanks, John! Unfortunately, I still need to learn how to distingwish, say, numeral...
Hello, everybody!
Does anybody know how to use LeftArrow, UpArrow, etc. keys to move a shape around the screen? How do you identify them in the code to program the responces? From the Help system I gathered that I should include <ctype.h> to be able to use the "iscntrl" function...
Thanks very much - ten out of ten for going into such detail! To be honest, I've solved my problem myself, but in a different way - it was good to get a different view on the problem from your solution. Besides, I never knew of the drawHistogram() function - something knew to try out!
So...
Hi, there!
What does "lower 8 bits" mean? I am not quite clear on what it is exactly that you need to do, but could it be that you are asked to initialise the first 8 elements to zero first?
If so, then in Borland C++Builder that would look something like this:
int i = 0; //initialise...
Hi, there!
It looks like we've got the same problem (I recognised the magic "DataEngine1"). I think a two-dimensional array will have to be initialised from the data file ("Q3Data.dat" sounds familiar?). Then it would be possible to use the TGraph component instead of the...
Hello, everybody!
My problem might seem quite trivial, but I'd give my right hand to solve it!
Basically, I need to represent a range of short intergers, read from a file, in a shape of a histogramm. I am only a beginner and so far I only managed to get my "programm" to read...
If I can access a file with a set of data in it, how can I use a TGraph component to grahpically represent it (just a histogramm)? I am just a begginer, so could somebody, please, explain it to me in plain English?
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.