windows

PocketPC c++ windows message processing recursion problem

Hello, I am having a problem in a large scale application that seems related to windows messaging on the Pocket PC. What I have is a PocketPC application written in c++. It has only one standard message loop. while (GetMessage (&msg, NULL, 0, 0)) { { TranslateMessage (&msg); DispatchMessage (&msg); } } We also have ...

How to run WCF IPC (http) on localhost without requesting administrative privileges?

We're developing a set of applications that need to communicate with each other on the user's session. These applications do not require any administrative privileges to run, but as soon as one of them tries to open an http listener - it fails due to lack of the administrative credentials. On the other hand, since user doesn't have any a...

Trouble with ActiveQt

I'm trying to get the examples of using ActiveQt working with my Qt Commercial 4.4.2 release (my commercial support expired). So far no luck. I keep getting "Failed to create component 'AxHost'". Sorry, not much to go on. My goal is to allow a client to use a widget from my app in their C# application. Am I taking the right approach...

Is there an OS function to translate a REFIID to a helpful name?

Short of writing a function manually that translates a few known REFIID to names, such as: if (riid == IID_IUnknown) return "IUnknown"; if (riid == IID_IShellBrowser) return "IShellBrowser"; ... Is there a system call that would return a reasonable debugging string for well-known (or even all) REFIIDs? ...

Remotely manipulating the execution of a batch file

I have a batch file that is located on one machine that I am invoking remotely from another machine. That batch file is pretty simple; all it does is set some environment variables and then executes an application - the application creates a command window and executes inside of it. The application it executes will run forever unless s...

When should I register my COM interface in HKCR\Interface?

Turns out there's a HKCR\Interface subtree where I can register my newly introduced COM interface. As I get it I would need it in two cases: if I want to enable marshalling - then I can register proxy/stub there if I want to publish more information on my component so that other developers could lookup the interface id and find it's hu...

Python, List running processes 64Bit Windows

Hey Guys, I amm writing a little python script that will grab information from VMs of Windows that I am running. At the moment I can list the processes on a 32bit XP machine with the following method: http://code.activestate.com/recipes/305279/ Is it possible to somehow detect the version of windows running and excute a different met...

Where are LINQ assemblies located in Windows XP?

Where are LINQ assemblies located in Windows XP? ...

Accessing a single file with multiple threads

I need to access a file concurrently with multiple threads. This needs to be done concurrently, without thread serialisation for performance reasons. The file in particular has been created with the 'temporary' file attribute that encourages windows to keep the file in the system cache. This means most of the time the file read wont go ...

How to implement a Google-chrome-like title bar for Java SWT application

I have inherited development of a Java/SWT application running on Windows only. One of the feature requests that I need to scope is a Google-chrome-type title bar in place of the SWT windows title bar. The application's tabs appear at the same level as the window control buttons. My understanding is that I will need to: write a Win...

Does KEY_WOW64_64KEY have any effect on 32 bit Windows?

It appears that specifying the KEY_WOW64_64KEY flag (reference) when accessing a registry key under 32-bit Windows XP has no effect - that is, no error is thrown, and the key is opened as if you hadn't had the flag set. I know Windows 2000 throws an error when it encounters this flag. I want to make sure my app is compatible with as ma...

Moving development from Windows to Linux

I'm a longtime Visual Studio(from versions 6 to 2008) user that really like the editor and especially the debugger. Now I'm thinking of giving Linux a go, is there a IDE with similar, or better, capabilities out there? I'm also interested in recommendations for GUI libraries, c++ or c#. ...

Maximize CPU Usage

How do I maximize the CPU usage for my application? I tried setting it to "Real-time" in the Task Manager, but there was no noticeable improvement - it's stuck at 50%. I'm working in Windows XP with Visual C++ 2005. ...

Analyzing application fault in msvcr80.dll, fault address 0x00008aa0

I'm debugging an intermittent problem in which an application (created using C++ in Visual Studio 2005) is faulting. The event log provides the following information: faulting module msvcr80.dll version 8.0.50727.1433 fault address 0x00008aa0 I did a Google search and found many other examples of applications crashing with this parti...

How to check if computer exists or not?

Hi! I wrote a little program, which is working like a ping command(i use ICMPSendEcho2), but it gives back a return value, not only a text message. Now I have only one question. How can I programmatically check if a hostname exist or not? I mean if i want to ping computerA, and i don't even have a computerA then it should say what the o...

How to inherit from the windows explorer (in any programming language, with help of any tool)

How to inherit from the windows explorer (Desktop, thing with help of which we explore our Mu computer and so on directory’s) (in any programming language)? customize it add program fetchers ( adding to Windows Explorer Mac teachers or sorting algorithms or adding buttons or anything ) What do I need: EXAMPLES Open Source lib...

Can PHP be used to control a GUI application?

Suppose I have a GUI-only application that runs on Windows and I'd like to create a web interface for it using PHP. Is it even possible? I know I can use functions like system() or exec() to launch programs, but can I have more control over a running GUI app? Primarily, I would like to be able to send it keystrokes, so I can use it to pr...

Creating a Cygwin emacs macro

I have been researching how to get Cygwin to work under emacs. I have it working, but now I want to write a macro that will do the following: Launch by typing M-x cygwin Have the script stored in some obvious place (probably my .emacs file) M-x shell Rename the buffer to cygwin (or cygwin1, cygwin2, cygwin3, ... if cygwin exists) prob...

How to make sure that a file was permanently saved on USB, when user doesn't use "Safely Remove Hardware"?

When I save a file on a USB within my delphi application, how can I make sure the file is really (permanently) saved on the USB, when "Safely Remove Hardware" is not performed (especially forgotten to use)? Telling our customer to use the windows feature "Safely Remove Hardware" doesn't work. Is there a windows API command to flush the b...

Any sense in marking an IUnknown-derived interface as dual in IDL?

Reviewing our code I've found a curious definition in one of .idl files: [ object, uuid(uuidhere), dual, nonextensible, oleautomation, hidden ] interface IOurInterface : IUnknown { //methods here }; How can an interface derived directly from IUnknown possibly be a dual interface? Will anything break if I re...