Thread: [Dev-C++] WxWidgets Ressource error
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: @lex <sty...@gm...> - 2005-11-24 15:23:04
|
Hello!
I am using Dev-C++ 2.6.2 and wx-dev-cpp.
If I want to run this sample:
#include "wx/wx.h"
class MyFrame: public wxFrame
{
public:
MyFrame(const wxString& title)
: wxFrame((wxFrame *)NULL, -1, title)
{
wxMenu *menuFile = new wxMenu;
menuFile->Append(wxID_EXIT, "E&xit");
wxMenuBar *menuBar = new wxMenuBar;
menuBar->Append(menuFile, "&File");
this->SetMenuBar(menuBar);
}
void OnQuit(wxCommandEvent& event)
{
this->Close(true);
}
DECLARE_EVENT_TABLE()
};
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(wxID_EXIT, MyFrame::OnQuit)
END_EVENT_TABLE()
class MyApp: public wxApp
{
virtual bool OnInit()
{
MyFrame *frame = new MyFrame( "Hello World");
frame->Show(true);
this->SetTopWindow(frame);
return true;
}
};
IMPLEMENT_APP(MyApp)
I get the following messages:
[Resource error] no resources
C:\Documents and Settings\***\Desktop\projects\2\Makefile.win [Build
Error] [Project1_private.res] Error 1
What shall I do?
Thanks!
@lex
|
|
From: Malcolm N. <m.n...@wa...> - 2005-11-24 16:22:06
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
margin: 5px 5px 5px 5px;
background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
font-size: 9pt;
font-family: 'Courier New';
font-style: normal;
font-weight: normal;
color: #000000;
text-decoration: none;
}
span.rvts1 /* Heading */
{
font-size: 10pt;
font-family: 'Arial';
font-weight: bold;
color: #0000ff;
}
span.rvts2 /* Subheading */
{
font-size: 10pt;
font-family: 'Arial';
font-weight: bold;
color: #000080;
}
span.rvts3 /* Keywords */
{
font-size: 10pt;
font-family: 'Arial';
font-style: italic;
color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
font-size: 10pt;
font-family: 'Arial';
color: #008000;
text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
font-size: 10pt;
font-family: 'Arial';
color: #008000;
text-decoration: underline;
}
span.rvts6
{
font-size: 11pt;
font-family: 'tahoma';
font-weight: bold;
color: #ffffff;
}
span.rvts7
{
font-size: 11pt;
font-family: 'tahoma';
}
span.rvts8
{
font-size: 11pt;
font-family: 'tahoma';
vertical-align: super;
}
a.rvts9, span.rvts9
{
font-size: 11pt;
font-family: 'tahoma';
color: #0000ff;
text-decoration: underline;
}
span.rvts10
{
font-size: 8pt;
font-family: 'arial';
font-style: italic;
color: #c0c0c0;
}
a.rvts11, span.rvts11
{
font-size: 8pt;
font-family: 'arial';
color: #0000ff;
text-decoration: underline;
}
a.rvts12, span.rvts12
{
color: #0000ff;
text-decoration: underline;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
text-align: left;
text-indent: 0px;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
text-align: center;
}
--></style>
</head>
<body>
<p>Hello ,</p>
<p><br></p>
<p>On 24 November 2005, 16:29:54, you wrote:</p>
<p><br></p>
<div><table border=0 cellpadding=1 cellspacing=2 style="border-color: #000000; border-style: solid;">
<tr valign=top>
<td width=14 style="background-color: #0000ff;">
<p><span class=rvts6>></span></p>
</td>
<td width=843 style="background-color: #ffffff;">
<p><span class=rvts7>Hello!</span></p>
<p><span class=rvts7>I am using Dev-C++ 2.6.2 and wx-dev-cpp.</span></p>
<p><span class=rvts7>If I want to run this sample:</span></p>
<p><br></p>
<p><br></p>
<div><table border=1 cellpadding=2 cellspacing=2 style="border-color: #000000; border-style: solid;">
<tr valign=top>
<td width=414 style="border-color: #000000; border-style: solid; background-color: #ffffff;">
<p><span class=rvts8>#include "wx/wx.h" </span></p>
<p><br></p>
<p><span class=rvts8>class MyFrame: public wxFrame</span></p>
<p><span class=rvts8>{</span></p>
<p><span class=rvts8>public:</span></p>
<p><span class=rvts8>MyFrame(const wxString& title)</span></p>
<p><span class=rvts8>: wxFrame((wxFrame *)NULL, -1, title)</span></p>
<p><span class=rvts8>{</span></p>
<p><span class=rvts8>wxMenu *menuFile = new wxMenu;</span></p>
<p><span class=rvts8>menuFile->Append(wxID_EXIT, "E&xit");</span></p>
<p><span class=rvts8>wxMenuBar *menuBar = new wxMenuBar;</span></p>
<p><span class=rvts8>menuBar->Append(menuFile, "&File");</span></p>
<p><span class=rvts8>this->SetMenuBar(menuBar);</span></p>
<p><span class=rvts8>}</span></p>
<p><span class=rvts8>void OnQuit(wxCommandEvent& event)</span></p>
<p><span class=rvts8>{</span></p>
<p><span class=rvts8>this->Close(true);</span></p>
<p><span class=rvts8>}</span></p>
<p><span class=rvts8>DECLARE_EVENT_TABLE()</span></p>
<p><span class=rvts8>};</span></p>
<p><br></p>
<p><span class=rvts8>BEGIN_EVENT_TABLE(MyFrame, wxFrame)</span></p>
<p><span class=rvts8>EVT_MENU(wxID_EXIT, MyFrame::OnQuit)</span></p>
<p><span class=rvts8>END_EVENT_TABLE()</span></p>
<p><br></p>
<p><span class=rvts8>class MyApp: public wxApp</span></p>
<p><span class=rvts8>{</span></p>
<p><span class=rvts8>virtual bool OnInit()</span></p>
<p><span class=rvts8>{</span></p>
<p><span class=rvts8>MyFrame *frame = new MyFrame( "Hello World");</span></p>
<p><span class=rvts8>frame->Show(true);</span></p>
<p><span class=rvts8>this->SetTopWindow(frame);</span></p>
<p><span class=rvts8>return true;</span></p>
<p><span class=rvts8>}</span></p>
<p><span class=rvts8>};</span></p>
<p><br></p>
<p><span class=rvts8>IMPLEMENT_APP(MyApp)</span></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p><span class=rvts7>I get the following messages:</span></p>
<p><br></p>
<p><br></p>
<p><br></p>
<div><table border=1 cellpadding=2 cellspacing=2 style="border-color: #000000; border-style: solid;">
<tr valign=top>
<td width=575 style="border-color: #000000; border-style: solid; background-color: #ffffff;"><br>
</td>
<td width=258 style="border-color: #000000; border-style: solid; background-color: #ffffff;">
<p><span class=rvts8>[Resource error] no resources</span></p>
</td>
</tr>
<tr valign=top>
<td width=575 style="border-color: #000000; border-style: solid; background-color: #ffffff;">
<p><span class=rvts8> C:\Documents and Settings\***\Desktop\projects\2\Makefile.win [Build Error]</span></p>
</td>
<td width=258 style="border-color: #000000; border-style: solid; background-color: #ffffff;">
<p><span class=rvts8>[Project1_private.res] Error 1 </span></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p><span class=rvts7>What shall I do?</span></p>
<p><br></p>
<p><span class=rvts7>Thanks!</span></p>
<p><span class=rvts7>@lex</span></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts7>__________ NOD32 1.1303 (20051124) Information __________</span></p>
<p><br></p>
<p><span class=rvts7>This message was checked by NOD32 antivirus system.</span></p>
<p><a class=rvts9 href="http://www.eset.com">http://www.eset.com</a></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p><br></p>
<p>You haven't actually made a program yet.</p>
<p><br></p>
<p>I would suggest you ask wxDevCpp related questions on the wxDevCpp forum at <a class=rvts12 href="http://wxforum.shadonet.com/viewforum.php?f=28">http://wxforum.shadonet.com/viewforum.php?f=28</a></p>
<p><br></p>
<p>This is a special forum within the wxForum .</p>
<p><br></p>
<p><span class=rvts10>-- </span></p>
<p><span class=rvts10>Best regards,</span></p>
<p><span class=rvts10>Malcolm </span><a class=rvts11 href="mailto:m.n...@wa...">mailto:m.n...@wa...</a></p>
</body></html>
|
|
From: KISHAN P. <pat...@ms...> - 2005-11-28 02:30:40
|
<html><div style='background-color:'><P><BR><BR></P><BR>All of you C++ or C users please quit sending me mail. Or tell me how to unsuscribe to this subcrisption.<BR><BR><BR> <DIV><FONT face="Lucida Handwriting, Cursive" color=#ff0000 size=5>K.N.P</FONT></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMAENUS/2731??PS=47575" target="_top">Create your own custom mailing list called Groups with MSN Hotmail</a> </html> |
|
From: Scott <fre...@ve...> - 2005-11-28 02:48:45
|
>All of you C++ or C users please quit sending me mail. Or tell me how = to unsuscribe to this subcrisption. TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users Than unsubscribe, READ the bottom of your OWN message... Look, there it is, right there...... Imagine my surprise! Groan. Cheers, Scott. |