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

Internet Explorer - MSW Only

<< < (2/3) > >>

rcoll:

--- Quote from: MortenMacFly on March 09, 2010, 02:48:29 pm ---
--- 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. 


--- End quote ---

Ah! So desu!

I normally work only in Ansi mode (my boss says "Unicode? What's a Unicode?  Can I drink it?")  I'll try this in Unicode, and if I can come up with a bi-code fix.

Ringo

rcoll:
Well, that was too easy.  I must have done something wrong.  I compiled it with Unicode enabled, and linked to the (static) Unicode-version of wxWidgets, and it worked first time.  Runs, too.

I attached a zipped copy of my IETest project file; take a look and see if we are doing the same thing.

Ringo


[attachment deleted by admin]

MortenMacFly:

--- Quote from: rcoll on March 09, 2010, 06:04:49 pm ---I attached a zipped copy of my IETest project file; take a look and see if we are doing the same thing.

--- End quote ---
IETest works, just not the linking of the wxSmith plugin (as I wrote). this causes the linker errors in Unicode. The test project is just fine... for me, too.

rcoll:
It is still strange and bizarre -- I build in Unicode when making the plugins for wxSmith.  Attached is a zip with my wxsIExplore project file.  For reference, I use these #defines in the Build Options -> Compiler tab:

BUILDING_PLUGIN
HAVE_W32API_H
__WXMSW__
WXUSINGDLL
cbDEBUG
wxUSE_UNICODE


And, just to be complete, here is a copy of the build log from (just now) re-building the plugin:
(I put the blank lines in just to make it easier to read)


-------------- Build: wxsSmithIExplore in wxsSmithIExplore - Internet Explorer for MSW ---------------

mingw32-g++.exe -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -include sdk.h -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DwxUSE_UNICODE     -IC:\Local\CBDev\cb6186\src\include -IC:\Local\CBDev\cb6186\src\include\wxscintilla\include -IC:\Local\CBDev\cb6186\src\include\wxFlatNotebook\include -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\defitems -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\propgrid\contrib\include -IC:\Local\wxWidgets-2.8.10\include -IC:\Local\wxWidgets-2.8.10\additions\include -IC:\Local\wxWidgets-2.8.10\lib\gcc_dll\mswu -Isrc -Iimages -I..\src  -c C:\Local\CBDev\IE\src\cguid.cpp -o ..\obj\src\cguid.o

cc1plus.exe: warning: C:\Local\CBDev\cb6186\src\include/sdk.h.gch: not used because `WX_PRECOMP' not defined

mingw32-g++.exe -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -include sdk.h -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DwxUSE_UNICODE     -IC:\Local\CBDev\cb6186\src\include -IC:\Local\CBDev\cb6186\src\include\wxscintilla\include -IC:\Local\CBDev\cb6186\src\include\wxFlatNotebook\include -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\defitems -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\propgrid\contrib\include -IC:\Local\wxWidgets-2.8.10\include -IC:\Local\wxWidgets-2.8.10\additions\include -IC:\Local\wxWidgets-2.8.10\lib\gcc_dll\mswu -Isrc -Iimages -I..\src  -c C:\Local\CBDev\IE\src\wxactivex.cpp -o ..\obj\src\wxactivex.o

cc1plus.exe: warning: C:\Local\CBDev\cb6186\src\include/sdk.h.gch: not used because `WX_PRECOMP' not defined

mingw32-g++.exe -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -include sdk.h -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DwxUSE_UNICODE     -IC:\Local\CBDev\cb6186\src\include -IC:\Local\CBDev\cb6186\src\include\wxscintilla\include -IC:\Local\CBDev\cb6186\src\include\wxFlatNotebook\include -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\defitems -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\propgrid\contrib\include -IC:\Local\wxWidgets-2.8.10\include -IC:\Local\wxWidgets-2.8.10\additions\include -IC:\Local\wxWidgets-2.8.10\lib\gcc_dll\mswu -Isrc -Iimages -I..\src  -c C:\Local\CBDev\IE\wxs\src\wxsIExplore.cpp -o ..\obj\src\wxsIExplore.o

