windows

Integrating a non-ASP.NET application with IIS?

Basically I want to integrate an application written in C# with IIS, and this application is not created with ASP.NET but has the ability to output HTML - so what I'm after is hooking into IIS somehow and catching all requests to a "Web Site" (IIS-concept) and allowing my custom application to handle them. I honestly have no idea where ...

Registration Free (Regfree) COM

We are using a COM Object automation model to make our application available to our customers. They are using for the most part python to access our applicaton interface. As we want to be able to install (not yet run, that's another issue) different versions of the application, we are changing our COM components to be regfree. But tha...

How can I decrypt a cipher from the middle?

I have to encrypt the output file in A application, then decrypt it in B application, but I found there are some limitations with MS encryption, if I encrypt a 1000 bytes buffer and then want to decrypt start for different position with different size in B application, the return values are error. Is there any encryption can meet my requ...

Windows shortcuts without a path

Hi all 'Regular' windows application shortcuts have a target which is a path to an executable file. This path is visible (and editable) in the shortcut's properties dialog. But many shortcuts have no such path, only a (read only) application name is displayed. All the MS Office programs, for example, have such shortcuts. How do these ...

CreateThread vs fork()

Do we have any sort of relationship between fork() and CreateThread? Is there anything that CreateThread internally calls fork()? ...

Environment variable to force .NET applications to run as 32bit

I've been told there is an environment variable you can set to force .NET applications to run as 32bit applications on x64 versions of Windows. Do you know what it is, or know of a reference on it? I'm afraid my google-fu has failed me today (or it doesn't exist). I'm using Resolver One (a .NET spreadsheet) and want to access some 32bit...

Automatically create new user and silently use for Windows service installation using Visual Studio Installer

I have a Windows service that is installed using the Visual Studio (2008) installer. I wanted to avoid running as System, so I have been manually 1) creating a new Windows account on the computer and 2) entering in the computername\username and password during installation. I would like to have this require little user intervention, ...

Installing a .inf file using a windows batch file

Hi, When you right click on a .inf file you have an option to "Install". I want to install a .inf file from the command line using a batch file. What is the "right" way to do this? Thanks! [edit] I should clarify that I am trying to run this on Windows XP (and not Vista). Though I appriciate (and up-voted) the below answer mentioning ...

Progammatically restart windows to make system logs think user logged out.

I'm hoping to make a quick script to log-out/restart windows at a set time. For example, start a script to "Restart windows in ten minutes". For this implementation I don't need it to run in the background or pop=up on its own. I just want to set the script and walk away knowing that the computer will log-out/restart at a set time. Why...

svn/ssh question in windows

I am trying to do a command line svn update on my windows machine (to use in a batch file), and I want it to emulate what my settings are in the Tortoise SVN GUI. In the tortoise settings, we have to specify the following in the SSH client... C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe -l usernamehere -pw mypassword -i C:\Users...

How to make a valid Windows filename from an arbitrary string?

I've got a string like "Foo: Bar" that I want to use as a filename, but on Windows the ":" char isn't allowed in a filename. Is there a method that will turn "Foo: Bar" into something like "Foo- Bar"? ...

Compiling C++ program on Windows XP

I have a problem running a simple Hello-world program in C++ on my Windows XP. I have written a post here: Using the g++ C++ compiler from cygwin where I stated the problem and I received many helpful replies, which solved some things. However, I still cannot run my hello-world program. Please, have a look at the post, I have inclu...

What does registering a DLL do?

I know how to register dlls but I've never really been sure why I'm doing it or under what conditions a dll must be registered. Could somebody explain or point me to some documentation? ...

What are data breakpoints?

I just came to know that there are data breakpoints. I have worked for the last 5 years in C++ using Visual Studio, and I have never used data breakpoints. Can someone throw some light on what data breakpoints are, when to use them and how to use them with VS? As per my understanding we can set a data breakpoint when we want to check f...

Restoring window focus back to previous owner

I've got an application that sits in the system tray, which when double clicked on opens a window, fairly standard; however, when you close the window I'd like the window that was focussed before mine was opened to be given back focus. If I pop my window up by a keyboard shortcut, I'm able to restore the previous focus on close by using...

Free JPEG2000 Library or SDK for de-compression

I have written code to compress and decompress image files using a proprietary SDK for transmission from an aircraft via satellite. Unfortunately a license must be purchased for decompression as well as compression. Until now my applications have been mostly used in-house so I can keep track of the licenses and distribution. Now I need...

Password Protect IIS directory

Hi, I'm looking for a way to password protect a directory in IIS. I'm aware that the standard answer to this is to create a windows user account for this directory, then give that user read permissions on the directory... but my concern is that by creating a windows user, won't that give them permissions to do stuff like login to the com...

How to move the window default scrollbar above the status bar?

Every program does have the scrollbar above the status bar. Right? Well, not mine. When i tried to set up my own scroll bars in my program, i suprisingly made them work! So did i manage to get the status bar work too! Hurray! :-) ...But the status bar is ABOVE the scroll bar, when it should be UNDER the scroll bar. How do i move the scr...

git without bash/cygwin

I'm on a vista laptop, trying out git for the first time. I installed the msysgit version, and it installed a "git bash" shortcut on the desktop. When I run it, it seems to run in a cygwin kind of box, where C:\ is /c/ Is it safe to use git from the windows command line where /c/ is C:\? does that create any conflict with the way git e...

msysgit on windows -- what should I be aware of, if any?

This is related to another question I asked recently. When installing msysgit, the installer presents 3 options related to system path: Never change windows environment. With this option, you have to use the "bash" shell to work with git. Add the git\bin directory to the PATH environment variable, but without overriding some builtin w...