코드(33)
-
ServletFilter를 통한 URI 재구성 (Blog처럼)
package com; import java.io.IOException; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.ServletRequest; impo..
2009.02.22 -
printStackTrace 2008.09.02
-
DoCapture(IHTMLElement *ele, IViewObject2 *vObj, int width, int height, int cwidth, int cheight, int wd, int hd)
void __fastcall TForm1::Button1Click(TObject *Sender) { CppWebBrowser1->Navigate(WideString(Edit1->Text)); } //--------------------------------------------------------------------------- void __fastcall TForm1::Button2Click(TObject *Sender) { IViewObject2 *vObj; IHTMLElement2 *ele2; IHTMLElement2 *ele_5; IHTMLDocument2 *doc2; IHTMLElement *ele; IHTMLElement *ele_4; IHTMLDocument3 *doc3; long bHe..
2008.08.19 -
TShellWindows
void __fastcall TForm1::Button1Click(TObject *Sender) { TShellWindows *Sh = new TShellWindows(NULL); try { for(int i = 0; i Count; i++) { if(Sh->Item(i) == NULL) continue; Draw(Sh->Item(i)); break; } } __finally { delete Sh; } } //--------------------------------------------------------------------------- void __fastcall TForm1::Draw(IDispatch *Idisp) { IWebBrowser2 *IE = (IWebBrowser2 *)N..
2008.08.19 -
TInternetExplorer
ie = new TInternetExplorer(NULL); ie->OnStatusTextChange = IEStatusTextChange; ie->Visible = true; ie->Navigate(WideString("http://www.sonystyle.co.kr")); ie->Free();
2008.08.14 -
WebBrowser-Capture
IViewObject2 *vObj ; TRect rect = Rect(0, 0, CppWebBrowser1->Width, CppWebBrowser1->Height); Graphics::TBitmap *bmp = new Graphics::TBitmap(); bmp->Width = CppWebBrowser1->Width; bmp->Height = CppWebBrowser1->Height; if(FAILED(CppWebBrowser1->Document->QueryInterface(IID_IViewObject2, (void **)&vObj))) return; OleCheck(vObj->Draw(DVASPECT_CONTENT, 1, NULL, NULL, this->Handle, bmp->Canvas->Handle..
2008.08.14