windows

Workflow In Production Code

Hi I would like to know how many of you have used Workflow in your production environment and Was it good idea? I mean we can create the same thing using DB and scheduler service ...

Deploying Mono applications to Windows

What difficulty would be encountered in deploying a Mono-based application to Windows? Does the Mono runtime have to be installed along with the application? Would this be an inconvenience for the end user? Edit: The idea is to deploy a cross-platform application, thus Mono as a choice. ...

C++ What's the max number of bytes you can dynamically allocate using the new operator in Windows XP using VS2005?

I have c++ code that attempts to dynamically allocate a 2d array of bytes that measures approx 151MB in size. When I attempt to go back and index through the array, my program crashes in exactly the same place every time with an "Access violation reading location 0x0110f000" error, but the indicies appear to be in range. That leads me ...

How can I diagnose Windows access/permission error

The title says it. I'm looking for a way to determine exactly which file/registry key this executable is attempting to access. I have attempted to use Windows auditing capabilities and Process Monitor to determine where the failure is happening but, this failure does not produce audit failure events or show as access denial in Process Mo...

Windows System Idle Processes interfering with performance measurement

I am doing some performance measurement of my code on a Windows box and I am finding that I am getting dramatically different results between measurements. A quick bit of ad hoc exploration during a slow one shows in the task manager System Idle Processes taking up almost 100% CPU. Does anyone know what System Idle Processes actually m...

Window message procedures in Linux vs Windows

In Windows when you create a window, you must define a (c++) LRESULT CALLBACK message_proc(HWND Handle, UINT Message, WPARAM WParam, LPARAM LParam); to handle all the messages sent from the OS to the window, like keypresses and such. Im looking to do some reading on how the same system works in Linux. Maybe it is because I fall a bit...

What is the best way to write a rakefile to run commands in windows?

As an example i want to run the following command under a rake. robocopy C:\Media \\other\Media /mir The rakefile i was able to get working was def sh(str) str.tr!('|', '\\') IO.popen(str) do |pipe| pipe.each do |line| puts line end end end task :default do sh 'robocopy C:|Media ||other|Media /mir' end Howeve...

Respond to keyboard when not in focus? (C#, Vista)

I'm trying to write an application that responds whenever the Shift key is pressed, no matter what application currently has focus. I tried this with SetWindowsHookEx() and with GetKeyboardState(), but both of these only work when the application's window has focus. I need it to work globally. How do I do this? ...

Doomed technologies?

What technologies/languages/applications do you think have hit their peak on Windows platforms, those that are or should be slated for obsolescence? My votes, might be wishful thinking in some regards: VBScript Microsoft Access ODBC Flash I ask because we are in the process of setting future directions for technologies and applicati...

C#: windows application Caspol

I have a windows application.. which will run in a very restricted environment ... The windows app queries event logs and performance counters.. it requires these permission.. the log in account being restricted disallow access to event logs and performance logs... I cant make any changes to the windows application... i was looking for a...

Webistrano on Windows

Has anyone had any success in getting Webistrano running on Windows. Everywhere I have read says it wont run on Windows, but isnt that kinda the point of using Ruby? ...

Rsync for Windows

Does anyone know of a tool or framework that provides rsync type functionality for windows. I'd like to write an rsync type program in windows and not actually wrap rsync and cygwin as DeltaCopy does. (I'd like to have more features than DeltaCopy like continuous replication, firewall transparency, IPSec encryption etc.) I have given ...

customizing assert macro

On Windows/c++, I want to customize the assert dialog box to ignore an assertion forever, so I can be more aggressive with assertions. I understand how hard it is to write a correct assert macro, and do not wish to do this, just hook the dialog code. Is there an easy way (or concise hack) to do this? article on assert macro dangers (g...

How can I simulate a disk full error in a Windows environment?

I have to write a bat script for a test scenario where the software that we are testing fails to write to file due to a disk full error. The test script must be automated, so that we can run it on overnight tests, for example. The test script must also work at different computers, so installing a software like a virtual machine wouldn't ...

why windows allowed us to create a folder as "con" ??

i tried a lot to create a folder names as "con" , but it says the desired device name is not known.. can you tell me why this is happening?? thanks in advance Duplicate of Windows and renaming folders - the ‘con’ issue ...

How can I check for an open URL in another window?

This is a follow up to my last question Open a window if the window does not already exist Essentially, I am now keeping a list of all the window references that have been opened by a page, and only allowing them to be opened if they are not already open. Then a potential problem struck me - it is of course possible for a user to shut do...

Ruby on Rails - Capistrano and SVN on Windows. Setup help

I have Subversion setup and running on my local network with windows and svnserve. I'd like to use Capistrano to deploy to a remote ubuntu server but am a bit on unsure on what I need to do to get the client end to work on windows. My understanding is that the remote server needs to be able to tunnel into my subversion server. I've re...

Debugging JVM crashes under Windows

I wrote a piece of software in Java that communicates with USB hardware by using a DLL provided by the hardware vendor. I used the Java Native Access library to write the wrappers to native code. Sometimes when I am running it, only on native code related functions, JVM crashes and I cannot find what caused the bug because it happens in ...

What does a "CALLBACK" declaration in C do?

I was looking through some code from the SDL library and came across a function declared like this: LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) Now, I'm a Delphi coder. No hablo C muy bien, senor. But I remember enough syntax from my college courses to read it like this: Function name is WndProc. Ar...

Identify scanner(s) attached to the computer?

The application I'm working on is using a scanner, which may belong to one of a few types. I need to identify the attached scanner(s), give an option to select a default scanner from those attached and also change this selection whenever required. So far I came up with this solution: ManagementObjectSearcher search = new System.Managem...