I was like "sh*t"...
I asked on other forum i told them that iwant to develop games/desktop applications, and they told me to move to c#. What should i do? I want to stay at C++ anyway... :/ I would appreciate if you would help me understanding this... :/
void __fastcall TForm1::Zapiszjako1Click(TObject *Sender)
This is a class function of the class TForm1. It accepts one parameter. That parameter is of type pointer-to-TObject.
__fastcall is a specific instruction to the compiler, only recognised by the MS compiler. It's not standard C++. Don't worry about it.
1 2
{
if (SaveDialog1->Execute())
Execute the function SaveDialog1->Execute(). If the return value is true (or something that converts to true), then run the contents of the following block.
1 2
{
try
This code might throw an exception. If it does, there's a catch at the end to catch the exception.
The function takes an argument, but never uses it.
Three variables are mentioned: SaveDialog1, tresc, and nazwapliku.
They are either global, or members of class TForm1, or inherited by class TForm1.
The SaveDialog1 is apparently a pointer to object that has member function Execute() and member variable FileName.
The tresc is apparently a pointer to object that has public member pointer to object that has member function SaveToFile(). That function might indicate an error by throwing an exception.
You must read the definition of class TForm1 to find out the actual types, and then study the definition of those types.
Not sure what tresc is. Lines is a kind of TStringList and SaveToFile does what it's name suggest.
Would be easier to help you if you use English names for your variables.
tresc is memo (c++ builder 6), but i have problem with "->" i was told it's from polymorphism, and i just don't understand it... ;/
if there's any error in the code, sorry i was changing it at this moment...