windows

Visual C++ Development Targeting Linux

I've been a Visual C++ user for quite some time now, and in the following weeks, I will be joining a (C++) Linux-only project. It should be noted that I have absolutely zero development experience on Linux. Currently, Visual C++ 9 along with the Visual Assist X add-in make Windows-based development rather enjoyable. Having looked at var...

accessing shared network using at

hi I have a program which I would like to run every X min the problem is that the program is accessing a shared network and using AT command I can't use it (due to the fact that AT is running the program with SYSTEM ACCOUNT) any ideas how to slove this issue ? thanks ...

How do I obtain the exit code for a (Java) process with the Win32 API?

How can I obtain the JVM exit code (value of 'status' from call: System.exit(status)) from a Windows program which started this JVM? I tried to use result from the ShellExecute() call, but the result (42) was independent of real value of status. ...

Placing toolbar into Windows taskbar (ala language bar)

Hi all, I'm currently in the process of writing a Windows MFC app to quickly search our corporate DMS. The idea is to have a button placed at the right hand edge of the windows taskbar much like the language bar, that when clicked, would popup the search interface. I can't seem to find much regarding how placing items in the taskbar li...

Change file order in a Windows Directory in C

Like when you drag a file on top of another one and change the order, like that. ...

Access system environment variable in AIR?

How can one access a system environment variable in Flex/AIR (say %appdata%, %userdomain%)? ...

Color picking from given coordinates

What is the simplest way to pick up the RGB color code of the given coordinates? For simplicity let's assume that the screen resolution is 1024x768 and color depth/quality 32 bits. The coordinates are given relative to the upper left corner of the screen. I'd like to get some tips or examples how it can be done with Python. ...

Dynamicly generated file on server does not release process handle .NET on Windows Server 2003

I have build a web application which the user can request a report which is generated on the server and sent back to the client. The process works fine and sends the file back to the client, however we are unable to open the file. Further investigation reveals that a process on the server still has a handle on the file by the IIS Applica...

About Autorun feature in Windows7

I have a Autorun.inf which can work in XP and Vista, but I found Windows7 can't recognize and work with it, does Windows7 drop the autorun feature? ...

How to create a transparent window with non-transparent child controls (or child windows)?

Hi All, First, I'm working on Win32 with C++. I have been trying to implement a transparent window with a child window which should remain 100% opaque. It seems that child controls cannot have opacity better (ah.. lower) than the parent and if I make my parent 100% transparent then my child control also inherits the transparency. C...

GhostScript command line parameters to convert EPS to PDF

Just installed GhostScript 8.54 for Windows. Does anyone know of the minimum parameters to pass to gswin32c.exe to make it convert, say, someFile.eps to someFile.eps.pdf? ...

Windows Service error: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

I have a simple windows service application I am trying to debug in VS 2008 IDE but each time I run the code, I get the error "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." . This error occurs at the service.Stop() line below: static class Program { /// <summary> /// The ...

Windows Layout Look and Feel

I am looking for the Windows Look and Feel Design Guidelines (but not the one for Windows Vista!) that details the ideal gap between elements, etc. I found the document originally a few years back on MSDN but now I can't find it. I've started a new job the same thing is occuring here as before: A program written and added to over the y...

Log Pulling and Rotating in Windows

Does anyone know of a good commercial or open source solution for pulling and rotating application logs from a bunch of disparate servers to a central server where you can catalog them by year/month/date/hour etc... this needs to be something that will work on windows. ...

Redirect web request

I use a third-party application that requests a config file from their Internet site. That file is out of date, but I can create my own file with the updated information. How can I redirect any requests coming from my computer for a specific URL to a different file? For example, if any application requests 'http://www.theirsite.com/pat...

Are there any Java libraries which I can use for automated testing of Windows GUIs?

Currently I am doing automated integration testing using FitNesse (Java) and have successfully plugged-in Watij to access a web-based application. I would like to extend this to also drive Windows GUI (non-Java) applications. To this end, are there any Java libraries available which I can use in a similar way? ...

Why does DirectoryInfo.GetFiles() match files that don't match the mask?

Basically, I have this code: DirectoryInfo dir = new DirectoryInfo(@"\\MYNETWORK11\ABCDEFG\ABCDEFGHIJKL\00806\"); FileInfo[] files = dir.GetFiles("200810*"); I expect it to match any files starting with 200810. However, it's matching files named *20070618_00806.bak and 20070817_00806.bak* (the stars aren't in the filename, that was ...

Is the HPET directly accessible in Windows?

I would like to use the High Performance Event Timer (HPET) for an profiling tool to take very high precision measurements, quickly. timeGetTime does not provide sufficient resolution at 1ms, and QueryPerformanceCounter is much slower per read than I'd like. I came across the HPET while researching the problem, but I can't see any sample...

This is how I installed JRuby on Windows -> Why did it not work?

* Download JRuby 1.20. (zip file) * Extract the zip into C:\JRuby120 * Edit sytem "environment variables": * Add JRUBY_HOME -> point it to C:\JRuby120 * Modify the PATH environment variable to point to C:\JRuby120\bin; After all this, I open up cmd.exe and type jruby ->"The system cannot find the path specified" What did I do wrong? ...

How can I control my PC's fan speed using C++ in Vista?

How can I use C++ to control CPU fan speed in Windows Vista Ultimate? I would like to use ACPI. ...