Thursday, July 9, 2009

Getting a "List Index Out Of Bounds (9)" error when I try to remove a file from a project...?

I'm using Borland CodeGear C++ Builder 2007. I've created a fairly complicated project that includes such features as database access, as well as the heavy use of classes and libraries.





I apparently have some sort of a library synching issue because, when the statements:





double xx = 0.0;


xx = Pln.Nrd.retireAge;





are executed, xx is 65 and Pln.Nrd.retireAge is 0. I don't understand how this is possible-- it's a direct assignment, after all!-- unless it's a problem with the library I'm using.





In a separate (related?) issue, I have some files included in the project: report.cpp, plan.cpp, and getp.cpp. When I try to remove them, however, a dialog box immediately pops up saying, respectively:





List index out of bounds (8),


List index out of bounds (9),


and List index out of bounds (7)





I also can't "Save All", because the list index out of bounds error pops up and prevents these files from saving.





Any thoughts or suggestions would be appreciated.

Getting a "List Index Out Of Bounds (9)" error when I try to remove a file from a project...?
Well, the problem is certainly in either Pln or Nrd. If you set xx and it becomes 65, then Pln.Nrd.retireAge MUST have been 65 before you called it. You should look for a bug in one of those classes that might cause the variable's value to reset to 0 after you retrieve it.

blazing star

Where can I download file clientdatamoduleu.h?

This file appears to be in C++ Borland Builder version 5. when I try to install it, there is an error message that indicates this file is missing.

Where can I download file clientdatamoduleu.h?
I haven't find this file at google or Yahoo. I suggest that you send an email to borland and request this file if you think that it should have come with the C++ Borland Builder.





http://www.borland.com


Does anybody know how to use CreateFile to send and receive data via teh parallel port in Windows XP?

I'm using borland Builder C++ 5 and i need to send and receive data via parallel port. I know this can be done using CreateFile, but I haven't found any tutorial or anything like that. Can you help me please?

Does anybody know how to use CreateFile to send and receive data via teh parallel port in Windows XP?
Why Borland C++ 5.0. Doesn't that predate XP by like 7 years or more?





BTW: Google is your friend. Google knows all. (see links below).


THashedStringList?

I'm using Borland c++ builder. I've added objects which are basically lists to a THashedStringList, how would I retrieve the object from the THashedStringList at a later date. I know I need to iterate through the list..possibly a for loop





TIA

THashedStringList?
Nobody knows that stuff. Maybe you should invest in a c++ book..


Which of the following tools is a direct competitor to Visual Studio?

a. Borland C# Builder


b. InstallShield DevStudio


c. Nant


d. Altova xmlspy

Which of the following tools is a direct competitor to Visual Studio?
b





Now gimme my 10 points
Reply:c. Nant
Reply:Borland C#Builder

imperial

Progressing to another programming language?

When I was at college I learned to program using c++ with Borland C++ builder.I now know the language quite well.It was a few years ago when I learned it and things have moved on a bit since then. I would like to start programming again but which programming language would be best to learn now and what compiler should I use?It would be a shame to learn something totally different after I know C++ so is there a way where I can still use my C++ knowledge?

Progressing to another programming language?
Java, or D (which comes from C++ if I'm correct), or the .NET languages. But C++ is a good language to keep.
Reply:There are many Free Software projects out there using C++ . For example, Inkscape, Scribus, 7-zip, and thousands more. If you're using one, and there's something bugging you, why not join in and create a patch?





If you'd like to try something else for the experience of it, the closest thing in syntax is Java. Or, you could move further away, and try a language using a different programming concept, such as Haskell.
Reply:C++ is still the central language of many projects large and small (For example, the Firefox web browser is written mostly in C++), so depending on what you want to accomplish, why not stay with C++? If you want to develop for Windows only, the free Visual C++ Express Edition (http://msdn2.microsoft.com/en-us/express... ) is a good choice to get started. If want to be cross-platform, look into tools and IDEs that use the free GNU gcc/g++ compiler instead (Cygwin - http://www.cygwin.com is a nice commandline environment for g++ on Windows). But if you really want to move on to more "modern" languages, maybe C# is worth a look. Microsoft has a free "Express Edition" for C# too and there's some support for C# and the .NET framework outside of Windows too with the Mono Project - http://en.wikipedia.org/wiki/Mono_%28sof...
Reply:Move to visual studio 2005 and the .NET platform. You can leverage your knowledge of c++ to pick up c# (becoming very widely used) or c++/cli, or just plain c++.
Reply:Why move on? Borland made good compilers. C++ is well used, Linux is written in C. Bprland C++ builder is a C++ compiler with a simple to user windows interface. Latter versions are available and will do well. Or you could look a Delphi which is the same front end as C++ builder but uses Pascal as the language.


Symbian Programming?

How i can write programs for Mobile with Symbian OS (Nokia Series 60) in Borland Delphi and/or Borland C++ Builder





I prefer Borland Delphi 7, but C++ Builder is also another good choice





i searched SDKs for this IDEs but i cannot find anything. help me!

Symbian Programming?
http://www.symbian.com/developer/index.h...





There is all the information you need.