Problems with wxWidgets, Visual Studio and "OLE", probalby clr
related
Reinhard Pagitsch
rprp at gmx.net
Mon Oct 1 03:16:11 PDT 2007
Hallo Alexander,
not to know OLE
Did you looked at:
http://msdn2.microsoft.com/de-de/library/h8027ys9(VS.80).aspx
In this page there is also a link to /clr (Common Language
Runtime-Kompilierung).
/EHsc is "Enable C++ exception" as I can see in my compiler options.
( I use VS 2005 express)
regards
Reinhard
Alexander Schmehl wrote:
> Hi there!
>
> I'm working on a small c++ projekt for an university course. I decided
> to use wxWidgets for the GUI, which is working very nice, thanks to all
> the nice examples.
>
> For this project I needed to use Visual Studio, and I created my project
> by following the documentation in the wiki
> (http://www.wxwidgets.org/wiki/index.php/Microsoft_Visual_CPP_Guide#Creating_a_New_Project_From_a_Sample).
>
>
> However a friend of mine created for his part of the project some
> functions, for which I needed to enable "common language runtime" and
> for that to work I needed to set in my projects properties the option
> "activate c++ exception" (sorry, don't know how it's called in english,
> I'm using the german version of visual studio) to "no" and I needed to
> remove the additional "/EHcs" commandline option for the compiler.
>
> Since then my wxWidget application still compiles, but I get some
> warnings while linking the application:
>
> main.obj : warning LNK4248: unresolved typeref token (01000017) for 'wxVideoMode'; image may not run
> main.obj : warning LNK4248: unresolved typeref token (01000018) for 'wxToolTip'; image may not run
> main.obj : warning LNK4248: unresolved typeref token (01000019) for 'wxDropTarget'; image may not run
>
> When I try to start my application, I get an error message "Error:
> Couldn't innitalize OLE". Most of the application seems to work fine,
> but e.g. the wxDirDialog doesn't work properly, since it doesn't display
> the tree view.
>
> Anyone knows a solution for this problem? I think I could live with a
> dirty workaround and it would be okay to not use wxDirDialog (and
> instead and textentry field), if only the error message would disappear
> :(
>
>
> Yours sincerely,
> Alexander
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
--
More information about the wx-users
mailing list