Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Internet Explorer - MSW Only

(1/3) > >>

rcoll:
I once had a need to embed a browser window inside an application.  After reviewing and evaluating WebKit and wxWebConnect and wxIE, I decided to go with wxIE.  And then, of course, the project was cancelled.  All that work, all that time ... (sigh).

Anyway, I thought some of you Windows users might be interested in the wxIE plugin for wxSmith.  wxIE (actually, it's called wxIEHtmlWin) was originally written by Justin Bradfor and found it's way to the code repository on wxCode website.  The component is no longer actively supported, but that doesn't matter much since it is a very simple component.  However, it does require Active-X support and that Internet Explorer be installed on your machine.  That means it is MicroSoft Windows ONLY.  No Linux implementation here.

However, despite ignoring half the computing world, this is a fairly useful component and makes a nice addition to the wxSmith palette.  The component can be downloaded from either RapidShare or Berlios.  Note that the compiled version was compiled on a Windows XP machine, against CB svn 6168, using wxWidgets 2.8.10 and TDM GCC 4.4.1.

Download links are:


http://rapidshare.com/files/360657869/IE_Compiled_MSW.zip

http://rapidshare.com/files/360656877/IE_Source_Only.zip


http://prdownload.berlios.de/ringowidgets/IE_Compiled_MSW.zip

http://prdownload.berlios.de/ringowidgets/IE_Source_Only.zip




Ringo

MortenMacFly:

--- Quote from: rcoll on March 08, 2010, 05:09:29 pm ---I once had a need to embed a browser window inside an application.  After reviewing and evaluating WebKit and wxWebConnect and wxIE, I decided to go with wxIE.  And then, of course, the project was cancelled.  All that work, all that time ... (sigh).

--- End quote ---
Welcome to my world. I was using it, too in one of my projects. However, I did modify it a lot already to make t unicode compatible etc...
"all that time ... (sigh)"
True, true, true... :-(

Still: Nice addition... for me at least. ;-)

MortenMacFly:
Hmmm... after several trials I receive this error on the linker step:

In file included from C:\Devel\wxWidgets\include/wx/msw/wrapwin.h:58,
                 from C:\Devel\wxWidgets\include/wx/msw/app.h:92,
                 from C:\Devel\wxWidgets\include/wx/app.h:562,
                 from C:\Devel\wxWidgets\include/wx/wx.h:26,
                 from C:\Devel\CodeBlocks\src\plugins\contrib\wxSmithIE\IEHtmlWin.h:8,
                 from C:\Devel\CodeBlocks\src\plugins\contrib\wxSmithIE\wxsIExplore.h:49,
                 from C:\Devel\CodeBlocks\src\plugins\contrib\wxSmithIE\wxsIExplore.cpp:25:
C:\Devel\wxWidgets\include/wx/msw/winundef.h: In function 'HWND__* CreateDialog(HINSTANCE__*, const TCHAR*, HWND__*, BOOL (*)(HWND__*, UINT, WPARAM, LPARAM))':
C:\Devel\wxWidgets\include/wx/msw/winundef.h:39: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HWND__* CreateDialogParamW(HINSTANCE__*, const WCHAR*, HWND__*, BOOL (*)(HWND__*, UINT, WPARAM, LPARAM), LPARAM)'
C:\Devel\wxWidgets\include/wx/msw/winundef.h: In function 'HFONT__* CreateFont(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, const TCHAR*)':
C:\Devel\wxWidgets\include/wx/msw/winundef.h:70: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '14' to 'HFONT__* CreateFontW(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, const WCHAR*)'
C:\Devel\wxWidgets\include/wx/msw/winundef.h: In function 'HWND__* CreateWindow(const TCHAR*, const TCHAR*, DWORD, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)':
C:\Devel\wxWidgets\include/wx/msw/winundef.h:95: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HWND__* CreateWindowExW(DWORD, const WCHAR*, const WCHAR*, DWORD, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)'
C:\Devel\wxWidgets\include/wx/msw/winundef.h: In function 'HMENU__* LoadMenu(HINSTANCE__*, const TCHAR*)':
C:\Devel\wxWidgets\include/wx/msw/winundef.h:112: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HMENU__* LoadMenuW(HINSTANCE__*, const WCHAR*)'
C:\Devel\wxWidgets\include/wx/msw/winundef.h: In function 'HICON__* LoadIcon(HINSTANCE__*, const TCHAR*)':
C:\Devel\wxWidgets\include/wx/msw/winundef.h:318: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HICON__* LoadIconW(HINSTANCE__*, const WCHAR*)'
C:\Devel\wxWidgets\include/wx/msw/winundef.h: In function 'HBITMAP__* LoadBitmap(HINSTANCE__*, const TCHAR*)':
C:\Devel\wxWidgets\include/wx/msw/winundef.h:331: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HBITMAP__* LoadBitmapW(HINSTANCE__*, const WCHAR*)'
Process terminated with status 1 (0 minutes, 7 seconds)
6 errors, 12 warnings

So I can't build the plugin successfully... Any hints?! :?

rcoll:
That's strange, I've never seen those messages before.  However, they are obviously compile-time messages, and may have something to do (or may not) with char* conversions between Unicode and Ansi.  In the test project I gave, the only #defines I have on the Build Options -> Compiler tab are

__GNUWIN32__
__WXMSW__

So, by default it's building in Ansi mode.

I'm using TDM's GCC 4.4.1 and wxWidgets 2.8.10. 

Also -- I looked up my copy of "winundef.h", as referenced in your traceback.  It doesn't look anything like yours.  Not a "TChar" to be found.  I can't even find "tchar.h" in this version of wxWidgets (in older versions, that was where TChar was defined).


Which compiler/wxWidgets are you using?

Ringo

MortenMacFly:

--- Quote from: rcoll on March 09, 2010, 01:17:50 pm ---So, by default it's building in Ansi mode.

--- End quote ---
Ah! So that might be the reason. As C::B is unicode I've changed this project to unicode, too (as I did with all you other wxSmith additions btw...). Could you try to compile in unicode, please?


--- Quote from: rcoll on March 09, 2010, 01:17:50 pm ---Which compiler/wxWidgets are you using?

--- End quote ---
Same: TDM's GCC 4.4.1 and wxWidgets 2.8.10. 

Navigation

[0] Message Index

[#] Next page

Go to full version