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