Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mattcs

    removing read-only attribute from files

    From the command line; attrib -r [drive:] [path] [filename] From the user interface: File | Properties ----------------------------------- Wisdom doesn't always come with age. Sometimes age comes alone. (you're never too old to learn)
  2. mattcs

    Creating a new CheckBox with self drawing method ???

    A two part process should suffice. 1) Overload the WinProc() procedure within your class and capture the Paint message. Something like: XCheckBox::WinProc(TMessage &AMsg) { . . . . // Pass the messages on to the default window procedure. TCheckBox::WndProc(AMsg); . . . . if...
  3. mattcs

    Newbie question

    A few points to consider off the top of my head: - Is the header file syntax correct ? - Is the file naming correct ? - Have you added the source code file to the project ? - Does the project know where to find any required include or library files ? Hope this helps...
  4. mattcs

    TChart (series data) question

    I have a solution of sorts. I simply deleted all traces of TChart v6 off my system and went with the 'standard' v4 TChart that comes with Builder. I was using an evaluation version of TChart v6 and even building with run time packages etc didn't make any difference. Steema software has some...
  5. mattcs

    Word Wrap Text on Button?

    This is NOT an answer (sorry), I am simply intrigued myself. The button's label is an AnsiString and in my knowledge I don't know how to insert a new line character into (essentially) a single line string. Perhaps you could derive a component from a TButton where that component's caption is a...
  6. mattcs

    Using Synchronise

    I assume here a TThread. Mark Cashman (www.temporaldoorway.com ) I think describes it very well. "Synchronize is a special function provided by TThread. It acts like a critical section for accessing forms controlled by the main thread (the thread which is represented by your Project...
  7. mattcs

    TChart (series data) question

    I am investigating the use of a TChart component and want to use data (derived from another object) in a corresponding TLineSeries. From the help files etc, it seems that the AddXY() method is what I should use. Using the debugger stepping functions, I have ensured that the values are being...
  8. mattcs

    Enterprise vs. Standard

    I have seen Enterprise being used. The impression I get is that with Enterprise you have more options with the component libraries. 3rd party manufacturers have licensing deals with Borland to ship their product along with the environment's functionality. It depends what you want to acheive. In...
  9. mattcs

    Problem with bind2nd with user defined class

    From what I understand about this code fragment; the object MyLess (struct is really a public class) doesn't know what a 'Person' is and any comparison operations between MyLess and Person types need to be defined and known to MyLess. Wisdom doesn't always come with age. Sometimes age comes alone.
  10. mattcs

    MS Excel spreadsheet interface

    Is anyone able to give some suggestions / tips on interfacing with an MS Excel spreadsheet. Thanks
  11. mattcs

    Can C++ give output voltage at serial port 1 ?

    As far as I am aware, you should be able to do this. You will need to look at the hardware (UART registers etc) and see what corresponds with pin 5. Then you will need to program the register (via its address) to get a result on the pin you are after. You can certainly do this in C++ (or any...
  12. mattcs

    A big, comprehensive book on C++?

    If you want to know about the C++ language, then who better to ask than the man who invented it (Mr Bjarne Stroustrup that is). Try this link (or do a search for others): http://www.research.att.com/~bs/3rd.html
  13. mattcs

    Double buffered animation

    The API functions given in the thread example will be available with Borland's implementation of the WindowsAPI or even have VCL (encapsulation) equivalents to make life easier:) I would think that the canvas of the TImage would be a good place to start, eg - Image1->Canvas->Draw(...) My...
  14. mattcs

    Simple question

    Any forum is only as good as the people who are participating at the time. The people who ask questions should ask sensible ones that are thought out and provide all the relevant information including a descriptive question title. The people who provide answers should do so to the best of...
  15. mattcs

    Debugging Components - Tips Request

    I have corrected the problem (but what the problem actually was I still don't know). The best I can think of is some sort of conflict within the IDE. For those who may be interested, to fix the problem: I removed the component from the pallete and the component's package lib from the design...
  16. mattcs

    Debugging Components - Tips Request

    Can anyone give me some tips on debugging a component during design time ? I have a descendent of TLabel (TMyLabel) and have introduced one new property. At run time, I can set a value for the new property (eg - TMyabel->NewProperty = SomeValue) and get the result I want. From this I...
  17. mattcs

    Delphi or C++ builder ?

    It would think it depends on your background. Having come a 'C' background (and now C++) my personal preference is for C++ Builder. The other reason behind this is that I have never been exposed to Pascal or Object Pascal and don't really have any desire to learn it. The intracacies and nuiances...
  18. mattcs

    Tracing PINGs

    You would probably need to read all the IP datagrams comming into your machine (look at the protocol field of the header) and see which ones have an Echo Request in them. Using Windows (Berkley) sockets, the following is from the excellent Black Sun Reasearch site from one of their winsock...
  19. mattcs

    What coding is needed to

    Have you looked at fflush() to clear streams: #include <stdio.h> int fflush(FILE *stream);
  20. mattcs

    Help with array of pointers

    I've figured the answer for those interested. The following is the amended code for the 'delete' part (the most obvious things stare you in the face but you still can't see them). for(int index = 0; index < 3; index++) delete [] buffer[index]; That's all.

Part and Inventory Search

Back
Top