windows

Windows XP and 7 adding English US, even if I have different (nonsandard) English layout already.

There is another problem. It happens with XP and Windows 7 (interestingly, Vista didn't show this behavior). I have 3 keyboard layouts. English, Russian and Hebrew. The English is a customized layout, similar to the US-International but AltGr has many different languages' dead-keys to create any possible diacritics or Old English letter...

Command line GUID for Unix and Windows?

Is there a command line tool for unix and windows that uses the same algorithm to create GUIDs for both platforms? ...

Windows licensing for web developer

I need to test my website on Windows, now and in the future. I don't yet have Windows. I just need the software, but don't mind purchasing hardware to get the software. What's the cheapest ethical way to do this? Some options: buy a used computer on eBay. Will I be able to upgrade to future versions of Windows if I also upgrade the ha...

odd .bat file behavior

I have a bat file with the following contents: set logfile= D:\log.txt java com.stuff.MyClass %1 %2 %3 >> %logfile% when I run the bat file though, I get the following: C:\>set logfile= D:\log.txt C:\>java com.stuff.MyClass <val of %1> <val of %2> <val of %3> 1>>D:\log.txt The parameter is incorrect. I'm almost positive the "...

Calling mysql.exe from Java

I am calling mysql.exe from Java to load a database. Because the process just hangs, I need to create a command file and pass in the username and password. Example contents of command.bat: mysql --user="%1" --password="%2" mydatabase < myscript.sql The problem is that I cannot see the output of the mysql command to see if there were...

In java under Windows, how do I find a redirected Desktop folder?

I know using .NET languages such as C#, one can do something like Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) to find the redirected location of the Desktop. However, under Java, I cannot think of a good way to do this. What is the most appropriate way to find a redirected user Desktop directory from Java, ...

Remote WMI with Windows XP SP3

A fresh Windows XP SP3 install does not allow remote WMI access like Windows XP SP2 does. If I follow the steps in the "How to troubleshoot WMI-related issues in Windows XP SP2" document at http://support.microsoft.com/kb/875605 I'm unable to get SP3 to respond to a remote WMI request. Every request, even to the built-in Administrator...

Update Label while processing in Windows Forms

What is the best way to update a label on a windows forms application while processing. I have a loop that does some processing to files on the users system when the user clicks a button. foreach (System.IO.FileInfo f in dir.GetFiles("*.txt")) { // Do processing // Show progress bar // Update Label on Form, "f.Name is done pro...

Can a 32bit process access more memory on a 64bit windows OS?

From what I understand, a 32bit process can only access 2GB of memory on 32bit windows without the /3GB switch, and that some of that memory is taken up by the OS for its own diabolical reasons. This seems to mesh with my experiences as we have an app that crashes when it reaches around 1.2 - 1.5 GB of RAM with out of memory exceptions,...

Manually create unbound datagrid

Can anyone tell me if it is possible to create and add data to an unbound WPF Toolkit datagrid. If it is in fact possible to do, can someone please provide an example of the following: Programmatically: create a datagrid create a datagridtextcolumn add the datagridtextcolumn to the datagrid create a datagridrow set the text of the data...

Strict C Win GUI programming

Good day folks, I'm in a need of a bit of guidance. Basically, I'm a webdev who knows some C from the past, but I've only developed somewhat simple console apps for *nix. Shortly, I want to develop a simple Win program with a GUI and not get my hands into any of the following technologies: .NET C# Java C++ (especially this one) Becau...

Django "SuspiciousOperation" Error While Deleting Uploaded File

I'm developing in Django on Windows XP using the manage.py runserver command to serve files. Apache isn't involved. When I login to the administration and try to delete a file I get a "SuspiciousOperation" error. Here's the traceback: http://dpaste.com/123112/ Here's my full model: http://dpaste.com/hold/123110/ How can I get rid of ...

How to compile a C program?

I haven't done C in a long time. I'd like to compile this program, but I have no idea how to proceed. It seems like the makefile refers to GCC a lot and I've never used GCC. I just want an executable that will run on windows. ...

how do I set the proper initial locale for a C++ program on Windows?

I'm fairly new to localized programming, and I'm trying to figure out how to set the proper initial locale for a newly-launched unmanaged C++ application (from within the app). As far as I can tell, new applications start with the C locale, rather than the proper regional locale (English, German, etc). So what I need to do is call setlo...

MultiLine Regular Expression and outputting to a file in windows

I have an log file that I need to extract specific patterns from. I need to find and then process them into a new file. grep on Linux would usually do the trick but the regular expression spans multiple lines, which I understand grep does not do. here is an example from my log/debug file: Da: 1.328 0.5045 Db: 0.6415 0.1192 La...

which one to use "OnthreadedException" or "ApplicationRecovery"

I need to restart and gracefully close my application in case of errors. Now i have two options one is using OnThreadedException handler and other is to use Application Recovery and Restart model. If anybody has worked in them , can he tell me that what is the major difference between both of them except the second one allow you to auto...

About DPI issue

I have a WIN32 SW which the UI was designed in 96 DPI, so when user changes the windows DPI from 96 to 120 or bigger, the UI will be wrong. I want to know if there is API to force my SW to display the UI with 96DPI. ...

Best load balance configuration with Windows 2008 and SQL Server 2008

I have two servers running Windows 2008 Web Edition and SQL 2008 Standard Edition, how would be the best approach to load balance them? Should I use database mirroring or log shipping? Is Win2008 NLB easy to configure by a developer, since I'm not a sys admin? What I'm looking for is to be able to have my sites running in case of a si...

Playing transparent video over screen with custom user input handling

I need to play animated characters over the screen on Windows. Basically, it will be character video with transparency and only non-transparent parts should be able to accept user input (e.g. mouse clicks), all other events should be passed through to underlying window. I've made a simple transparent DirectX window with video in it. But...

How can I redirect stdout to some visible display in a Windows Application?

I have access to a third party library that does "good stuff." It issues status and progress messages to stdout. In a Console application I can see these messages just fine. In a Windows application they just go to the bit bucket. Is there a fairly simple way to redirect stdout and stderr to a text control or other visible place. Id...