Search found 56 matches

by ScratchMonkey
Tue Feb 06, 2007 9:08 pm
Forum: C++ Development
Topic: Wildcard search along a path
Replies: 3
Views: 761

Not quite what I wanted ;) but for those who need recursion, you can use wxDir::Traverse. My approach now is to use wxPathList to assemble a list of the desired directories. I can't use it's AddEnvList method as I want a subdirectory of the directories my environment variable lists (ie. I want appna...
by ScratchMonkey
Mon Feb 05, 2007 11:46 pm
Forum: C++ Development
Topic: Wildcard search along a path
Replies: 3
Views: 761

Wildcard search along a path

I've found wxPathList for finding a known filename along a path, and I've found wxFileSystem::FindFirst/Next for finding a wildcard filename in a single directory. Does anything exist off-the-shelf to combine these, allowing me to find a wildcard file along a path? I want to search for XML config fi...
by ScratchMonkey
Sun Feb 04, 2007 8:34 pm
Forum: C++ Development
Topic: Problem with wxThread::Wait - hangs console App
Replies: 10
Views: 1443

Is this patch going into the wx CVS? Ie. has it gotten into the tracker? (I hate it when patches get lost and a bug hangs around to haunt us in later versions. ;))
by ScratchMonkey
Sat Feb 03, 2007 1:03 am
Forum: C++ Development
Topic: wxMail
Replies: 2
Views: 1068

If your mail will go out to the Internet, join a mailing list where MTA's and things like spam and viruses are discussed. There's a lot of poorly-behaved mail software out there.
by ScratchMonkey
Fri Feb 02, 2007 12:12 am
Forum: wxCode
Topic: Capture plug-in & unplug of external monitor to refresh:
Replies: 1
Views: 798

This is also important for applications that accessed remotely, such as over Windows Remote Desktop. I use this routinely to access systems in a lab or my servers, and the remote system's desktop resizes to my client screen size (or to the client window size, if I elect to run in a window). It's bee...
by ScratchMonkey
Thu Jan 25, 2007 3:07 pm
Forum: C++ Development
Topic: wxScrolledWindow
Replies: 1
Views: 367

I find it useful to run wxFormBuilder to create something visually and then use its "generate code" feature to see what C++ it creates.

(I'm also one of those guys who peeks at the assembly language my C++ generates. ;))
by ScratchMonkey
Wed Jan 24, 2007 2:46 am
Forum: wxCode
Topic: Plotting lissajous
Replies: 1
Views: 759

I'd seen wxMathPlot mentioned several times here, and upon downloading found that it has a lissajous sample. I'm checking to see if this will do the job. I'm also investigating what's necessary to add the control to wxFormBuilder.
by ScratchMonkey
Wed Jan 24, 2007 2:09 am
Forum: General Development
Topic: How to find the CPU Id ?
Replies: 6
Views: 1784

manianis wrote:How to find the MAC address of the NIC ?
I'm not familiar with wx' networking classes, but it might be there. If not, it's probably a useful API to add and feed back a patch for. The underlying machinery will be platform-dependent.

Beware that modern machines often have multiple NIC's.
by ScratchMonkey
Wed Jan 24, 2007 2:06 am
Forum: C++ Development
Topic: passing configuration to dialog
Replies: 9
Views: 1200

You might hide the copy/assignment operators for your Config class. (Move the declarations to the private section.) That often turns up unexpected and unwanted copy operations that lose modifications to the original. As a rule, when defining a class, you should always declare the "big 4": Default co...
by ScratchMonkey
Tue Jan 23, 2007 10:26 pm
Forum: Platform Related Issues
Topic: Linux & PostScript
Replies: 3
Views: 824

What driver do you use under Windows? Perhaps you should contact the Ghostscript author and point out the specifics where its rendering is not accurate. You might want to scan the output of the two and provide sample images to illustrate what problems you're seeing. The more precise your description...
by ScratchMonkey
Tue Jan 23, 2007 10:13 pm
Forum: General Development
Topic: How to find the CPU Id ?
Replies: 6
Views: 1784

I believe this is done via a BIOS call and most modern BIOS will allow the owner to disable it. It's one of the first things I do when I flash a new BIOS.

If you need a unique identifier, you might be better off using the MAC on the NIC. Although even that is easily modified.
by ScratchMonkey
Tue Jan 23, 2007 7:44 am
Forum: C++ Development
Topic: Invoking wxDialog from non-wx application
Replies: 2
Views: 671

Aha. The example there fails to show how to link to the parent window, but it links to an example in the forums here that clarifies that:

http://forums.wxwidgets.org/viewtopic.php?p=5964#5964

Thanks!
by ScratchMonkey
Tue Jan 23, 2007 6:25 am
Forum: wxCode
Topic: Plotting lissajous
Replies: 1
Views: 759

Plotting lissajous

I'm looking for a control that will let me display a lissajous pattern from an evolving data set. http://mathworld.wolfram.com/LissajousCurve.html http://en.wikipedia.org/wiki/Lissajous_curve I'm collecting data from two A2D's that read sine and cosine from an encoder and need to throw up the X/Y po...
by ScratchMonkey
Tue Jan 23, 2007 12:38 am
Forum: C++ Development
Topic: wx crashes when try to read corrupted images
Replies: 11
Views: 1747

The fact that the gifs only crash on a release build suggests a bug in the compiler optimizer. It would be useful to know which version and patch (service pack) of the compiler is used.