Expand|Select|Wrap|Line Numbers
- void __fastcall TForm1::ToolButton1Click(TObject *Sender)
- {
- wchar_t buff[100];
- MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED,
- "http://www.thescripts.com", -1, buff, sizeof(buff));
- CppWebBrowser1->Navigate(buff, 0, 0, 0, 0);
- }
Expand|Select|Wrap|Line Numbers
- void __fastcall TForm1::ToolButton1Click(TObject *Sender)
- {
- const char *tempstring = Edit1->Text;
- wchar_t buff[100];
- MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED,
- tempstring, -1, buff, sizeof(buff));
- CppWebBrowser1->Navigate(buff, 0, 0, 0, 0);
- }
TStringConverter::AnsiToWide
Converts a null-terminated ANSI string to a wide (Unicode) string.
static LPWSTR AnsiToWide(LPCSTR src);
WideToAnsi calls MultiByteToWideChar(), using the ANSI code page, to convert the ANSI string specified by src to a null-terminated string of Unicode characters. The source string may be from a multibyte character set.
Thanks in advance for suggestions anyone might have as to how I can resolve this programming obstacle.