comparison win/browser.c @ 1362:412af8059331

Attempt to get it building with Mingw again... builds but crashes. Fix building DLL without HTML widget support... Mingw is missing required headers. Moved wrapper functions into the main source file so it will export the APIs even if unsupported. Removed debugging code from XBrowseForFolder.cpp because Mingw does not support it.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 18 Nov 2011 18:56:40 +0000
parents f253a7559a59
children 32b5fba0b00a
comparison
equal deleted inserted replaced
1361:324812debcc9 1362:412af8059331
1136 * specified window, prior to calling this function. You need call 1136 * specified window, prior to calling this function. You need call
1137 * EmbedBrowserObject() once only, and then you can make multiple calls to 1137 * EmbedBrowserObject() once only, and then you can make multiple calls to
1138 * this function to display numerous pages in the specified window. 1138 * this function to display numerous pages in the specified window.
1139 */ 1139 */
1140 1140
1141 void API dw_html_action(HWND hwnd, int action) 1141 void _dw_html_action(HWND hwnd, int action)
1142 { 1142 {
1143 IWebBrowser2 *webBrowser2; 1143 IWebBrowser2 *webBrowser2;
1144 IOleObject *browserObject; 1144 IOleObject *browserObject;
1145 1145
1146 // Retrieve the browser object's pointer we stored in our window's GWL_USERDATA when 1146 // Retrieve the browser object's pointer we stored in our window's GWL_USERDATA when
1223 * specified window, prior to calling this function. You need call 1223 * specified window, prior to calling this function. You need call
1224 * EmbedBrowserObject() once only, and then you can make multiple calls to 1224 * EmbedBrowserObject() once only, and then you can make multiple calls to
1225 * this function to display numerous pages in the specified window. 1225 * this function to display numerous pages in the specified window.
1226 */ 1226 */
1227 1227
1228 int API dw_html_raw(HWND hwnd, char *string) 1228 int _dw_html_raw(HWND hwnd, char *string)
1229 { 1229 {
1230 IWebBrowser2 *webBrowser2; 1230 IWebBrowser2 *webBrowser2;
1231 LPDISPATCH lpDispatch; 1231 LPDISPATCH lpDispatch;
1232 IHTMLDocument2 *htmlDoc2; 1232 IHTMLDocument2 *htmlDoc2;
1233 IOleObject *browserObject; 1233 IOleObject *browserObject;
1352 * specified window, prior to calling this function. You need call 1352 * specified window, prior to calling this function. You need call
1353 * EmbedBrowserObject() once only, and then you can make multiple calls to 1353 * EmbedBrowserObject() once only, and then you can make multiple calls to
1354 * this function to display numerous pages in the specified window. 1354 * this function to display numerous pages in the specified window.
1355 */ 1355 */
1356 1356
1357 int API dw_html_url(HWND hwnd, char *url) 1357 int _dw_html_url(HWND hwnd, char *url)
1358 { 1358 {
1359 IWebBrowser2 *webBrowser2; 1359 IWebBrowser2 *webBrowser2;
1360 VARIANT myURL; 1360 VARIANT myURL;
1361 IOleObject *browserObject; 1361 IOleObject *browserObject;
1362 1362