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

    BCB5 -> BCB6... missing COW32.obj

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

    Connecting To MySQL Databases

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

    Hex from Registry to Integer

    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(&quot;RegData&quot;, data, 16); if(sucess) { days = data[6]; if(days < 0) days &= 255; a =...
  4. MoonchildHK

    classes don't show in class explorer on other pc

    Not soon my PC. I have BC installed on C:\ and the Projects on D:\ but I can use the class explorer fine. Weird!
  5. MoonchildHK

    classes don't show in class explorer on other pc

    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 :)
  6. MoonchildHK

    Hex from Registry to Integer

    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(&quot;RegData&quot;, data, 16); if(sucess) { // This is a 1 byte number days = data[6]; }...
  7. MoonchildHK

    Hex from Registry to Integer

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

    Hex from Registry to Integer

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

    CD Rom control?

    Anyone have any pointers to how I can stop / start and read the playing time of a CD in the computers CDRom drive? Thanks, Steph
  10. MoonchildHK

    AnsiString to UTF8?

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

    AnsiString to UTF8?

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

    AnsiString to UTF8?

    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!
  13. MoonchildHK

    Can a DLL access components from calling program?

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

    Unicode Application?

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

    Wordwrap in TListBox

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

    Wordwrap in TListBox

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

    TClientSocket eats ALL my memory??

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

    TStringGrid causes program termination

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

    TStringGrid causes program termination

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

    ReceiveText / ReceiveBuf gives garbage

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

Part and Inventory Search

Back
Top