Search found 118 matches

by candid_1120
Fri Apr 13, 2007 5:11 am
Forum: C++ Development
Topic: What is the error and how to solve it?
Replies: 3
Views: 623

What is the error and how to solve it?

I have used the compile way like g++ -static -o but...

The error is:

/usr/bin/ld: cannot find -lwx_gtk2_xrc-2.6
collect2: ld returned 1 exit status
make: *** [gt] Error 1
by candid_1120
Thu Mar 08, 2007 3:42 am
Forum: C++ Development
Topic: What is the problem?
Replies: 0
Views: 294

What is the problem?

The value of gridcol is 5,when I call the function

grid->AppendCols(gridcol,true);

the value is changed to 0,why?

Thanks!
by candid_1120
Thu Feb 08, 2007 3:31 am
Forum: C++ Development
Topic: A problem about wxCommandEvent?
Replies: 5
Views: 876

Thanks a lot, I have tried it,that was solved.
by candid_1120
Wed Feb 07, 2007 2:49 am
Forum: C++ Development
Topic: A problem about wxCommandEvent?
Replies: 5
Views: 876

more information:

this is part of my code:

wxButton **mn_button = new wxButton*[10];

That can build 10 buttons on the frame;

I want to show different message when I clicked one of the 10 buttons,

how to solve it? Thanks!
by candid_1120
Wed Feb 07, 2007 2:37 am
Forum: C++ Development
Topic: A problem about wxCommandEvent?
Replies: 5
Views: 876

That meaning is that I want to build some button with wxButton and use

the member function Connect of wxEvtHandler to implement dynamic

event,but I don't know how to declare the function of event,what about

use array of function of pointer?
by candid_1120
Wed Feb 07, 2007 1:21 am
Forum: C++ Development
Topic: A problem about wxCommandEvent?
Replies: 5
Views: 876

A problem about wxCommandEvent?

Hello everyone,I have a trouble that how to do like this:

To build some wxButton and Connect its event differently

I don't know how to solve it,isn't it using the array of pointer

of function? Thanks a lot.
by candid_1120
Mon Dec 04, 2006 1:34 am
Forum: C++ Development
Topic: A problem about wxSocketServer?
Replies: 1
Views: 563

A problem about wxSocketServer?

I creat a tcp client by normal socket to send msg to the server. The server is created by wxSocketServer,it has no trouble when the client connect the server all the time,but it has a trouble when the client connect the server per second then disconnect and then reconnect the server loop like this. ...
by candid_1120
Thu Nov 09, 2006 9:52 am
Forum: C++ Development
Topic: How to Create a wxWidgets dll(*.so) in linux
Replies: 4
Views: 1297

The makefile for testso.so like this:

CC := g++

SOURCES := $(wildcard *.cpp)
OBJECTS := $(patsubst %.cpp,%.o,$(SOURCES))


testso:$(OBJECTS)
$(CC) -fPIC -shared -o libtest.so `wx-config --libs --cxxflags`

.cpp.o :
$(CC) -c -shared `wx-config --cxxflags` -o [email protected] $<


Is that right?
by candid_1120
Thu Nov 09, 2006 8:57 am
Forum: C++ Development
Topic: How to Create a wxWidgets dll(*.so) in linux
Replies: 4
Views: 1297

How to Create a wxWidgets dll(*.so) in linux

I had write the code like this: test.h: #ifndef TEST_H #define TEST_H class myapp:public wxApp { public: bool OnInit(); }; class myframe:public wxFrame { public: myframe(wxWindow* parent); ~myframe(); }; extern "C" wxFrame* SetFrame(wxWindow* parent); #endif test.cpp: #include "wx/app.h" #include "w...
by candid_1120
Tue Oct 24, 2006 1:28 pm
Forum: C++ Development
Topic: what is the problem?
Replies: 4
Views: 874

what is the problem?

I have compile the code of Ryan Norton and make the dll,but it is be crashed when I load it(click the L button of mouse); This is the exceptional: Debug Error! //... The value of ESP was not properly saved across a function a call. This is usually a result of calling a function declared with one cal...
by candid_1120
Mon Oct 23, 2006 6:58 am
Forum: C++ Development
Topic: why I couldn't find the folder vc_dll?
Replies: 6
Views: 1099

I have find the vc_dll,but the complition stoped at:

Creating ..\..\lib\vc_lib\mswuniv\wx\msw\rcdefs.h

Why?
by candid_1120
Mon Oct 23, 2006 5:08 am
Forum: C++ Development
Topic: why I couldn't find the folder vc_dll?
Replies: 6
Views: 1099

I also set the path since few days ago,now I have built the wx.dsw,still not found the folder vc_dll?why?
by candid_1120
Mon Oct 23, 2006 4:49 am
Forum: C++ Development
Topic: why I couldn't find the folder vc_dll?
Replies: 6
Views: 1099

I have already budit it,the sample of wx is runned no error,but it appears

a exceptional when I loaded my own dlltest.
by candid_1120
Mon Oct 23, 2006 3:44 am
Forum: C++ Development
Topic: why I couldn't find the folder vc_dll?
Replies: 6
Views: 1099

why I couldn't find the folder vc_dll?

I couldn't find the folder vc_dll int the path:

C:\wxWidgets-2.6.3\lib

Please tell me why? Thanks