Borland Builder C++ 6 It's tutorial on the Editor

V

Verne

I was just wondering if anyone else is using this program in
the Enterprise edition as I'm a little disgusted with the Tutorial on
the Editor. Worked fine withe the exception that one line of code
always brings up an error. This line is done in the Save Command and
it's the line they give themselves in the tutorial.

Perhaps I'm stupid or something but trying to learn. I also
have Microsoft Visual C++ so play around with both. Any help out
there

Verne
 
J

Jack Klein

I was just wondering if anyone else is using this program in
the Enterprise edition as I'm a little disgusted with the Tutorial on
the Editor. Worked fine withe the exception that one line of code
always brings up an error. This line is done in the Save Command and
it's the line they give themselves in the tutorial.

Perhaps I'm stupid or something but trying to learn. I also
have Microsoft Visual C++ so play around with both. Any help out
there

Verne

This group discusses the C++ language, as defined by its ANSI/ISO
standard. It does not discuss particular compilers, linkers, IDEs,
editors, debuggers, etc. None of these are defined by, or part of,
the C++ language.

If you have difficulties with Borland's products, ask for help in one
of their many support groups in the family. You
need to connect to their server, nntp:newsgroups.borland.com, to post
there, or you can access them with your browser somewhere on their web
site.
 
J

John Harrison

Verne said:
I was just wondering if anyone else is using this program in
the Enterprise edition as I'm a little disgusted with the Tutorial on
the Editor. Worked fine withe the exception that one line of code
always brings up an error. This line is done in the Save Command and
it's the line they give themselves in the tutorial.

Perhaps I'm stupid or something but trying to learn. I also
have Microsoft Visual C++ so play around with both. Any help out
there

I'm a bit confused, you talk about a tutorial on an editor, but you also
talk about code errors. The editor doesn't know much about code, if you are
getting code errors you must be compiling something.

So if you are compiling some code, getting an error and you want help fixing
it, then post the code here.

But if you are really struggling with the editor, then a Borland place would
be the best to ask.

john
 
V

Verne

Thanks for the reports fellows. I'm so green that I really don't even
know how to see all the code as yet but this is the complaint error I
receive and I'll try to show the code that the error takes place in.

[C++ Error] Unit1.cpp(64): E2451 Undefined symbol 'Filename'




void __fastcall TForm1::FileSaveAs1BeforeExecute(TObject *Sender)
{
FileSaveAs1->Dialog->InitialDir = ExtractFilePath (Filename);
}
//---------------------------------------------------------------------------

With VB I'd know what to do or where to look and thanks for the other
addresses to look too. This looks like a live group and thanks to all
who responded.

Verne
 
R

Ron Natalie

Verne said:
[C++ Error] Unit1.cpp(64): E2451 Undefined symbol 'Filename'




void __fastcall TForm1::FileSaveAs1BeforeExecute(TObject *Sender)
{
FileSaveAs1->Dialog->InitialDir = ExtractFilePath (Filename);
}

Well it would seem that Filename isn't known. It's obviously
NOT a local variable to the function shown. My guess that it's
a member variable. Does the clsas TForm1 have such a member?
Remember that C++ is CASE SENSITIVE. If the member variable
is "filename" or "FileName" you need to make this code match.
 
V

Verne

Ah good, someone who perhaps knows.

I sort of thought that it was this but just working this Editor
tutorial as my first look at Builder 6 C++ I have no idea where to
place this. In Visual Basic we do this but here I've still to learn.

I have Ivor Hortons book "Beginning C++ 6" but it's strictly
dos stuff or much like C so next to no help with this program which is
geared for Windows. If not perhaps I shouldn't waste my time on it.
I'm just a kid of al most 76 but love learning.

Thanks so far, Ron,
Verne

Verne said:
[C++ Error] Unit1.cpp(64): E2451 Undefined symbol 'Filename'




void __fastcall TForm1::FileSaveAs1BeforeExecute(TObject *Sender)
{
FileSaveAs1->Dialog->InitialDir = ExtractFilePath (Filename);
}

Well it would seem that Filename isn't known. It's obviously
NOT a local variable to the function shown. My guess that it's
a member variable. Does the clsas TForm1 have such a member?
Remember that C++ is CASE SENSITIVE. If the member variable
is "filename" or "FileName" you need to make this code match.
 
V

Verne

Ron,
Just went back and took a longer look after your answer and
what do youi know but that Borland Misspelled the name or miss typed
it at least as I simply copied it and pasted for the test tutorial.

Filename was listed earlier on that page as FileName so simply changed
the k to K and it now works fine.

Thank you.

Verne said:
[C++ Error] Unit1.cpp(64): E2451 Undefined symbol 'Filename'




void __fastcall TForm1::FileSaveAs1BeforeExecute(TObject *Sender)
{
FileSaveAs1->Dialog->InitialDir = ExtractFilePath (Filename);
}

Well it would seem that Filename isn't known. It's obviously
NOT a local variable to the function shown. My guess that it's
a member variable. Does the clsas TForm1 have such a member?
Remember that C++ is CASE SENSITIVE. If the member variable
is "filename" or "FileName" you need to make this code match.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top