A few years back, another clever programmer set up a VB.NET service to print to one of the server's installed printers. The job queried a database table to see if it had any print requests, which specify the file to print and the name of the printer to send it to. The job constructs a 3-part command line incantation and executes it; it...
Using CoreFoundation, I can display an alert dialog with the following:
CFUserNotificationDisplayAlert(0.0,
kCFUserNotificationPlainAlertLevel,
NULL, NULL, NULL,
CFSTR("Alert title"),
CFSTR("Yes?),
...
Trying to find a way to limit the framerate of programs/games externally in a similar fashion to VSync, but to a specified number (instead of screen refresh rate). A perfect example of what I am aiming for can be seen in FRAPS, when recording a video the framerate is limited to the recording rate. The reason is for fast pace games which ...
Is there some sort of general pathname-rewriting/normalizing facility I can exploit in Emacs to allow source files in compile-mode to be translated to local paths based on remote paths? I was hoping to use symbolic links, but that's not working for me in Windows.
I'm running GNU Emacs 23.1.1, and have tried cygwin-mount and w32-symlink...
Hello...
I need to validate a textbox as follows:
When the user changes focus from that textbox, I want to show the properly formated currency value, but without lost the real user-entered value, Because i need it for later Calculations, and if is the case, for later editing from the user...
Can i do that? i don't want to have another...
I have a Windows console application that returns some text. I want to read that text in a Python script. I have tried reading it by using os.system, but it is not working properly.
import os
foo = os.system('test.exe')
Assuming that test.exe returns "bar", I want the variable foo to be set to "bar". But what happens is, it prints "b...
Hi all:
Can anyone recommend me a Perl interpreter that can run on Windows command line to read LCOV files (and generate a report of some sort)? I looked at genhtml, and it seems to need a lot of setup and must run in the bash shell environment, which doesn't sound good for Windows command line.
Thanks.
...
Hello,
I'm new to the testing world, so my question might seem a lil' bit too naive and stupid. At risk of looking/sounding stupid, my question is this:
i've been trying to test the contents in a pop up window on my company's webapp. i've figured out how to detect the pop up window for now, but i can't get selenium to 'click' on the li...
According to MSDN, Sleep() can be provided INFINITE value and that "indicates that the suspension should not time out".
Why would I want to call Sleep() with INFINITE timeout in my program?
...
I am new to Windows environment of development. I see a lot of .rc2 files used where a mapping is performed against some MACRO type constants to strings.
Q1. Why are these .rc2 files used?
Can someone give me a start on these.
...
It is very easy on Linux to fire-up vi and write a 100-200 lines of code, compile and see the results: ie. Trying small simple examples of C/C++ code.
On windows however, I like Visual Studio but to use it you have create a new solution then a project which then creates a new folder, generates very large PDB and caching files and a smal...
I've tried logging errors in my application, using the EventLog class.. But the Event Viewer on Windows 2003 Server is very limited as far as displaying the stuff I log.
Here's what I'm doing:
if (!EventLog.SourceExists("TestApp.exe"))
{
EventLog.CreateEventSource("TestApp.exe", "TestApp");
}
EventLog.WriteEntry("TestApp.exe", Exc...
Hey,
Go easy on me, I'm not much of a command line man... We have GIT set up within our windows network (using msysgit & GitExtensions). We each have our own repositories and we push to a remote 'bare' repository on one of our servers. All good.
I'm trying to set up a scheduled job on the server, which will clone a repository from th...
Is there a difference in performance when multi-threading developed with win32 event objects (CreateEvent) or with thread window message queue. Both should use some kind of WaitFor... calls.
My own code almost completely based on event, but maybe I lose something when don't use messages.
...
I am developing a .net component. Is there any foolproof way of identifying whether a web application or a windows application is calling it?
...
I am trying to retrieve the background and text color of the taskbar and/or my applications main window. It turned out, that Windows 7 does not return the correct colors. If i i.e. switch to a pink theme, Windows 7 still returns light blue for window caption although thats not true. This happens using
GetSysColor(COLOR_ACTIVECAPTION);
...
I was playing around with developing C# apps using MonoDevelop on windows and found that I like using GTK# instead of winforms. However, as far as I could tell so far you cannot just embed the GTK# runtime into the application. The problem is that I would rather not have to require the end users of an app I'm working on to having to in...
When my program written in C# or VB.NET or other .NET family language runs on Windows and calls System.Guid.NewGuid() is generation always performed by forwarding the call to UuidCreate() provided by Windows or are there other ways of generating?
...
How to get main window handle from process id?
I want to bring this window to the front.
It works well in "Process Explorer".
...
Is it possible to have a vector as a global variable is C++?
Like this:
class system {...};
vector<system> systems;
when I try to compile this I get an error. The compiler I'm using is gcc and I'm compiling as C++.
...