windows

Forcing Winforms install to make application to start when windows starts

How do I force a windows application, with a setup project being added to it, to install so that it will start everytime someone logs into windows? Edit: I'm aware of the registry settings, but specifically, I am looking for a solution which will allow for the installer to set the registry values. ...

Extract data from windows forms

Hello, I have an old windows forms app made with boardland c++. I need to extract all the contents of that app to transfer it to a web app. The app is similar to excel, it has columns and rows...and I need to extract that rows and columns. First aproach is to copy paste, but there are about 1gig of information...it will took days to s...

How can I decompile Linux binaries from Windows?

How can I decompile Linux binaries (*.so) from Windows? Thanks. ...

How to share windows registry on remote machine?

Hello, Is it possible to share windows registry on remote machine? Or we can keep in synch two machines windows registry. Please help.. Kartik ...

Why do my Windows Forms strings look so ugly when anti-aliased?

I'm rendering some strings manually on top of a GraphicsBox, because you can't have a Label with a treansparent backdrop. No matter which rendering mode I try though, I can't get the strings to look any good (ie. as they would appear in Word or in a graphics program. Here's a picture of the interface mockup compared to what renders ons...

using LVM_FINDITEM from task manager and hide from task manager

I am using "LVM_GETITEMTEXT" and "LVM_DELETEITEM" on SendMessage() for trying to delete or hide specific .exe from task manager. But its not hide specific .exe. But i am getting the specific .exe name ReadProcessMemory().But after that the specific .exe is not hiding.Can u tell how can i do so that the specific appilication will hide or ...

Matching windows system colors: light on dark

I'm trying to make my app a good Windows citizen, so I use matching system colors (see "When selecting system colors, match but don't mix") as much as possible. However, sometimes light text on a dark background (something like COLOR_APPWORKSPACE/clAppWorkSpace) seems most appropriate, but the system doesn't provide this. Do you have any...

SidBySide: 3rd Party Dll refers to two versions of MSVCR80.DLL

We include a 3rd Party lib+DLL that recently causes a lot of trouble on installations. Using dependencywalker, we found that the dll itself refers to two different Versions of MSVCR80.DLL: Version 8.0.50727.4053 and Version 8.0.50727.42 In MOST cases installation makes no problems, even if we distribute none of both versions. But i...

Detecting if the microphone is on

Is there a way to programmatically detect whether the microphone is on on Windows? ...

Matching background color for COLOR_GRAYTEXT

(Related question to "Matching windows system colors: light on dark".) There doesn't seem to be an "official" background color for COLOR_GRAYTEXT. This looks strange to me. Do you know any? ...

Embedded objects in MS Office documents using Python?

How could I create embedded objects in an MS office document using Python? I don't need anything fancy, just what one used to do in the first version of OLE: doing a copy-paste from my application into e.g. MS Word should give me an object embedded in the Word document, which I can then double-click to open a copy of my application a...

How can I write portable Windows applications?

Sometimes, I want to write an simple application which will works on any Windows machine, without installing any programs or components (ex. .NET Framework), in a C# or Java like programming language. How can I do this? Thanks. EDIT: Added the 'like', sorry... ...

What's the difference between clock(), gettickcount(), QueryPerformanceCounter() and QueryPerformanceFrequency()?

Do they all give millisecond resolution? ...

Reading huge amounts of small files in sequence.

I have this problem: I have a collection of small files that are about 2000 bytes large each (they are all the exact same size) and there are about ~100.000 of em which equals about 200 megabytes of space. I need to be able to, in real time, select a range in these files. Say file 1000 to 1100 (100 files total), read them and send them o...

Any suggestions for best practices to follow when creating UI prototypes using sketchFlow for multiple screen sizes?

Hi all am looking to prototype the UI for an windows application. The app will be deployed on several display devices with different (physical) screen sizes and aspect ratios. Would like to be able to generate scenarios optimized on one display and quickly check if the layout is OK on different screen sizes, orientations. That is, I'd l...

High CSwitch ("context switch") when using Boost interprocess code (on Windows, Win32)

Hi, I'm writing a multithreaded app. I was using the boost::interprocess classes (version 1.36.0) Essentially, I have worker threads that need to be notified when work is available for them to do. I tried both the "semaphore" and "condition" approaches. In both cases, the CSwitch (context switch) for the worker threads seemed very h...

How to get the length of IStream? C++

Hello, I'm creating an IStream as follow: IStream* stream; result = CreateStreamOnHGlobal(0, TRUE, &stream); Then I have a CImage object that I save to this stream: image->Save(stream, Gdiplus::ImageFormatBMP); I need to get the size of bytes written to this IStream. How can I do this? There is no Length or something like this in...

Get a Win32 program request a debugger on startup?

Hello all, We have a C++ Win32 application which spawns, using Qt's QProcess (undoubtedly a wrapper for CreateProcess()), a secondary 'slave' program. Unfortunately, when debugging the system with Visual Studio 2008, the debugger does not autoamtically attach to the spawned process. I know it's possible to programatically trigger a de...

Is there an alternative to inet_ntop / InetNtop in Windows XP?

I'm trying to compile beej's guide to network programming examples, but Windows XP doesn't have such a function. I'm using mingw, if it makes any difference. ...

Custom Prefetch

Any programmatic techniques, portable or specific to NT and Linux that get the result of number of large files loading faster? I am after a 'ahead of time', a priori, whatever you prefer to call it mechanisms that I can control in code for two OS-es in question. Each file has to be processed in full, ie. completely in size and sequenti...