GirishGupta
Programmer
Hi,
I'm new to 'C'.
I've got a TWebBrowser component. I have the following code:
For some reason, it doesn't work. I get the following errors:
Plese help...
Thanks in advance
Also, how do you convert, for example, a string to an int. Like in Delphi, this would be done by StrToInt()...how do you do it in C++?
I'm new to 'C'.
I've got a TWebBrowser component. I have the following code:
Code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Variant a = 0, b = 0, c = 0, d = 0;
WebBrowser1->Navigate("[URL unfurl="true"]http://www.microsoft.com/",[/URL] a, b, c, d);
}
For some reason, it doesn't work. I get the following errors:
Code:
[C++ Error] Unit1.cpp(22): E2034 Cannot convert 'AnsiString' to 'wchar_t *'.
[C++ Error] Unit1.cpp(22): E2343 Type mismatch in parameter 'URL' in call to '_fastcall TWebBrowser::Navigate(wchar_t *,TVariant *,TVariant *,TVariant *,TVariant *)'.
Plese help...
Thanks in advance
Also, how do you convert, for example, a string to an int. Like in Delphi, this would be done by StrToInt()...how do you do it in C++?