Search found 22 matches

by Phoenix_pl
Fri Jun 12, 2009 12:06 am
Forum: C++ Development
Topic: a problem in wxThread::wait()
Replies: 3
Views: 842

I am not sure if that will help you in your problem, but I had simillar thing happening when I was starting 3rd part app from my software. Maybe you should try to change execute command to: wxExecute(wxT("notepad"),wxEXEC_SYNC|wxEXEC_NODISABLE); This way wxExecute will wait until notepad will be clo...
by Phoenix_pl
Thu Jun 11, 2009 11:54 pm
Forum: C++ Development
Topic: wxTread: communication between the main and second thread
Replies: 6
Views: 1227

If the only thing that the main thread needs to do is to "kill" secondary thread why not use build in methods? Instead of creating another class to communicate between threads in your case it may be easier to use wxThread::Delete and wxThread::TestDestroy. Delete will notify thread that it has to fi...
by Phoenix_pl
Sun Jun 07, 2009 1:21 am
Forum: Platform Related Issues
Topic: wxapp and xp style under windows XP and Vista
Replies: 2
Views: 755

You can also include wx.rc. If I remember correctly it is in include/wx/msw, but you have to check it. It should embbed manifest into your app for both XP and Vista styles.
by Phoenix_pl
Tue Jun 02, 2009 4:51 am
Forum: C++ Development
Topic: wx and video streaming?
Replies: 9
Views: 3129

I've been looking at wxMediaCtrl source and it may be hard to create direct stream in cross platform way. I would recommand using OpenGL and some decoder (libavcodec should be fine). What you need to do is: 1. Create display layer with wxGLCanvas and create full view rectangle to fit your layer. 2. ...
by Phoenix_pl
Tue Jun 02, 2009 2:18 am
Forum: C++ Development
Topic: wx and video streaming?
Replies: 9
Views: 3129

Ok, I may have misunderstand you a little. So your app is basically client+server and probably you send directory/file list via sockets. Now what you may need is something like: http://vxl.sourceforge.net/ . I haven't use that one, but looks promising. Also try DirectShow examples, as they can easil...
by Phoenix_pl
Mon Jun 01, 2009 12:08 am
Forum: C++ Development
Topic: Have the application restart
Replies: 10
Views: 2150

You can also do something like "internal restart" that I have used in couple of my applications. All you need to do is to create empty and hidden top frame which will start your main classes. When you need to restart just call restart method in your hidden frame that will destroy all child frames, d...
by Phoenix_pl
Mon Jun 01, 2009 12:00 am
Forum: C++ Development
Topic: how to make the text label fit inside a button
Replies: 2
Views: 778

Or instead of wxBitmapButton you can just break your text by putting "\n" to wrap it.
by Phoenix_pl
Sun May 31, 2009 11:52 pm
Forum: C++ Development
Topic: wx and video streaming?
Replies: 9
Views: 3129

Now I'm lost a little. You want to create media player that will alow you to play movies from computer B on computer A. In order to do that you need to have access to the file you want to play on B. This can be done via HTTP, FTP, VPN, etc. As long as you can access it on A, you are able to play it ...
by Phoenix_pl
Sat May 30, 2009 10:39 pm
Forum: C++ Development
Topic: wx and video streaming?
Replies: 9
Views: 3129

Hi, If I'm right you don't need any library to stream video. All you need is in wx already. For simple players (I assume you will not write MediaPlayer from scrap :wink: ) it should be enough to use wxMediaCtrl. If file is at remote location you can "feed" data via network by using wxURI. According ...
by Phoenix_pl
Thu May 25, 2006 9:36 am
Forum: C++ Development
Topic: Relative INI Writing
Replies: 2
Views: 851

Or you can create stream to your local file and pass it to wxFileConfig constructor.
by Phoenix_pl
Fri Apr 28, 2006 12:04 pm
Forum: C++ Development
Topic: Problem with desktop redraw
Replies: 5
Views: 1219

I have found solution for this problem. If I use Show() right after window creation desktop is refreshed correctly. I still think that it should be done automatically.
by Phoenix_pl
Fri Apr 28, 2006 11:51 am
Forum: C++ Development
Topic: Problem with desktop redraw
Replies: 5
Views: 1219

Yes, I have tried Refresh() and it didn
by Phoenix_pl
Fri Apr 28, 2006 11:32 am
Forum: C++ Development
Topic: Problem with desktop redraw
Replies: 5
Views: 1219

Problem with desktop redraw

Hello,

I have created application that is using wxTopLevelWindow::ShowFullScreen function to switch between full screen and window mode. Unfortunately when application is started in full screen mode and I
by Phoenix_pl
Thu Apr 13, 2006 11:01 am
Forum: C++ Development
Topic: Problem with wxUrl::GetInputStream()
Replies: 1
Views: 644

I was so stupid that I didn't tell you all that I'm using socket inside new thread. Solution was to put wxSocketBase::Initialize() inside wxApp::OnInit().

Sorry for waisting your time.
by Phoenix_pl
Thu Apr 13, 2006 11:00 am
Forum: C++ Development
Topic: Problem with socket connection
Replies: 4
Views: 790

phlox81 you were right. I was so stupid that I didn't tell you all that I'm using socket inside new thread. Solution was to put wxSocketBase::Initialize() inside wxApp::OnInit().

Sorry for waisting your time. :oops: