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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by MoonchildHK

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

Part and Inventory Search

Back
Top