What the question says.
Ultimately what I want is to execute gcc and capture the output if there's an error. The problem is errors are written to stderr instead of stdout. On Linux I can do
gcc foo.c 2>&1
How can I accomplish this on Windows?
...
I want to make a hook that will act like "event" (and not with agly GetAsyncKeyState) in C# (I want to do it in C++).
so, I've made a dll with this content: http://pastebin.com/yEHJKSS7 .
well, it doesn't call to Handler Function.
by the way, here's how I used the dll:
void KeysHandler(int vkKey, int flags)
{
if(vkKey == VK_ESCAP...
Is it possible to get image contents of an obstructed window without bringing it to the front? Also, is it possible to send mouse clicks to a specific locations of such window using Windows API? Would the realization be different on Windows XP and Windows 7?
What functions I would need and where can I read more about that. Thanks.
...
I am writing my own on screen keyboard.
The only piece missing is the position of each key on the keyboard.
Windows allows you to get the keyboard layout:
http://msdn.microsoft.com/en-us/library/ms929433.aspx
But how does one get the position of a key for a given layout?
...
pipe = IO.popen("my_cmd 2>&0")
while ???
line = pipe.gets
puts line if some_condition
end
This is using Ruby 1.8.7 on Windows. my_cmd is an application that prints database records to the stdout. One line per database record, and there's no way to know how many records there will be before I run the command. Each gets call retur...
Hey everyone, I'm trying to figure out if this is even possible, but what's the simplest way of advertising a Bonjour service through Visual C++? I've got the Bonjour SDK installed but frankly, SDK seems a kind word for what it really is. I've had a good old google around for sample codes, snippets, tutorials, but got nowhere - can anyon...
I am very new to wwf, not new to c# though. It seems that it's a great idea to do development using wwf when I watch those few video tutorials on youtube, however, all the tutorials show examples with console.write. That's not what I want. I want something that shows how to create an activity that exposes properties and methods. I just c...
Hi, I would like to catch as an event each time that the focused application on Windows change, preferently in C#. I need to prevent that my co-workers can send emails from my Outlook account when I stand up.
Thanks for your help.
...
My PC has two devices working like keyboard, the normal keyboard and a HID (Human Interface Device) input device (it's a remote control).
I want separate the input from keyboard and from remote, capturing only the remote control. How can I write a program in C/C++ to do this task?
It's not a easy task because this program is operating ...
Hello!
I'm building a Tic Tac Toe game in Java with a Swing GUI, and it renders correctly in Ubuntu 10.4 and Windows XP. This is how it looks like in Ubuntu:
When I copied the bin-folder with all the class files and tried to run the program in Windows 7 it looked like this instead:
I just can't understand what's wrong. As I said,...
I added a command to the right click context menu for sql files in windows explorer, but it only works if I select a single file. How can I make it work for multiple files. I added the command to:
HKEY_CLASSES_ROOT/sqlwb.sql.9.0/Shell/ExecSql/Command
I'm on Windows 2008. Ideas? Thanks
Edit: This does work. I suppose last night I must ...
Hi,
I came across programs like ARCserve HA, which they uses windows session credentials as the login with out having me to manually type in the userID and password. How does this works?? The program is actually capable of getting get my window's userID and password??
As my current project which is written in Java requires me to do so...
I know that gesture API added to Windows mobile at 6.5 version. But if I want to recognize some gesture on WM6 (not 6.5), is there some workaround ways to do such things? For example, how to response to a finger slip event in WM6?
...
Is there a easy way in Windows (using Delphi, not .NET) to convert UTC times to a local time, with daylight saving adjustments.
Data goes back 12 years, so needs to take account of changes in DST start/end dates over that time.
...
(This question is similar to Delphi: How to respond to WM_SettingChange/WM_WinIniChange? but for the AutoHotKey language. This is not about sending WM_SETTINGCHANGE from inside AutoHotKey.)
In another Windows process ("sender"), I change the PATH environment variable by modifying the HK_CURRENT_USER registry. Then I send/publish a WM_SE...
In Windows, in Git Bash, if I do a git diff I get all the differences flushed to the console with some sort of prompt to control the output buffer. What are the commands I can use in this mode of Git Bash? I don't know where to look for a quick reference.
I've worked out that <Enter> will scroll one line, and <Space> will scroll all lin...
I have a java program which need to be run as a service. How do I do that easily?
...
I would like to spawn a EC2 instance that has two partitions. The first would have WinPE, which the instance would boot into on first boot. It would (unattended) install Windows onto the second partition, then reboot into that installed version of Windows.
Is this possible? Can you have multiple partitions for an EC2 instance? Can one b...
I am currently reading about IPC on Windows, and I would like to seek some opinions and recommendations for implementing the following system, which I think is probably quite typical! :)
Clients generates in-memory data at a maximum rate of about 1kb/sec. Ideally, the IPC implementation allows clients to dump these data to a temporary d...
mysqli_real_connect($connection, $url['host'], $url['user'], $url['pass'], substr($url['path'], 1), $url['port'], NULL, MYSQLI_CLIENT_FOUND_ROWS);
What's the reason that it can take much time to make a connection?
Now about 3 out of 8 connections will hang for 5 seconds or even more.
...