windows

from console application to windows form GUI problem

i wrote a console application in visual c++, and now i want to add a GUI to it using windows form. I am new to Windows form. and i have following questions I dont know how to include classes from other .h files in windows form. is library like #include <stdio.h>, #include <stdlib.h>, #include <iostream> in my original project still c...

Installing GSL on windows and making it available to python package P4 for phylogenetics

I want to use the P4 Python Package on a windows machine. from: [http://www.bmnh.org/~pf/p4.html][1] I have python 2.6 installed and working with numpy ready and realines.py installed. There is a win32-gbu version of GSL installed on my windows machine, from gnuwin32.sourceforge.net/packages/gsl.htm When I try to install P4, using set...

One more bash (now .bat) script

I need to convert about 12000 TIF files in many directories, and try to write bash-script: #!/bin/bash find -name "*.tif" | while read f do convert "$f" "${f%.*}.png" rm -f "$f" done Why it say: x.sh: 6: Syntax error: end of file unexpected (expecting "do") and what I should to do? Great thanks to you all, men, but I was cheated:...

Atomic load/store for OSs other than BSD?

Among the atomic operations provided by BSD (as given on the atomic(9) man page), there are atomic_load_acq_int() and atomic_store_rel_int(). In looking for the equivalent for other OSs (for example, by reading the atomic(3) man page for Mac OS X, the atomic_ops(3C) man page for Solaris, and the Interlocked*() functions for Windows), th...

how to compile curl from source in windows?

I created this question for the suggestion under this answer ...

Set focus on console in Windows?

Is it possible to set focus on a console app in Windows? SetFocus looks promising, but it needs an HWND and I don't know if console apps even have one. ...

VB.NET - Windows Taskbar Progress with embedded DLL?

Hi forum. I asked a question earlier asking how to use the Windows 7 taskbar progress bar without the .dll files, but I realized that in VS2010 you can embed a .dll into your application. I set this option to embed to true, but when trying to use the code for said .dll, I get this error: Interop type "Windows7ProgressBar" cannot be e...

Automating Windows GUI Testing - FindWindowEx and Control Classes

I've inherited a C# window's application that I'm not real crazy about. I've got a looming deadline and I'm scared to death that some of my changes might be having adverse effects on existing functionality. I've got a hobbyist background to RoR and I'm fairly comfortable with testing in that framework (using both RSpec and Cucumber). ...

bin directory and PATH

Hello everybody I'm beginner in programming. Can somebody please explain (by simple words) what do I have inside the bin directory of program? What is this PATH environment variable of windows, how does it work (please don't think that I don't know how to use Google, I just want to understand it more clearly)? Thanks in advance for any...

Castle windsor Nhibernate Facility cCastle.Facilities.NHibernateIntegration.ISessionManager which was not registered.

Hi Iam having some trouble getting castle Nhibernate facility up and running properly. This error I guess makes sense because the Nhbernate repository constructor takes in an ISessionManager as a constructor argument, my question is does castle not inject this dependency? or is there something wrong with my configuration UserServiceTest...

Why does my simple hello world C++ app use 3 threads?

When I look in windows task manage it says it's using 3 threads? Why is this? I was expecting just 1 thread to be used. I used Netbeans IDE and MinGW-Windows g++ to compile it. Thanks Code: #include <iostream> using namespace std; int main() { cout << "Hello World"; int input; cin >> input; return (EXIT_SUCCESS); ...

What are the differences between "Run as administrator" and a manifest with requireAdministrator?

I've written a program with a manifest that includes requireAdministrator. On Windows 7 systems with UAC enabled, Windows pops up a dialog asking for permissions, as it should. Works great. If a user starts my program by right-clicking it and choosing "Run as administrator", then Windows 7 also pops up a dialog asking for permissions....

PEAR location on install?

I'm trying to install PEAR, but I'm confused by the locations suggested. I'm using Wampserver to run my PHP scripts, and I wanted to do unit tests. So I found PEAR. I tried installing via the go-pear.bat file, but that didn't work. I found out more about this here: http://blog.pear.php.net/2009/07/01/php-53-windows-and-pear/ So I down...

How to run and hide using Batch File?

I'm running a script (MouseParty.pie) on Glovepie. This is my batch file script, it runs MouseParty on the GlovePie IDE... .\\glovepie.exe -MouseParty And now, I need to hide the GlovePie IDE. Any idea on how to do that? Plus, if you can tell me how to run MouseParty when it's in another folder that would be really helpful. And if ...

Get currently logged on interactive user for a remote machine?

How do I find out what user, if any, is currently logged on to some remote Windows XP machine interactively? .NET code would be great or any command-line utility that I can call from code. SysInternals psloggedon, as suggested on SuperUser, almost works, but it doesn't tell me which session is interactive. ...

What information is contained in the NTFS metadata?

I want to know what information is contained in the NTFS metadata. But I couldn't find the paper anywhere. I guess the metadata has a filename, a size and an attributes etc. Has NTFS metadata also got a Shortpath name? What information is contained in the NTFS metadata? Do you know a good site or a page about this? If you do, please le...

File time stamp does not change with data update

I have customer which claims that he has one application which updates the data in log file but that application does not change the time stamp of the log file. I have question why would any application has such behavior. ...

Why does GIT not use the core.editor and commit.template configuration values when running from the bash command prompt?

When I run commit from a standard command prompt it is opening the configured editor defined by the core.editor configuration value and uses the template defined by commit.template. However when I run commit from the bash command prompt it is ignoring these settings and opening the VI editor without the template. Why is this? I am n...

Adding write access for low integrity processes under .Net

I'm creating an FileSecurity for file creation that should have an write access also for low integrity processes. FileSecurity fileAcl = new FileSecurity(); // add everyone IdentityReference sid = new SecurityIdentifier(WellKnownSidType.WorldSid, null); FileSystemAccessRule rule = new FileSystemAccessRule(sid, FileSystemRights.FullCont...

Is Ruby on Windows failing when dealing with IPv6?

So I've got a tool that I built in Ruby that uses net/http to make some requests to an external REST service. I built and unit tested this tool using Windows 7 and it worked absolutely fine. Now, since this tool is meant to be run periodically on one of our servers (running Windows Server 2008 R2), I deployed it there and suddenly it's ...