I am making an taskbar and I need to know when the active window is changed. I don't want to use a timer. I'm thinking that maybe there is a WndProc message I can intercept.
I'm using C#
...
I am trying to read binary data from sys.stdin using Python 2.7 on Windows XP. The binary data is a WAV file decoded by foobar2000. Normally, this data is sent to a command-line encoder such as lame.exe on stdin, where it is processed and written to an output file whose name is provided in the command-line arguments. I am trying to inter...
PIXELFORMATDESCRIPTOR pfd = { /* otherwise fine for a window with 32-bit color */ };
HDC hDC = CreateDC(TEXT("Display"),NULL,NULL,NULL); // always OK
int ipf = ChoosePixelFormat(hDC, // always OK
SetPixelFormat(hDC,ipf, // always OK
HGLRC hRC = wglCreateContext(hDC); // always OK
wglMakeCurrent(hDC,hRC); // ! read error: 0xbaadf03...
I know I can easily get messages inside
[CustomMessages]
AdditionalIcons=blablabla
using this code:
ExpandConstant('{cm:AdditionalIcons}');
which gets the AdditionalIcons string message. However, how can I get messages inside this?
[Messages]
ButtonNext=huhu
ButtonInstall=bubu
What I need is to get the ButtonNext, ButtonInstall ...
I have InstantRails installed along with WeBrick and sqlite3.
What exactly do I type in the Windows cmd console to setup a db called 'development' and to get the entire things running?
This is my #&%^# 4th day of installation. I can get everything running on my localhost EXCEPT setup my db. I'm not a programmer so if you have a good ur...
Error 1 error C2036: 'const void *' : unknown size file.cpp 111
I don't follow. GCC never complains about void * pointer arithmetic, even on -ansi -pedantic -Wall. What's the problem?
Here's the code-
struct MyStruct {
const void *buf; // Pointer to buffer
const void *bufpos; // Pointer to current posi...
I have been working on a huge project for work for a while now, and it is almost done. However, in an effort to prevent the program was being pirated (I already know there is pretty much no method that can't be cracked ), the software needs to be able to validate. I'm not exactly sure how to do this. Could some sort of software validatio...
File: C:\Users\jeremy\AppData\Roaming\install\Svchost.exe
Can't get rid of it even when I go to it. There's nothing in the folder HElP
...
I've been using SetUnhandledExceptionFilter for a long time, and my handler walks the stack and uses dbghelp.dll to convert the addresses into File/Line references. It then writes that to a log file and puts up a dialog with the same information for the user. This USED to work just fine. These days however I'm getting a completely useles...
Hi, I suddenly find myself wondering this question, is it possible in java to hijack a socket?
say a server is listening on port 5000, would it be possible to write a java programme to listen on port 5000, and forward the same data to the server via port 5000.
What would be involved in doing this? I feel this involves writing a new net...
Hi All,
I am in a project where I need to find all files which are two days lesser than the current date. How can we achieve this using a batch script in Windows?
Appreciate your help !
Regards,
Renju.
...
how to use Windows NT logon credentials in java swing application for user Authentication?
...
Hi all,
We have a number of webservers(15) and for each server have a number of URLs(30).
I have written a Windows Desktop app that goes out and hits each server and each url combo. (using the httpWebRequest.Proxy to do this).
It's usually just for 2 servers at a time. So a total of 60 requests.
The first problem was the 2 connection li...
I am writing an application for WIM 6, and one of its features is to detect no movement. How can I access the phone's accelerometer? is there any managed API that wraps it so I can write it on c#?
Thanks.
...
I'm trying to run some commands, like rails test, using a C# command line. I tried using http://stackoverflow.com/questions/206323/how-to-execute-command-line-in-c-get-std-out-results but I'll need full path to the rails executable for that to work. Is there any alternative that will find work just like the windows command line does?
...
In my application, I want to execute logic at the very last moment. The later, the better.
The reason for this is that I keep track of certain elements in my application (data structures, resources, ...), and at the end of the application, a routine looks at these elements and reports if they were not correctly closed, freed, deleted, ...
I have a website on IIS7, when hosted in windows 7 the flash was loading ok, but when I put him on win 2008 server they don't load fully, I just shows a gray square (without the loading), and to make it work I have to right click and click play
anybody knows how to fix this ?
...
Does the stack reserved/commited for a thread get freed when
the thread terminates
the thread object is destroyed
(i.e. the thread is terminated and all handles to the thread are closed)
?
More broadly, are there significant resources associated with a thread that has terminated, but still exists since there are valid handles to it...
Hi all,
I am running Eclipse CDT on Windows to develop C code that is built & tested on remote Linux systems. Currently, the code is never compiled on Windows.
I am able to use CDT to begin the remote process on the Linux target under gdbserver, and then attach gdb from the Windows host. However, gdb immediately fails with errors like:...
Hi,
We are currently processing big word documents in c# program.
During processing i am getting message "Microsoft Windows has stopped working".
The program reads the word document based on the comments added to the document and processes the images and other text in the document and also creates lot of independent word documents with ...