Getting the following resource file error during Windows application execution (Maybe due to configuration missing or resource file in wrong location):
..\..\src\cursor.cpp(399): assert 'Assert failure' failed in wxCursor::initFromStock(): Loading a cursor defined by wxWidgets failed, did you
include include/wx/msw/wx.rc from your resource file?
Not sure how to include wx.rc in the resource file since the resource file is in XML format.
Also placed wx.rc in same directory as executable, but that did not help.
What is the proper solution to get thru this?
Thanks
Resource File Error During Windows App Execution
Re: Resource File Error During Windows App Execution
The assert is about a windows resource format (.rc) which is not in XML format, you probably confused it with the XRC file. The file needs to be compiled with windows resource compiler (into .res file) and embedded into an executable by linker. Therefore it needs to be set in your project somehow, depending on the build toolchain you use.
If you want to use certain bitmaps provided by wxWidgets, you need to do what the assert message says. You must have your own resource file, otherwise your application would not have its icon embedded in the executable.
If you want to use certain bitmaps provided by wxWidgets, you need to do what the assert message says. You must have your own resource file, otherwise your application would not have its icon embedded in the executable.