Re: Embed Windows Internet Explorer

2013-12-19 Thread Marco Leise
Am Thu, 19 Dec 2013 17:36:57 + schrieb Richard Webb : > On 18/12/2013 20:48, Andre wrote: > > => myURL.bstrVal = SysAllocString(cast(const(wchar*))url); > > > Looks like the problem there is casting a string to a wchar* - I guess > the resulting BSTR will contain garbage instead of the int

Re: Embed Windows Internet Explorer

2013-12-19 Thread Richard Webb
On 18/12/2013 20:48, Andre wrote: > => myURL.bstrVal = SysAllocString(cast(const(wchar*))url); Looks like the problem there is casting a string to a wchar* - I guess the resulting BSTR will contain garbage instead of the intended value. > > It only works with statement: > myURL.bstrVal = cas

Re: Embed Windows Internet Explorer

2013-12-19 Thread Andre
Am 19.12.2013 16:54, schrieb Adam D. Ruppe: On Thursday, 19 December 2013 at 15:45:49 UTC, Andre wrote: Exacactly. But if I have my url in a string variable, how can I get the wchar[].ptr from my string variable, to fill bstrVal? You can use wstring variables and convert them with import std.

Re: Embed Windows Internet Explorer

2013-12-19 Thread Adam D. Ruppe
On Thursday, 19 December 2013 at 15:45:49 UTC, Andre wrote: Exacactly. But if I have my url in a string variable, how can I get the wchar[].ptr from my string variable, to fill bstrVal? You can use wstring variables and convert them with import std.utf; wchar* str = toUTFz!(wchar*)(another_st

Re: Embed Windows Internet Explorer

2013-12-19 Thread Andre
Am 19.12.2013 10:58, schrieb Marco Leise: Did you mean this?: myURL.bstrVal = "http://www.google.de"w.ptr; Exacactly. But if I have my url in a string variable, how can I get the wchar[].ptr from my string variable, to fill bstrVal?

Re: Embed Windows Internet Explorer

2013-12-19 Thread Marco Leise
Am Wed, 18 Dec 2013 21:48:30 +0100 schrieb Andre : > Am 16.12.2013 19:44, schrieb Andre: > > Hi, > > > > I try to embed Windows Internet Explorer into my application. > > Most of the coding should be availabe. During method navigate2 > > I get an empty white scr

Re: Embed Windows Internet Explorer

2013-12-18 Thread Andre
Am 16.12.2013 19:44, schrieb Andre: Hi, I try to embed Windows Internet Explorer into my application. Most of the coding should be availabe. During method navigate2 I get an empty white screen. No errors is thrown but also the web page is not loaded. Do you have some ideas? => Is use

Re: Embed Windows Internet Explorer

2013-12-17 Thread Andre
Am 17.12.2013 17:34, schrieb Adam D. Ruppe: I'm not able to run your code but are you sure the web page control is sized in your window? One time I had a problem like this and it was because the control was a 1x1 pixel... I just checked, the dimensions of the main form are passed correctly to t

Re: Embed Windows Internet Explorer

2013-12-17 Thread Adam D. Ruppe
I'm not able to run your code but are you sure the web page control is sized in your window? One time I had a problem like this and it was because the control was a 1x1 pixel...

Embed Windows Internet Explorer

2013-12-16 Thread Andre
Hi, I try to embed Windows Internet Explorer into my application. Most of the coding should be availabe. During method navigate2 I get an empty white screen. No errors is thrown but also the web page is not loaded. Do you have some ideas? => Is use the windows headers from DSource and the d