473,396 Members | 1,918 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.

Declare AnsiString function

18
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:

[ILINK32 Error]:Unresolved external ' __fastcall System::TObject::ToString() referenced from . . . . ........

only this type(ansistring type) function gives error...

How can i fix this problem!

my ide is : c++ 2006
Aug 27 '07 #1
6 3211
sicarie
4,677 Expert Mod 4TB
Have you included the .h in your program, as well as put the location of Form.h into your classpath, or used a path in the include statement?
Aug 27 '07 #2
afraze
18
sicarie,

Yes, i had done before my first post. but i cant figure out this problem.i think i overlooked some code or stuff but i cant find the right way
Aug 27 '07 #3
weaknessforcats
9,208 Expert Mod 8TB
This looks amazingly like C#.

However, a link error occurs after the compile step and is caused by a missing library by a source file that was not supplied to the linker.

Please confirm if this is C# so I can move this thread to the correct forum.
Aug 27 '07 #4
afraze
18
No, this is c++, after my all post, i tried a new project, and it worked. still i cant understand that why my first program didnt work? where is my mistake?
Aug 28 '07 #5
weaknessforcats
9,208 Expert Mod 8TB
This still looks like C#. From what you say so far, I am guessing this is Managed C++ a.k.a. Visual C++.NET.

It may be your first project was not managed C++ but was a Console Applciation. That would explain the missing library.
Aug 28 '07 #6
afraze
18
no it is a borland c++ form.. so now , it doesnt matter for me because i solved..
this is a good news for me.. isnt it
Aug 28 '07 #7

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

Similar topics

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?
5
by: JNY | last post by:
Hi, I'm using a GUI Edit box to allow the user to enter a number. This data is stored as an AnsiString. I need it in Integer format, but cannot convert between the two. I found...
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: crash | last post by:
I have a program that i changed over from using char *'s to using ansistrings. Previously it had been: char string1; char string2; strcpy(string1,string2); now i use:
3
by: larcrik | last post by:
i have to convert a string into an AnsiString. Is there a way to do that?
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; ...
2
by: jewel87 | last post by:
Hi guys, I have a problem with inputting from a file. I have this function: void Product :: InputFromFile() { fstream inputfile; inputfile.open("input.txt");
4
by: jpenguin | last post by:
I'm writing an MCF prog, and I need to convert an ansistring to a cstring, but it seems to lose the last letter-- char* S = input->Text.c_str(); Label1->Caption = S;
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.