Search found 86 matches

by xin.songtao
Thu May 17, 2007 2:18 am
Forum: C++ Development
Topic: I have some problem,who can help me ?
Replies: 5
Views: 989

I want to achieve like this :
PTCHAR a=ver1,b=ver2,c=null;
{
c = a-b; //or c = a+b;
}

how can i to do in wxWidgets?

thanks!
by xin.songtao
Wed May 16, 2007 10:18 am
Forum: C++ Development
Topic: I have some problem,who can help me ?
Replies: 5
Views: 989

I have some problem,who can help me ?

my problem as follow:
1: how should i do to converts a u_long from TCP/IP network order to host byte order in wxWidgets?
2:
wxString a,b,p;
p = a-b;
Can i do this ? what will be occur?

in the windows I saw the two PTCHAR subtract, but how can i do this ? is it right? who can tell me?
by xin.songtao
Tue May 15, 2007 7:22 am
Forum: C++ Development
Topic: Is this a mistake in the example of the documentation?
Replies: 3
Views: 904

do you have a try in your way?
there will be still a error.
by xin.songtao
Mon May 14, 2007 11:25 am
Forum: C++ Development
Topic: Is this a mistake in the example of the documentation?
Replies: 3
Views: 904

Is this a mistake in the example of the documentation?

in the documentation the given example of wxCondition shows as follow: class MySignallingThread : public wxThread { public: MySignallingThread(wxMutex *mutex, wxCondition *condition) { m_mutex = mutex; m_condition = condition; Create(); } virtual ExitCode Entry() { ... do our job ... // tell the oth...
by xin.songtao
Sat Apr 28, 2007 6:59 am
Forum: C++ Development
Topic: HOW can i deal with the lpOverlapped?
Replies: 4
Views: 1376

Thanks Tan! :D
by xin.songtao
Sat Apr 28, 2007 5:44 am
Forum: C++ Development
Topic: why the type HANDLE hardly be seen in wxWidgets?
Replies: 1
Views: 495

why the type HANDLE hardly be seen in wxWidgets?

The wxWidgets has the type HANDLE, but I have hardly seen? who can tell me why?
what's more ,which way i should use the type?
by xin.songtao
Sat Apr 28, 2007 1:51 am
Forum: C++ Development
Topic: how to create inter process synchronization objects
Replies: 3
Views: 1025

I am very sorry to tell you :there's no wxWidgets API supports this.
you have to use wxThread and wxCondition to achieve.


when you solve this question ,i am very glad to know about it !
Thanks!
by xin.songtao
Sat Apr 28, 2007 1:34 am
Forum: C++ Development
Topic: HOW can i deal with the lpOverlapped?
Replies: 4
Views: 1376

threads and conditions?
i haven't use the method before, i will have a try.
could you show me a example of this method? Or somebody else?
Thanks!
by xin.songtao
Fri Apr 27, 2007 9:18 am
Forum: C++ Development
Topic: HOW can i deal with the lpOverlapped?
Replies: 4
Views: 1376

HOW can i deal with the lpOverlapped?

dear all: in the windows api the WriteFile function is follow: BOOL WriteFile( HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten, LPOVERLAPPED lpOverlapped ); i want to make it true in the wxWidgets,i know to use the function wxFile:Write(), but i don't know...
by xin.songtao
Fri Apr 27, 2007 8:50 am
Forum: C++ Development
Topic: In Which Way I Can Test The wxFile:Read() function?
Replies: 2
Views: 897

thanks !
i got it !
i use a variable to test the size of the function return ,then test the value isn't equal to the size i want to read.
by xin.songtao
Fri Apr 27, 2007 8:38 am
Forum: C++ Development
Topic: In Which Way I Can Test The wxFile:Read() function?
Replies: 2
Views: 897

In Which Way I Can Test The wxFile:Read() function?

HELLO ALL: I am a green-hand in the wxWidgets, i got a problem that i want to read the size of a file ,so i use the function wxFile:Read(),but in which way i can know the function wxFile:Read() is successful or not, what should i do? i know that the function return the size_t value, if i use if(Read...