cc1plus.exe: warning: C:\Local\CBDev\cb6186\src\include/sdk.h.gch: not used because `WX_PRECOMP' not defined

In file included from C:\Local\CBDev\IE\wxs\src\wxsIExplore.cpp:34:
(33 copies of this line)
images/IE16.xpm:35: warning: deprecated conversion from string constant to 'char*'

In file included from C:\Local\CBDev\IE\wxs\src\wxsIExplore.cpp:35:
(33 copies of this line)
images/IE32.xpm:51: warning: deprecated conversion from string constant to 'char*'

mingw32-g++.exe -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -include sdk.h -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DwxUSE_UNICODE     -IC:\Local\CBDev\cb6186\src\include -IC:\Local\CBDev\cb6186\src\include\wxscintilla\include -IC:\Local\CBDev\cb6186\src\include\wxFlatNotebook\include -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\defitems -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\propgrid\contrib\include -IC:\Local\wxWidgets-2.8.10\include -IC:\Local\wxWidgets-2.8.10\additions\include -IC:\Local\wxWidgets-2.8.10\lib\gcc_dll\mswu -Isrc -Iimages -I..\src  -c C:\Local\CBDev\IE\wxs\wxsSmithIExplore.cpp -o ..\obj\wxsSmithIExplore.o

cc1plus.exe: warning: C:\Local\CBDev\cb6186\src\include/sdk.h.gch: not used because `WX_PRECOMP' not defined

mingw32-g++.exe -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -include sdk.h -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DwxUSE_UNICODE     -IC:\Local\CBDev\cb6186\src\include -IC:\Local\CBDev\cb6186\src\include\wxscintilla\include -IC:\Local\CBDev\cb6186\src\include\wxFlatNotebook\include -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\defitems -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\wxwidgets\properties -IC:\Local\CBDev\cb6186\src\plugins\contrib\wxSmith\propgrid\contrib\include -IC:\Local\wxWidgets-2.8.10\include -IC:\Local\wxWidgets-2.8.10\additions\include -IC:\Local\wxWidgets-2.8.10\lib\gcc_dll\mswu -Isrc -Iimages -I..\src  -c C:\Local\CBDev\IE\src\IEHtmlWin.cpp -o ..\obj\src\IEHtmlWin.o

cc1plus.exe: warning: C:\Local\CBDev\cb6186\src\include/sdk.h.gch: not used because `WX_PRECOMP' not defined

C:\Local\CBDev\IE\src\IEHtmlWin.cpp: In member function 'void wxIEHtmlWin::SetupBrowser()':

C:\Local\CBDev\IE\src\IEHtmlWin.cpp:220: warning: deprecated conversion from string constant to 'OLECHAR*'

mingw32-g++.exe -shared   -Wl,--dll -LC:\Local\CBDev\cb6186\src\devel -LC:\Local\wxWidgets-2.8.10\lib\gcc_dll -L..\..\..\..\MinGW\lib  ..\obj\src\cguid.o ..\obj\src\wxactivex.o ..\obj\src\wxsIExplore.o ..\obj\wxsSmithIExplore.o ..\obj\src\IEHtmlWin.o   -o ..\bin\wxsSmithIExplore.dll  -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -lwxsmithlib -lcodeblocks -lwxmsw28u -lwxbase28u -lwxmsw28u_core

c:/mingw/bin/../lib/gcc/mingw32/4.4.1-dw2/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.

This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.

Info: resolving vtable for wxsWidget by linking to __imp___ZTV9wxsWidget (auto-import)
Info: resolving vtable for wxsStringProperty by linking to __imp___ZTV17wxsStringProperty (auto-import)

Output size is 2.50 MB
Process terminated with status 0 (0 minutes, 8 seconds)
0 errors, 89 warnings
 
 
(The char* warnings come from including XPM files for the button images).

Although, I did notice that if I include the #define __GNUWIN32__ in the plugin, things go a little haywire.  Not exactly the same error you saw, but something similar.  If this doesn't help, send me a copy of your project file, and I'll play with it here and see if I can work it out.

Ringo






[attachment deleted by admin]

rcoll:
@MortenMacFly -- did you get a chance to look at my project file, and the compiler log?  Did you find anything drastically different from what you do and what I do to compile?

Ringo

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version