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...
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...
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...
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++...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.