Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Error with compiling "Samples"

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Error with compiling "Samples"
#3458
Posted by: plaksa 2004-03-05 17:21:48
I tried to compile some projects from Sample directory. And always had the same error: 
Compiler: C:Dev-CppExampleswxwindowscontrolsMakefile.win
[Build Error]  [controls_private.res] Error 1

Resources: can't open cursor file `wx/msw/hand.cur': No such file or directory

What happens?
Message2. Re: Error with compiling "Samples"
#3462
Posted by: upCASE 2004-03-06 00:12:23
Hi!
Problem is that the app includes wx.rc, a windosw resource file that should include some icons in the app. But there's a problem with the paths.
One solution is to copy the icons to a folder like PROJECTDIRwxmsw. It should compile then. Another option could be to edit wx.rc and use <icon> instead of "icon". You can also try and set the include path to WXDIRincludewxmsw.
Except for some of the samples I never had problems with that. I don't include that rc file and it doesn't seem to give problems. I guess this could be some left over from older versions. To be cross platform one shouldn't use things like rc files, which are only available on one platform.

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥880.00 ·
 
 
¥1,390.00 ·
 
 
¥1,380.00 ·
 
 
¥287.00 ·
 
 
¥918.00 ·
 
 
¥860.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0