Search found 135 matches

by Muskelkatermann
Wed May 21, 2014 11:22 am
Forum: C++ Development
Topic: wxSocketServer limitations?
Replies: 1
Views: 1146

Re: wxSocketServer limitations?

I noticed that in sockmsw.cpp there is a definition /* Maximum number of different wxSocket objects at a given time. * This value can be modified at will, but it CANNOT be greater * than (0x7FFF - WM_USER + 1) */ #define [b]MAXSOCKETS 1024[/b] When I closed a socket from the server side, I was calli...
by Muskelkatermann
Thu May 15, 2014 3:07 pm
Forum: C++ Development
Topic: wxSocketServer limitations?
Replies: 1
Views: 1146

wxSocketServer limitations?

Hi, I have a Problem with my Serverapplication. It is based on the official socket server sample. So there is a wxSocketServer that generates wxSOCKET_CONNECTION Events, within these Event the Connection is accepted an the socket is setup to fire wxSOCKET_INPUT Events and within these Event the Data...
by Muskelkatermann
Wed Dec 05, 2012 5:24 pm
Forum: C++ Development
Topic: Open password protected Zip-Archives
Replies: 1
Views: 1146

Open password protected Zip-Archives

Hi,

is there a way to open a password protected Zip File?
I couldn't find suitable functions in the Docs if the wxZip classes.

Greetings,
Malte
by Muskelkatermann
Mon Nov 05, 2012 11:12 am
Forum: C++ Development
Topic: Check Keypress in wxApp::OnInit
Replies: 1
Views: 1084

Check Keypress in wxApp::OnInit

Hi, i'm currently writing a module that normally runs hidden, because it's a small interfaceprogramm between two applications. It only has to do a small operation an then terminate. So I put my code in the MyApp::OnInit und return 0 when im done. Is it possible to check in the OnInit whether a keybo...
by Muskelkatermann
Thu Aug 23, 2012 9:41 am
Forum: C++ Development
Topic: Open a TIFF Image with Old-style JPEG compression
Replies: 4
Views: 4916

Re: Open a TIFF Image with Old-style JPEG compression

If the images are only "some" and not "dozens" then, perhaps, the simplest way will be to open them in an image processor and save them as more standard TIFFs. AFAIK, TIFF is a pixmap, so that you won't lose quality. Good Idea, bit this was not an Option. But I had success with ...
by Muskelkatermann
Thu Aug 09, 2012 3:36 pm
Forum: C++ Development
Topic: Open a TIFF Image with Old-style JPEG compression
Replies: 4
Views: 4916

Re: Open a TIFF Image with Old-style JPEG compression

Thanks. There seems to be an build option for "type-6" tiffs in tifflib. For the broadest possible support for OJPEG files the following steps are necessary: - Ensure you are able to build with JPEG support (see config.site). - Uncomment OJPEG="yes" statement in config.site file ...
by Muskelkatermann
Thu Aug 09, 2012 8:59 am
Forum: C++ Development
Topic: Open a TIFF Image with Old-style JPEG compression
Replies: 4
Views: 4916

Open a TIFF Image with Old-style JPEG compression

Hey Guys, I need to open some TIFF files with wxImage, like wxImage im_in("C:\\000001.TIF") But I get some warnings and errors. The upper 6 are just warnings and the last 3 lines are errors. 10:25:44: image: unknown field with tag 513 (0x201) encountered (in module "TIFFReadDirectory&...
by Muskelkatermann
Sun Jun 24, 2012 5:43 pm
Forum: C++ Development
Topic: wxApp and Command Line Parameter
Replies: 4
Views: 3171

Re: wxApp and Command Line Parameter

Without OnInitCmdLine I received an unexpected parameter alert.

But using wxCMD_LINE_PARAM_OPTIONAL Flag solved this. Thanks
by Muskelkatermann
Sun Jun 24, 2012 1:38 pm
Forum: C++ Development
Topic: wxApp and Command Line Parameter
Replies: 4
Views: 3171

Re: wxApp and Command Line Parameter

HI Radek, thanks for your reply, accessing the command line is not the problem. My Problem is: When i pass a parameter to the Minimal Sample i get a MessageBox that there is an unexpected paramter. When I add the code from Post#1 i can pass a parameter without a MessageBox, but I get anotherone when...
by Muskelkatermann
Sat Jun 23, 2012 4:02 pm
Forum: C++ Development
Topic: wxApp and Command Line Parameter
Replies: 4
Views: 3171

wxApp and Command Line Parameter

Hey Guys, i want my Application to be startable with or without command line parameters. In my old wx2.6 Projects this was no problem, i could simply check argc und argv and save the parametervalue of there was one. Now i made a new Project in 2.9.x( A copy of the minimal sample) and when i start it...
by Muskelkatermann
Wed Nov 09, 2011 6:11 pm
Forum: C++ Development
Topic: Pixmap Data to wxImage
Replies: 1
Views: 1135

Pixmap Data to wxImage

Hey Guys, I'm trying to give my application the ability to display pdf files by using MuPdf. I almost got it working, but I have a Problem when I transfer the MuPdf Pixmap Data to an wxImage object. I do it like that: myimage = wxImage(pix->w, pix->h, pix->samples); Unfortunately the result is not a...
by Muskelkatermann
Thu Mar 10, 2011 1:49 pm
Forum: C++ Development
Topic: New Project: FormEditor -> Need some hints
Replies: 5
Views: 1624

Thanks, wxDC::DrawLabel() worked. Here is the code for drawing background, border and the text with automatic wordwraping like TextCtrl does: int marginTop = 2; int marginBottom = 2; int marginLeft = 4; int marginRight = 5; wxString thetext = m_ctrl->GetValue(); // m_pos & m_size = Controls's Di...
by Muskelkatermann
Sat Mar 05, 2011 11:51 am
Forum: C++ Development
Topic: New Project: FormEditor -> Need some hints
Replies: 5
Views: 1624

As supposed zooming the FontPointSizes in XX% Steps was really not precise. Now I zoom by incrementing the PointSize an then I zoom the windows and background with the ratio of wxDC::GetTextExtent values of the original Pointsize and the current one. It is up to +/-3 precise. So I can use the wxText...
by Muskelkatermann
Fri Mar 04, 2011 12:28 pm
Forum: C++ Development
Topic: New Project: FormEditor -> Need some hints
Replies: 5
Views: 1624

New Project: FormEditor -> Need some hints

Hey Guys, I just started a new project and I hope you have some ideas for one or two unsolved tasks: The application will be a FormEditor, basically it has to load a backgroundimage(The designed form) and overlay some userinputs like freehand drawing, textfield and checkboxes. After editing it print...
by Muskelkatermann
Mon Oct 25, 2010 7:48 am
Forum: C++ Development
Topic: wxTextValidator with wxFILTER_INCLUDE_LIST
Replies: 2
Views: 1073

Thanks Auria,

wxFILTER_INCLUDE_LIST's behavior still confuses me, but wxSpinCtrl is exactly what I need.