A caller-allocated string that contains the URL to navigate to, or the full path of the file to display.
dwFlags
The flags of a variable that specifies whether to add the resource to the history list, whether to read to or write from the cache, and whether to display the resource in a new window. The variable can be a combination of the values defined by theBrowserNavConstants enumeration.
lpszTargetFrameName
A pointer to a string that contains the name of the frame in which to display the resource.
lpszHeaders
A pointer to a value that specifies the HTTP headers to send to the server. These headers are added to the default Internet Explorer headers. The headers can specify such things as the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if URL is not an HTTP URL.
lpvPostData
A pointer to the data to send with the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form. If this parameter does not specify any post data, Navigate issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP URL.
dwPostDataLen
Data to send with the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form. If this parameter does not specify any post data, Navigate issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP URL.
위와 같습니다. 여기서 URL을 살펴보시면 알겠지만.
A caller-allocated string that contains the URL to navigate to, or the full path of the file to display.
이런 쉬운 질문 해두 되나?? 웹브라우저 콘트롤에서 HTML파일을 읽을려고 합니다. 절대경로(WebBrowser1.Navigate('c:sourcehtmltest.htm');)로 쓰면 읽혀지는데, 상대경로(WebBrowser1.Navigate('..test.htm');)로 쓰면 안되네여... 부탁...
김지태
•
2001.11.12 22:41
대왕초보 wrote:
> 이런 쉬운 질문 해두 되나??
>
> 웹브라우저 콘트롤에서 HTML파일을 읽을려고 합니...
> 이런 쉬운 질문 해두 되나??
>
> 웹브라우저 콘트롤에서 HTML파일을 읽을려고 합니다.
>
> 절대경로(WebBrowser1.Navigate('c:sourcehtmltest.htm');)로 쓰면 읽혀지는데,
>
> 상대경로(WebBrowser1.Navigate('..test.htm');)로 쓰면 안되네여...
>
> 부탁드림당..
>
>
>
안냐세영. UserSpace임덩.
날씨가 많이 쌀쌀하군여. 특히 옆구리가... 쩝. ^_^;
WebBrowser는 MS Explorer를 Com(ActiveX)기반으로 연결되는 것으로써,
Delphi에서 쓰더라도 결국(어떤툴이더라도) MS Explorer를 사용하는 것과 같습니덩.
그래서 아래와 같이 함수 원형을 써보면
CHtmlView::Navigate
void Navigate( LPCTSTR URL, DWORD dwFlags = 0, LPCTSTR lpszTargetFrameName = NULL, LPCTSTR lpszHeaders = NULL, LPVOID lpvPostData = NULL, DWORD dwPostDataLen = 0 );
Parameters
URL
A caller-allocated string that contains the URL to navigate to, or the full path of the file to display.
dwFlags
The flags of a variable that specifies whether to add the resource to the history list, whether to read to or write from the cache, and whether to display the resource in a new window. The variable can be a combination of the values defined by theBrowserNavConstants enumeration.
lpszTargetFrameName
A pointer to a string that contains the name of the frame in which to display the resource.
lpszHeaders
A pointer to a value that specifies the HTTP headers to send to the server. These headers are added to the default Internet Explorer headers. The headers can specify such things as the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if URL is not an HTTP URL.
lpvPostData
A pointer to the data to send with the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form. If this parameter does not specify any post data, Navigate issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP URL.
dwPostDataLen
Data to send with the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form. If this parameter does not specify any post data, Navigate issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP URL.
위와 같습니다. 여기서 URL을 살펴보시면 알겠지만.
A caller-allocated string that contains the URL to navigate to, or the full path of the file to display.
상대 Path가 아닌 full path(절대 Path)를 써주셔야 합니덩.
도움이 되셨으면 좋겠슴덩..,
그럼 20000.