I am using C++ Builder and am creating a VCL Forms application.
Here is my code:
std::string returnStringFromUnicodeString(AnsiString str)
{
std::string s(str.c_str());
return s;
}
Currently I have this in the main.cpp file and can use this function from any other functions in this .cpp file.
My question is this: How can I call this function from another GUI form? I have included the .h of the main .cpp file but still have no luck.
Do I have to make it public or some other method?
Thanks
AnsiString?