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

    getline() and the evil widen('\n') call

    This problem was resolved by changing from the two parameter form of getline(char * buf, int bufsize) to the three parameter form: getline(char * buff, int bufsize, char terminator). The reason this works is that the two parameter form just calls the three parameter form like this...
  2. rgallaway

    getline() and the evil widen('\n') call

    I have a bunch of code that I am porting from Builder 5 to Builder 6. Code that worked fine under BCB5 crashes (throws an exception, really) in the fstream fstream::getline() method. It appears that the stream is trying to access a locale facet that does not exist in the process of executing a...
  3. rgallaway

    TTimer ?

    There is a 3rd party rewrite of TTimer called TThreadedTimer that is available for free. I inherited a project that uses TThreadedTimer to update an OpenGL windows and it seems to be pretty reliable and very responsive. It was written by Alan Garney and is available from his Hellix web site...
  4. rgallaway

    MS Excel spreadsheet interface

    A member of my development team wrote some code to generate an Excel workbook with multiple sheets. I can send you a chunk of code (a C++ object) that will serve as an example of how this is done using OLE. This stuff is not for the uninitiated, however. If you consider yourself to be a C++...
  5. rgallaway

    Problem with inherited class

    jb, Since this only a skeleton I cannot really tell what you are trying to do, but I think that your problem lies in the definition of the TSquare constructor: TSquare::TSquare(???????):TShape(???????) { ...... } The stuff that follows the ":" in a constructor definition is...
  6. rgallaway

    help overloading []

    Iggy, I assume that you are trying to compare the position-th value in the vector with the content of variable. First off, where is the vector that you are trying to subscript? Class Dataset { ... int& operator[](int x) { return vector[x]; } bool compare(int position...
  7. rgallaway

    running an outside program??

    spabb, Try this following chunk of code. I have not run this exact incarnation of this procedure, but it is extracted from a procedure that I use all the time. The code uses the CreateProcess() procedure from the Win32 API: ----------------------------------------------------------- void...

Part and Inventory Search

Back
Top