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