Page 1 of 1

samples.rc

Posted: Tue Jan 28, 2020 3:49 pm
by branchc
Hi

I'm compiling under MSVS 2019. When I compile the ribbon sample (and all others I've tried) I get an error that wx/msw/wx.rc is not found. The file is there in the include directory but VS can't find it.

If I remove the resource from the project it compiles with no problems (as do all the other samples).

Do I need this resource, if so how do I tell MSVS the path. Not I set $(WXWIN) env variable and used this for the include and lib paths and these all work.

Its only the resource I have an issue with.

Thanks

Re: samples.rc

Posted: Tue Jan 28, 2020 5:30 pm
by doublemax
The include paths for the resources are defined in Project -> Configation Properties -> Resources
But usually these should be set correctly out of the box.

Re: samples.rc

Posted: Wed Jan 29, 2020 11:26 am
by branchc
:D got it working

Thanks I updated the resource path and also copied samples.ico into the project as this was needed

Note some samples code have an rc file like mdi but ribbon uses a default samples.rc which is in samples dir

So when you copy ribbon out of samples to use it looses the resource.

If you take samples.rc and rename it ribbon.rc and place in the project folder with the other cop files you are good to go just add it to the project in MSvS and remove the samples.rc current included

Re: samples.rc

Posted: Wed Jan 29, 2020 3:42 pm
by ONEEYEMAN
Hi,
You might post to wx-users or open the ticket on trac.wxwidgets.org in order for that to be fixed.
That is if yo didn't change anything prior to compiling the samples.

Thank you.