windows

Why ctrl-c sometimes doesn't shutdown Tomcat

I'm running Apache Tomcat on Windows, and I've noticed that sometimes CTRL-C starts an orderly shutdown, and sometimes it won't have any effect. Why is that? (Coincidently, CTRL-Break will print general statistics) ...

Specifying Short Names in WiX

I am using the WiX installer to install an application, and I need to set an environment variable to the CommonAppDataFolder location for the purposes of a temporary area to store files. This typically points to C:\Documents and Settings\All Users\Application Data. The problem is that the application cannot recognize long file names. ...

java, convert windows path to dos 8.3 format.

anyone knows any java utility method that would convert windows paths to DOS 8.3 format ? thanks ...

Run Java Application as a Service

I would like to run a Java application as a service. Unfortunately, I am limited in that I can't use something like the Java Service Wrapper (which does appear to be an excellent tool). Is there any way of running an executable JAR, as a service, without relying on external applications? I currently have the service installed, but it ...

.NET Windows Service - multiple services in one project

Currently, I have a project with a Windows Service. I also created another "Setup Project" which installs the Windows Service. My question is this: Can I add another Windows Service to the same project? (This way, I can use 1 installer, and share some code between the services more easily.) If I can, does that mean when one service e...

How do I create a manifest for a windows installer?

We have an installer for our application that must be downloaded and run with administrator privileges, like many other installers. However, the installer isn't named "setup.exe", so Windows doesn't automatically detect it as requiring elevation to run. Changing the installer name to make things elevate properly sounds pretty messy, fra...

How to maximize command prompt in windows xp

Hi, I am on windows xp, Is there any way to maximize my cmd.exe window? I am doing some mysql and it is so difficult to read results of my queries in such a small window. Why maximize does not really maximizes it? Is there a way for maximizing? Or maybe an alternative command prompt I can use? thanks ...

GetQueuedCompletionStatus stops reading a serial port

I have a device that generates messages over a serial port. When I reboot the device, the IO Completion Port stops reading bytes. The code is calls GetQueuedCompletionStatus(): BOOL bRet = GetQueuedCompletionStatus( m_hCompletionPort, &dwBytesTransferred, &dwCompletionKey, &pOverlapped, INFIN...

Read from a growing file in C#?

Hi, In C#/.NET (on Windows) is there a way to read a "growing" file using a file stream? The length of the file will be very small when the filestream is opened, but the file will be being written to by another thread. If/when the filestream "catches up" to the other thread (i.e. when Read() returns 0 bytes read), I want to pause to all...

Programatically Add Exception to windows vista firewall .

Hi Can you please tell me, is there any way to programatically add an .exe file to the exception list for the Windows Vista firewall to allow it to run normally? I'm using VC++. ...

C# Windows Forms, Controls on tabs

Hi, I have a tabcontrol on my form, on each tab I have a control, each of these controls are similar i.e. they each have a table and a couple buttons and each control is set to Dock Fill When I view them contols in design view something weird is happening, the first tab that is viewable has it controls placed as you would expect and al...

How to open XML file with Excel?

I want to develop a small tool which for open XML file and launch Excel automatically. The benefit for user who could save the excel file to .xls format very conveniently. My Dev IDE: Windows XP pro & Visual Studio 2005. The tool will running at Windows 2000 & Excel 2000. and there is no .net framework installed. That means i can't c...

Opening a simple OleDB connection throws OutOfMemory Exception?

Hi, I am having troubles with one of our applications. It's .NET 3.5 32 bits process. Upon startup we open a .mdb to read a few "metadata" values. This works on hundreds of systems, but we have a customer with a TabletPC and problems. The operating system is Windows XP Tablet PC SP3, 32 bits, bla bla. Nothing unusual. It has .NET 3.5 (f...

Is file buffering by OS harmful?

I wrote a download library for my colleague. It writes downloaded data to files. My colleagues found that the file stays small for a long time, even if 100 Mb data have been downloaded. So they suggest that I should call flush() after every write() so it will not take up memory to buffer these data. But I don't think 100 Mb of virtual...

Windows Desktop Search

Hi I would like to know if it's possible to use "windows desktop search - 4" to Search pdf's and return pages/page numbers in that pdf's. ...

Application Updater

Hi, does anybody know a good, flexible and free component for automatic application updating beside ClickOnce (not necessarily .NET only)? In the past there was the Updater Application Block from Microsoft. But as far as i know its not maintained anymore. What Technology are you using to keep you applications up to date? ...

Getting rid of non ansi outer joins "=*" "*=" -- how do I setup a windows search

Good morning, We are considering the possibility of upgrading from MSFT SQL 2000 to 2005. I am trying to run a windows file search on our code base, but it looks like searching for '*=' doesn't work right off the bat. Perhaps the * is some kind of wildcard? Any help is appreciated, -Alan. ...

How to use doublebuffer in listview in windowsmobile

Hi.. does any one please tell me how to use double-buffer in windows-mobile listview Thanks Grabi8 ...

Python - Windows Shutdown Events

When using win32api.setConsoleCtrlHandler(), I'm able to receive shutdown/logoff/etc events from Windows, and cleanly shut down my app. However, this only works when running the app under python.exe (i.e., it has a console window), but not under pythonw.exe (no console window). Is there an equivalent way in Windows to receive these eve...

Which Windows (C++) screen capture libraries fit my requirements?

I'm ready to outsource the screen capture functionality of our application, because it's not our core business and I've spent too much time trying to get our code to do all the things I need. Time for a specialist, I think. My requirements, in decreasing order of importance, are below. Does anyone have experience with any commercial or f...