469,935 Members | 2,218 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

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

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
Jul 22 '05 #1
6 4876
On Mon, 01 Nov 2004 20:23:00 -0500, Verne <ve***@notspam.ca> wrote in
comp.lang.c++:
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 news:borland.public.* 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.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #2

"Verne" <ve***@notspam.ca> wrote in message
news:g2********************************@4ax.com...
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
Jul 22 '05 #3
On Mon, 01 Nov 2004 21:59:46 -0600, Jack Klein <ja*******@spamcop.net>
wrote:
On Mon, 01 Nov 2004 20:23:00 -0500, Verne <ve***@notspam.ca> wrote in 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.

Vernecomp.lang.c++:
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


Jul 22 '05 #4
Verne wrote:

[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.
Jul 22 '05 #5
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

On Wed, 03 Nov 2004 17:07:23 -0500, Ron Natalie <ro*@sensor.com>
wrote:
Verne wrote:

[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.


Jul 22 '05 #6
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.

On Wed, 03 Nov 2004 17:07:23 -0500, Ron Natalie <ro*@sensor.com>
wrote:
Verne wrote:

[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.


Jul 22 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by TGF | last post: by
3 posts views Thread by René Kjellerup | last post: by
15 posts views Thread by Chris | last post: by
6 posts views Thread by Verne | last post: by
24 posts views Thread by serdar | last post: by
5 posts views Thread by Mark - KF8RV | last post: by
reply views Thread by Xproblem | last post: by
22 posts views Thread by smartwolf agassi via DotNetMonster.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.