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 Mike Lewis 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: *

  • Users: smays
  • Order by date
  1. smays

    Should I switch from Borland C++ Builder 6.0 to Embarcadero C++??

    I guess my point is, if one is using a C API that is expecting to be passed a pointer to an 8-bit wide char array, c_str(), as implemented by the UnicodeString class (16-bit wide whar_t) cannot be used. Whereas c_str() as implemented by AnsiString returns a point to an 8-bit wide char array...
  2. smays

    Should I switch from Borland C++ Builder 6.0 to Embarcadero C++??

    You forgot the most important feature of AnsiString (versus UnicodeString), the c_str() member function of AnsiString still means something to legacy C APIs! Steve.
  3. smays

    Should I switch from Borland C++ Builder 6.0 to Embarcadero C++??

    I know I am a little late responding to this thread. I have 2009, of which I am very fond and I would really like to upgrade to XE2! So, 2ffat, do 2010 and later versions (XE) no longer support AnsiString at all? 2009 is "Unicode[String]-all-the-way", but still gives full support to...
  4. smays

    Radiogroup and Viewing images

    Use the OnClick event of TRadioGroup. One of the properties of TRadioGroup is ItemIndex, as in "RadioGroup1.ItemIndex" that will tell you specifically which item in the TRadioGroup list was selected. '-1' is a 'valid' value for ItemIndex indicating either there are no items in the list or no...
  5. smays

    Storing LARGE Blobs in a SQL capable database (including Access)

    Forgive me if this does not help. I use purchased libraries to work with a MySQL database (yes, I know, not one of the databases you mentioned above - please read on...). One activity for which a great of my code is responsible is to stream screen shot captures from oscilloscopes into our...
  6. smays

    RAD i think it's winsock problem.I'm stuck(it's been a few days)

    This may not be of any help, but the few occasions I have had trouble with winsock stuff was related to the order of the header files. I was using some purchased MySQL libraries, which apparently used winsock stuff, and some Indy components. Based on the suggestions of Builder users much...
  7. smays

    Need to read images other than *.bmp.

    I can't find support for tif images. There are at least two ways to go back and forth betwixt bitmaps and other image related objects (TImage, TJPEGImage, TGIFImage) depending on whether there is an embedded TBitmap object or a TCanvas object. I always have to fiddle with the syntax, so here...
  8. smays

    Would you recommend me using MySQL+MS Access on my situation?

    At some point someone mentioned Visual Basic. As your original post mentioned, your greatest strength lies in VBA. I do not know much about Visual Basic (I am a huge fan of CodeGear development tools), but I am confident your VBA skills will transfer nicely to Visual Basic. That said...
  9. smays

    How to pass data from invokated form to main form

    About the simplest way to access data in a TEdit assigned to a secondary TForm is to #include the header file for the secondary TForm somewhere in the code of the main TForm's unit code. You can then access the TEdit control 'directly'. Imagine two forms; frmMainForm (found in...
  10. smays

    Conecting to a database in delphi 2009 pro???

    MSSQL? I would go with whosrdaddy's suggestion. Chances are the ODBC drivers are waiting for you. As far as Paradox, BDE might be worth considering. However, there is a chance you already have Microsoft ODBC drivers for Paradox installed. If that is the case, you can learn to use the same...
  11. smays

    Conecting to a database in delphi 2009 pro???

    dbGo components work fine. I find the interface cumbersome compared to BDE-like interfaces (simply a personal choice). One thing to keep in mind regarding dbGo: you need to have ODBC drivers available. You did not happen to mention to what flavor of database you are trying to connect. MySQL...
  12. smays

    Msql and access pusername and password

    This sounds more like an Access question, as in, "how does one make/create a username and password dialog for a remote database using Access?" Steve.
  13. smays

    Best way to store JPG files

    The answer to question 1 is, as Phil wrote is use a BLOB field. Depending on the size of the actual JPG (from my experience > 35kBytes - I have not done any extensive testing to determine how big a BLOB can be and I think it is written somewhere), you may have to use a MEDIUMBLOB field type...
  14. smays

    Distributing Program with TClientDataSet

    I am writing a program using a single TClientDataSet to store data as the program progresses. Are there any special dependencies associated with using TClientDataSet? For example, do I have include MIDAS.DLL with the executable? I am using C++ Builder 2009. Thanks, Steve.
  15. smays

    TClientDataSet: Edit() and Post()

    I know I have to use Post() AFTER an Append(), which works nicely. But am I supposed to use Post() AFTER an Edit() as well? I tried both ways and the TClientDataSet is updated with the new data either way, so I just want to make sure the data isn't suddenly going to disappear or anything...
  16. smays

    Vista & Win7 Apps With Delphi 7

    I am confident that is not the case. Vista and Winderz 7 both support the Win32 API. Delphi 7 and every version of Delphi and C++ Builder since then are only for Win32 and only create Win32 applications, which Vista and Win7 still support. I use 2009 for Win32 development in a 64-bit Win7...
  17. smays

    Wrong setup for FLOAT? MySQL keeps changing the number!

    There will literally be conversion error with any floating precision approach. If the goal is to execute some kind of query like: ...WHERE article_map_latitude = 51.4916460374623 AND... then perhaps DECIMAL is better. I would never try to search for records based on the absolute value of...
  18. smays

    `information_schema`.`TABLES`.`DATA_LENGTH`

    What exactly is the data found in the `information_schema`.`TABLES`.`DATA_LENGTH` column? Is it the actually quantity of bytes the particular table consumes? I.e. the size in bytes of the table? Steve.
  19. smays

    Wrong setup for FLOAT? MySQL keeps changing the number!

    Can you change the `article_map_latitude` field to a DOUBLE? http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html The FLOAT data type does not sound like it is appropriate at all based on the number of decimal places for which it is supposed to be accurate: Everything I do both...
  20. smays

    Store Executables in Sharepoint: Why Not?

    Actually both. I do not know if it is possible. One of the hats I wear as an engineer is a Win32 developer. As a general rule, my stand-alone executables lack dependencies. The only dependencies are related to test equipment installation, so running the executables directly from our file...

Part and Inventory Search

Back
Top