|
|
|
Режим редактирования CppWebBrowser
|
|||
|---|---|---|---|
|
#18+
Здраствуйте не подскажите как перевести в Borland С++ 5 CppWebBrowser в режим редактирования в дельфях нашел так procedure TForm1.WebBrowser1DocumentComplete(Sender: TObject; const pDisp: IDispatch; var URL: OleVariant); var CurrentWB: IWebBrowser; begin CurrentWB := pDisp as IWebBrowser; (CurrentWB.Document as IHTMLDocument2).DesignMode := 'On'; end; procedure TForm1.Button1Click(Sender: TObject); begin WebBrowser1.Navigate('http://wp.netscape.com/assist/net_sites/example1-F.html') end; делал в Borland С++ 5 void __fastcall TForm1::CppWebBrowser1DocumentComplete(TObject *Sender, LPDISPATCH pDisp, TVariant *URL) { IWebBrowser *CurrentWB; IHTMLDocument2 *pDoc; CurrentWB = (IWebBrowser*)& pDisp; ((IHTMLDocument2*)CurrentWB->Document)->put_designMode(L"on"); } Компилируется нормально но при выполнении процедуры вылетает ошибка 'Access violation at address ' Спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.11.2007, 13:31:21 |
|
||
|
|

start [/forum/topic.php?fid=57&fpage=269&tid=2027879]: |
0ms |
get settings: |
10ms |
get forum list: |
20ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
79ms |
get topic data: |
12ms |
get forum data: |
4ms |
get page messages: |
35ms |
get tp. blocked users: |
2ms |
| others: | 234ms |
| total: | 406ms |

| 0 / 0 |
