We wrote a small Windows class library that implements extension methods for some standard types (strings initially). I placed this in a library so that any of our projects would be able to make use of it by simply referencing it and adding using XXX.Extensions.
A problem came up when we wanted to use some of these methods in Silverligh...
Hello.
I'm looking for small utility to run on windows mobile phone and trace all windows messages it receive. Not message codes, but names if it could figure them out.
I could probably write on for my own, but don't know where I could get a dictionary of WM. Parsing .H files perspective drives me mad.
...
I'm driving a web services load test using a system of WSF, VBS and JavaScript scripts. The load driver is running on my workstation, sending requests to a remote application server. I'm using WScript.StdOut.Write in the driver script to write results, and just redirecting the output to a text file when I run the test:
cscript //nologo ...
The question where exception logs should go has been discussed here once or twice (or more), and one of the recommendation was that the application should never write to the installation folder.
However, if I put the logs somewhere in %appdata%, this means that each user has its own set of logs. I'd prefer having all logs at a single loc...
Surely this is possible? I have been hunting through pyqt tutorials and documentation but cannt find the answer to it. Probably I just need to phrase my search query differently.
[Edit]
Thanks PEZ for the answer - more details including use of the .pyw extension in Python Programming on Win32 chapter 20
...
Using the Win32 API (in C, but that's inconsequential) how can I tell if a given window (identified by HWND) has focus? I'm hooking an application watching for an event, and when that event occurs I want to check if the application already has focus. If it doesn't, I want to flash the window until they give focus to it.
Alternately, doe...
I'm working on a treeview with its CheckBoxes property set to true. I want the same functionality as in a CheckListBox in that if I check the box of a treenode, that node will be selected; and if I select a node, that node's checkbox will be checked. I'm not sure what event I need to hookup to do this. Please help. Thanks.
...
I'm trying something like this
Output.py
print "Hello"
Input.py
greeting = raw_input("Give me the greeting. ")
print "The greeting is:", greeting
At the cmd line
Output.py | Input.py
But it returns an EOFError. Can someone tell me what I am doing wrong?
Thanks for your help.
EDIT
Patrick Harrington solution works but I don'...
I am on a windows IIS server serving some php sites. We have moved a working PHP site on to our server, however submitting one of the forms returns:
PHP has encountered a Stack overflow
When commenting out the MYSQL INSERT and assigning SESSION variables the form processes, however these are vital segments of the submission form.
Any...
We're developing a site that will only run on the intranet, and computers with access to this intranet will have this executable installed. We can't have any "Would you like to open [filename].exe?" prompts. Click a link and the program begins running.
I realize that giving websites the ability to run executables on the client machine...
Is there a portable wchar_t in C++? On Windows, its 2 bytes. On everything else is 4 bytes. I would like to use wstring in my application, but this will cause problems if I decide down the line to port it.
...
Following from this OS-agnostic question, specifically this response, similar to data available from the likes of /proc/meminfo on Linux, how can I read system information from Windows using Python (including, but not limited to memory usage).
...
Hello,
I'm thinking about using hadoop to process large text files on my existing windows 2003 servers (about 10 quad core machines with 16gb of RAM)
The questions are:
Is there any good tutorial on how to configure an hadoop cluster on windows?
What are the requirements? java + cygwin + sshd ? Anything else?
HDFS, does it play nice ...
I'm writing an add-on to bypass the printer confirmation dialog in C++. I can successfully intercept a print call, however when I try to print the document, the dialog still comes up. I'm catching the event in:
STDMETHOD(Exec)(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdExecOpt, VARIANTARG *pvaIn, VARIANTARG *pvaOut)
and sendi...
I've written the following routine to manually traverse through a directory and calculate its size in C#/.NET:
protected static float CalculateFolderSize(string folder)
{
float folderSize = 0.0f;
try
{
//Checks if the path is valid or not
if (!Directory.Exists(folder))
return folderSize;
...
Question:
Does anyone know how to change the current directory of an already running open file dialog?
Details:
I have a customized open file dialog (using a custom template to add extra controls) that also has all the validation, existing checks, and creation tests turned off (via the OpenFileName flags).
Turning those things off di...
I have a self upgrade process implemented where my main application exe launches an updater exe passing a handle to itself on the command line. The application exe then calls ExitProcess to exit, and the updater calls WaitForSingleObject on the passed in handle to wait for the application exe to terminate.
The WaitForSingleObject does w...
Is there a windows call to get the baud base frequency, like this one in linux.
struct serial_struct ser;
ioctl(com, TIOCGSERIAL, &ser);
base = ser.baud_base;
...
I have an application that monitors a high-speed communication link and writes logs to a file (via standard C file IO). The response time to messages that arrive on the link is important, so I knowingly don't fflush the file at each message, because this slows down my response time.
However, in some circumstances my application is term...
I'm using ShellExecuteEx to execute a command in C. Is there a way to use ShellExecuteEx and capture standard in/out/err?
Note: I don't want to use CreateProcess.
...