The DisplayAltChoice(...) function ends with ( instead of a {
You should realy try to read your code more carefuly. It is true that the C++ compilers return some strage messages, and sometimes they don't give you a clue about what's wrong with your code, but they point the portion of code...
You could try the following code (I modified dominochmiel's code). I'm not working on a computer with C++Builder right now, so you might have to make some minor adjustments.
int SelItem;
void __fastcall TForm1::ListBox1MouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift...
It would be useful if you could give us some information about the way the program closes. You should try to isolate the part of the program that causes the crashes and see if you can reproduce the crash.
Try to declare the Canvas method the same way Borland does in in TGraphicControl. The source code is in Delphi, but you should be able to 'translate' it into C++.
You shouldn't take a pointer to the Text.c_str() method, because it's memory will be erased after the call to the method. The right way to do it would be:
strcpy(OutputFile, EDIT_OutputFile->Text.c_str());
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.