Search found 78 matches

by KaReL
Thu Jun 16, 2005 2:52 am
Forum: C++ Development
Topic: How do I use wxSockets with wxThreads?
Replies: 4
Views: 1734

Kind of a late reply Ryan, but I am currently working on something like this too... What I did is this: ServerClient : wxEvtHandler Server : wxEvtHandler ClientClient : wxEvtHandler Server: CONNECTION_FLAG ServerClient: INPUT/LOST_FLAG ClientClient: INPUT/LOST_FLAG Now when client connecting, I push...
by KaReL
Thu Jun 16, 2005 2:42 am
Forum: The Code Dump
Topic: Storage container for sorting keys(cross-compiler stl::map)
Replies: 9
Views: 3921

\ const_iterator& operator = (const const_iterator& i) \ { this->m_pTree = i.m_pTree; this->m_pKey = i.m_pKey;} \ \ value_type& operator * () const {return (m_pKey)->Key;} \ protected: \ tree_type* m_pTree; \ node_type* m_pKey; \ }; \ \ iterator begin() \ { \ return iterator((tree_type*)this, \ Fin...
by KaReL
Wed Jun 15, 2005 11:27 am
Forum: The Code Dump
Topic: Storage container for sorting keys(cross-compiler stl::map)
Replies: 9
Views: 3921

I modified the version of Ryan a little so it could work with const_iterators. I also speeded up (if the compiler accepts it ofcourse) by adding a lot of const's everywhere. For examples: look below the code ;) #ifndef __WXMAP_H #define __WXMAP_H #define RED 0 #define BLACK 1 #define THREAD 0 #defin...
by KaReL
Tue Jun 14, 2005 3:08 pm
Forum: The Code Dump
Topic: Torrentfile-implementation under wx
Replies: 5
Views: 2536

14/06/2005 - Added the bittorrent SHA1-implementation of the segments. - Added the possibility to write output starting from the TorrentFile-class. 15/06/2005 - Added the possibility to en/decode files on the fly. 17/06/2005 - Get the InfoHash. This is needed for communicating to the tracker. - Get ...
by KaReL
Tue Jun 14, 2005 10:47 am
Forum: The Code Dump
Topic: Torrentfile-implementation under wx
Replies: 5
Views: 2536

Torrentfile-implementation under wx

TorrentFile.h : #ifndef __TORRENT_FILE_H #define __TORRENT_FILE_H #include <wx/wfstream.h> #include <wxMap.h> struct SHA_buf { SHA_buf( ) { memset(buf, 0 , 20); } SHA_buf( BYTE const * const b ) { memcpy(buf, b , 20); } SHA_buf( const SHA_buf& s ) { memcpy(buf, s.buf, 20); } BYTE buf[20]; }; class ...
by KaReL
Tue Jun 07, 2005 10:57 pm
Forum: General Development
Topic: wxURI & Inputstream & threads
Replies: 2
Views: 778

Mja, I saw the discussion, but I didn't follow it up after the first few posts.


Thx for replying ;)
by KaReL
Tue Jun 07, 2005 12:21 pm
Forum: General Development
Topic: wxURI & Inputstream & threads
Replies: 2
Views: 778

wxURI & Inputstream & threads

Does anyone know if the use of wxURI with GetInputstream( ) is threadsafe? it is just the same function I am calling in another thread. What I do is something like: DownloadURL(const wxString& url) { wxURI uri(url); uri.GetInputStream(); ... } I just want to know if I can use this at the same time i...
by KaReL
Sun May 22, 2005 8:04 pm
Forum: C++ Development
Topic: end session/logging off
Replies: 4
Views: 1078

Hi upCASE, I tried, but nothing... Here are my MyApp.h: #ifndef __APP_H #define __APP_H class MyFrame; class MyApp : public wxApp { public: virtual bool OnInit(); ~MyApp( ); private: MyFrame * m_Frame; void OnEndSession ( wxCloseEvent& event ); void OnQueryEndSession( wxCloseEvent& event ); DECLARE_...
by KaReL
Fri May 20, 2005 6:12 am
Forum: General Development
Topic: table printing on wxPrintout
Replies: 0
Views: 566

table printing on wxPrintout

Does anyone know a general class for printing a table on wxPrintout, which spans over several pages as well?

Thanks
by KaReL
Fri May 20, 2005 3:52 am
Forum: C++ Development
Topic: Small caption
Replies: 3
Views: 981

This seems about what I want, thank you ;)
by KaReL
Thu May 19, 2005 9:07 pm
Forum: C++ Development
Topic: Small caption
Replies: 3
Views: 981

Small caption

Hi,

How can i create a frame (which style do I need to use?) with a very small caption, and a very small close-button you sometimes see?

Thanks
by KaReL
Thu May 19, 2005 2:38 pm
Forum: C++ Development
Topic: end session/logging off
Replies: 4
Views: 1078

Yes,

I tried both MyApp & MyFrame...

Weird, I will try later tonight again.
by KaReL
Thu May 19, 2005 7:19 am
Forum: C++ Development
Topic: end session/logging off
Replies: 4
Views: 1078

end session/logging off

Hi, I want to react when a user shuts down/logs off from the system. What event do I need to choose? What I tried was EVT_END_SESSION & QUERY_... But both events doesn't fire on my system (I put a messagebox in it to see if it is closing). What I get is a EVT_CLOSE. But there the GetLoggingOff is al...
by KaReL
Sun May 15, 2005 7:42 pm
Forum: C++ Development
Topic: Opening a Folder
Replies: 11
Views: 5386

wxExecute( wxT("C:\\"), wxEXEC_ASYNC, NULL ) ?
by KaReL
Mon May 09, 2005 8:11 am
Forum: C++ Development
Topic: wxClientDC
Replies: 4
Views: 951

Jorg: :oops: Cursor: This has the same reaction. The DC associated with the wxEraseEvent parameter is wxScreenDC (I mean, it has the same dimensions as my screen). Cursor: Also this I know, but also this has no result... The painted area stays 20x20... It seems like somewhere the clippingregion is s...