windows

In wxwidgets, how do I make one thread wait for another to complete before proceeding?

I have a system where my singleton class spawns a thread to do a calculation. If the user requests another calculation while another calculation is still running, I want it to tear down the existing thread and start a new one. But, it should wait for the first thread to exit completely before proceeding. I have all the tear down working ...

int 13h in windows protected mode?

Hi to all Could we use the Int 13h (direct disk read/write) in Windows operating systems or does the windows protected mode not allow us, and if so is there a work round? Thanks in advance. ...

java stack dump on windows

I have a running java process in a standard windows command window. ie i have run 'cmd' and typed in java -jar ... I need to be able to get a full stack dump of all threads if at all possible. i remember that under linux you can send a message to the JVM via an option on the quit command. in this document sun state To generate a ...

Right clicking with a Webkit view

I'm working on a project in Ruby right now that is essentially a web-app. We like the format of web-apps and some of the natural agile advantages we have building for the web. However, we want to be able to package our application and distribute it in a standalone format. Ideally, we would like to essentially make a .app package for Ma...

how to get the current opened applications in windows using c++ or vb.net?

i need the current opened applications(those that appear in the task bar) and NOT the currently running processes. thanks ...

Which python installation should I use?

I'm about to refresh myself in programming and I have decided on Python 2.6 for that. I have searched the net and it gave me two possible installers for download. One is from the Python site and another is from Activestate. Which one should I install on my Windows computer? ...

How to automatically monitor and limit resource of process on Windows

On Linux, normally I use ptrace function to trace all syscall, and kill the process if the it tries to do anything harmful to my machine, such as system("shutdown -s -t 00") or so. Is there a way for me to do this on Windows? EDIT: I want to write Sandbox program to limit time and memory usage of its child that can work on both Windows...

Why is WMDC/ActiveSync so flaky?

I'm developing a Windows Mobile app using the .NET Compact Framework 3.5 and VS2008, and for debugging using the Device Emulator V3, on Win7, and seem to have constant problems with Windows Mobile Device Centre (6.1) connecting. Using the Emulator Manager (9.0.21022.8) I cradle the device using DMA in WMDC. The problem is it's so flaky ...

Is sending data via UDP sockets on the same machine reliable?

If i use UDP sockets for interprocess communication, can i expect that all send data is received by the other process in the same order? I know this is not true for UDP in general. ...

Windows drag and drop problem with console app

Hi all, I have a program that creates a file and writes to it using ofstream. I need the program to be able to parse command line parameters later on. But for some reason, it does not create a file when I drag-and-drop a file onto the compiled executable, even if the program doesn't involve any command line parameters at all. If the exec...

What is a windowless control?

Under Windows their is something called a Windowless Control. RichEdit What is a Windowless Control and what are its benefits? ...

Load/Save a PE with PeLib?

Using http://www.pelib.com/index.php How do you open/save a pe file using PeLib? The 1 example it does have for writing a PE file is writing one from scratch, not loading an existing one, editing and saving it. Also, anyone know of a more up to date library? PeLib works, just it is kinda old and a bit of a pain to use. ...

Can you use wxMutex in an event handler?

Is it possible to use wxMutex->Lock() in an event handler? Since it's the main program thread (gui thread) it can't sleep right? ...

Problem with Batch File

I have the following Batch file... When I run it in a normal command prompt - it runs as expected... Find that the server and destination exist, and does the backup and exits. When I run this using the task scheduler - it sends the email that it cannot find the server, but still does the backup... Can anyone shed some light on this? I'...

Tutorial to get started with (learning) Subversion?

I'm planning to switch from CVS to Subversion (on Windows). Looking for some good tutorials (online or books) to get started. ...

How do I fix "perl is not recognized" on Windows?

I've set up a log file to pick up MySQL slow queries. I've been unable to parse the file however. Linux makes this task seem very simple. In tutorials it seems as easy as: $ mysqldumpslow -s c -t 10 In Windows however, I'm not sure how you run Perl, located in: G:\xampp\perl\bin with the Perl Script mysqldumpslow.pl, located in: G:\...

In wxwidgets, how do I lock a vector that is shared between gui thread and worker thread?

If I can't call lock on a mutex in the main application thread (my event handler because you can't lock the main gui thread), how do I share any information between my worker and my main thread? ...

Common Controls 6.0 in Windows 2000?

I'm wanting to use Grouping in CListCtrls, which seems to have been introduced in Common Controls 6. CC6 only came out with XP, so we have a problem with Windows 2000 and earlier. Deploying a new version of Comctl32.dll would seem to be the solution - however, our software has the requirement of being a standalone executable. Is there a...

Compiling same project with two different settings in Visual studio.

I have Visual C++ solution. One of the project needs to compiled targeting x86 as well as x64. With default setting it can be compiled once in solution file. Is it possible to build solution once but build the same project with two different settings ? Thanks in advance for any help. ...

pyinstaller error.

D:\TDDOWNLOAD\WWW1\pyinstaller>python Makespec.py C:\Documents and Settings\Admi nistrator\桌面\a.py wrote D:\TDDOWNLOAD\WWW1\pyinstaller\Documents\Documents.spec now run Build.py to build the executable D:\TDDOWNLOAD\WWW1\pyinstaller>python Build.py D:\TDDOWNLOAD\WWW1\pyinstaller\Do cuments\Documents.spec Traceback (most recent call last...