Hi,
I just had to reformat my hard drive and although I have been working on BCB5, I had to install BCB6 since that is the only one we have in the office.
When I tried to compile my project I ended up with a fatal error:
Unable to open file: COW32.obj
Does anyone have any idea what this...
I have been doing this for years, and have written many programs using MySQL with C++ Builder5. I am using this file:
http://www.fichtner.net/delphi/mysql.delphi.phtml
You will also need the library from the MySQL package...
Ok finaly got it working!
Thanks for all the help, here is what I end up with:
char data[16];
int days, a, start;
sucess = Reg->ReadBinaryData("RegData", data, 16);
if(sucess) {
days = data[6];
if(days < 0)
days &= 255;
a =...
The class explorer is not part of the Home package, just the Professional and Enterprise version of BCB. (Well ,with BCB 5 anyway). That may be your problem :)
Thanks all for you great advice, but I am still still stuck!
I am doing this now;
unsigned char data[16];
unsigned int data2[8];
unsigned int days;
sucess = Reg->ReadBinaryData("RegData", data, 16);
if(sucess) {
// This is a 1 byte number
days = data[6];
}...
I am storing the numeric values... in my explanation I am showing the XX as it is seen when using RegEdit and examining binary data.
So if I am looking at an ASCII representation of the data it is just garbage.
Thanks for the routine Totte, but this one converts from an ASCII representation of...
HI All,
I have been trying to get this right for ages, and have ended up with about 10 lines of code for what I;m sure can be done in 1 statement!
I have a block of data stored in the registry. The block is binary: Ax Bx Cx Dx Ex Fx Gx Hx (8 Bytes)
Here is my problem: ExFx is an Integer I...
WideString != UTF8 sadly.
I have solved the problem now by writing my own routine to convert from WideString to UTF8 and vice-versa. UTF8 uses the first few bit's of a byte to identify how many bytes are in that character (as a character may be 1 to 5 bytes long) whereas WideString is always 2...
UTF8 (UCS Transformation Format 8 bit) is a way of representing non-latin characters. In the same way that WideStrings can contain chinese, korean and japanese etc characters, so can UTF8.
UTF8 is used by many programs to transfer these non-latin characters accross networks (in my case, I need...
Does anyone know how I can convert an AnsiString into a UTF8 coded string? The word UTF8 does not even see to be in any of the Help files with Borland C++ Builder 5!!
Any help would be much appreciated!
I am writing a simple plugin system for one of my programs usng DLLs (Dyamically linked, using GetProcAddress), but have run into a problem:
I am passing the pointer to a TTreeView to one of the functions in the DLL, but when the DLL tried to add a node to that TreeView, it throws and...
Hi,
I am trying to write a unicode application for windows, but not having much luck.
I noticed that on Internet Explorer (and other windows programs, even the 'Run' box) you can paste in double-byte characters (chinese in this case, I ctrl-c the text from Yahoo! Hong Kong website). The text...
I cant use a RichEdit because there is no way to write my own OnDraw event for it (unless someone knows how to override the built in one??)
As for the name in one color and the message in another, I create a structure contianing the message, date and username for each message, then attach it to...
Hi All,
I am writing an IRC client. For the main message list I am using a TListBox set to LBOwnerDrawFixed. I do this because I want to display the Username first (in one color) and then the message (in another color). Everything works fine except that the ListBox has no word wrap..
When I...
Hi All,
I am having serious problems with the ftp part of a program I am writing. I have a several TClientSocket, the first of which connects to the control port (21) of the ftp server. The other one is used to actually x-fer the data (on a port assigned using PASV).
My problem is that when I...
Yes, I did use the debuger to check which line was causing the termination. It was always the first line that writes a string to any cell on the 3rd row of the StringGrid (I have 1 fixed row at the top). I have plenty of memory spare at the time too. I can't figure it out!
Moonchild
Hi All,
I am using a TStringGrid in a progra, with one fixed row and no fixed columns. When I write to the 3nd row of the grid, the program unexpectly terminates? I can't figure out any reason.. no errors, no exxceptions, nothing. Just quits!
I have ensured there are enough rows to write to...
Hey All,
I am trying to make a connection to an SQL server using a TClientSocket with BCB5. Although I have no problem reading and writing data to other connections (FTP, SMTP, HTTP etc) I can't seem to get any sense out of a connection to a remote MySQL server.
When I use ReceiveBuf I just...
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.