473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

convert string into AnsiString

i have to convert a string into an AnsiString. Is there a way to do that?
Aug 29 '07 #1
3 2435
Meetee
931 Expert Mod 512MB
i have to convert a string into an AnsiString. Is there a way to do that?
Hi,

Please search on google. You will find many sites discussing this issue.

Here is one link

Regards
Aug 29 '07 #2
yes. Thank you. But it's like running in circles. What i need actually is how to read strings from a file and copy them (line by line) into a RichEdit box
Aug 29 '07 #3
weaknessforcats
9,208 Expert Mod 8TB
There are ATL and MFC macros to convert C-strings to AnsiSrtring.


Start here.

Don't forget to code:


USES_CONVERSION;

top enable the macros before you use them.
Aug 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Victor Hannak | last post by:
I am taking a program written in Borland C++ Builder 4 and converting the non-GUI related code to be generic c++ that can run anywhere. My main issue at this point is dealing with the string...
2
by: Mendon?a | last post by:
I cant seem to find on borland help files anything about AnsiString to char conversion. Just the opposite. Can u help me?
9
by: Franz Seidl | last post by:
Hello, how can i convert a AnsiString to double? I'm using C++ Builder 5 from Borland... Greets, Franz --
2
by: jiangyh | last post by:
hi there : I have a question about how to convert Type to DbType? thanks a lot. jiangyh
0
by: dush | last post by:
Hi all, Funny, but I simply cant manage to read / write value from Controls (TextBox, Label ...) in Visual C++. I am new to Visual C++ so please explain! How to get a value from user (TextBox)...
3
by: afr02hrs | last post by:
Hi Experts I am trying to get the following program running correctly. I would like to be able to input a line of text containing multiple space characters between words and have the program...
6
by: afraze | last post by:
Hi! My problem is that: When i declare an AnsiString function in my Form.h("Form.h" is an ex. name) i am getting this error: :Unresolved external ' __fastcall System::TObject::ToString()...
5
by: Michael Bell | last post by:
I have just done (but done badly in) the Open University course "MT262: Putting computers to work". Borland Builder 5 is supplied as part of the course. It uses the data-type AnsiString for strings...
1
codexparse
by: codexparse | last post by:
I am writing a browser program in C++ Builder 6 that loads a web page using the following code: void __fastcall TForm1::ToolButton1Click(TObject *Sender) { wchar_t buff; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.