windows

Building an application with "drawer" in Linux/Mac/Windows

I'd like to build an application with a "drawer" GUI element, like it is all over the place in Mac OS X. Is it possible to do so in Linux/Windows? Is it possible to build it crossplatform? ...

Which video and audio format/codec should I use?

Environment: Windows XP/Vista, VS2008, C#/.NET 2.0, VideoGrabber. Hi All, I'm writing an app which captures cameras input and encodes them into a movie file (including sound). My client suggests I encode the movie using the DivX codec. But it's not installed by default and it's not redistributable: Users would have to download, instal...

Using Boost with Cygwin on Windows

This shoud be a simple problem for users more advanced than I am. :-) How do I use the boost library with cygwin on windows? I am programing with g++ using cygwin on a winxp machine. I need modified Bessel functions of the second order, so I downloaded the latest version of the boost library and installed it in 'c:\cygwin\lib\boost_ 1_...

Detect RPC connection loss from server-side on Windows

Is there any way to check the status of the RPC connection from the server-side? I am looking for a way to detect if the connection from the client is lost, be it client crash or other connectivity issues. ...

asp.net windows authentication

What settings do I need to accomplish the following? IIS6 Server sits on Domain1 Users access from Domain2, eg Domain2\User I want WindowsIdentity ident = WindowsIdentity.GetCurrent(); to return Domain2\User not Domain1\IUSR_SERVER Current Settings I have the authentication in IIS configured as "Integrated Windows Authentication"...

Windows Registry file association menu

I have recently(today) began meddeling with my registry from within Delphi. :) all is working well and my custom file type now opens with my program, but there are 2 issues i can't solve. 1) I wanted the option to "open with" from all file types so i added reg := TRegistry.Create; reg.RootKey := HKEY_CLASSES_ROOT; reg.LazyWrite :...

.NET framework based windows service and COM callbacks (connection points)

Hi! I'm currently developing on application that uses legacy COM-based object. This object resides in standalone executable and have COM connection point defined on it. When I subscribe on this connection point within WinForms application everything is ok - all callbacks received smoothly. When using same code from NET framework based Wi...

Crystal Reports 8.5 network file save

I have a user who suddenly started getting the following error:- “File Save Failed The document could not be saved in J:\XXXX\reports\xxxx.rpt. It has been saved in C:\DOCUME~1\username\LOCALS~1\Temp\crw25.tmp.” This started after the SQL server they use had an IP address update and when the laptop did an XP autoupdate. The updates wer...

How can I modify password expiration in Windows using Python?

How can I modify the password expiration to "never" on Windows XP for a local user with Python? I have the PyWIN and WMI modules on board but have no solution. I managed to query the current settings via WMI(based on Win32_UserAccount class), but how can modify it? ...

LINUX equivalent of the DOS "start" command?

I'm writing a ksh script and I have to run a executable at a separate Command Prompt window. ...

What are known/documented/undocmented methods of the process start monitoring?

I need to monitor and, if it is needed, decline process start in the Windows XP and Vista OS? What are known/documented/undocmented methods? What about known hacks of this methods? (It will be used for the shareware firewall/security software). ...

C++ - How to set file permissions (cross platform)

Hi guys. I am using C++ ofstream to write out a file. I want to set the permissions to be only accessible by the user: 700. In unix; I suppose I can just issue a system("chmod 700 file.txt"); but I need this code to work on windows as well. I can use some windows api; but what is the best c++ cross platform way to do this? ...

WMI Configuration Error on SQL 2005 install

SQL Server 2005 is giving me the following error during the "System Check" portion of the initial install: "The SQL Server Configuration Checker cannot be executed due to WMI configuration on the machine Error:2147749907 (0x80041013)." Machine is a Dell D620 running XP SP2. I found a batch command online that is supposed to fix the...

What screen size is better for end user

I have a SW that the minimal screen size requirement is 1024x768, 800x600 may be too small, 1024x768 would be too big? Maybe something in between? What screen size is better or the best? Thanks. ...

Is there any way of throttling CPU/Memory of a process?

Problem: I have a developers machine (read: fast, lots of memory), but the user has a users machine (read: slow, not very much memory). I can simulate a slow network using Fiddler (http://www.fiddler2.com/fiddler2/) I can look at how CPU is used over time for a process using Process Explorer (http://technet.microsoft.com/en-us/sysintern...

Windows Systems Programming: Can a keystroke be sent to an open application that is not the currently active one?

I'm a bit rusty on my Windows system programming... Is it possible for a program to send a keystroke (I'm guessing by SendMessage() api call) to another application, if the (open) target application does not currently have the focus? If it is possible, does it then make the target application become the active application, or does it s...

How to bring down a socket on a windows machine?

I have a application which I suspects to get into problems because network nodes closes its sockets to various other servers it communicates to. I would like to mimic that behaviour by shutting down one or severel connections that can be seen in netstat. I'm not an expert in networking on OS level, so this question may be stupid, if so d...

Windows Stalls When My Program Uses Swapfile

I am running a user mode program on normal priority. My program is searching an NP problem, and as a result, uses up a lot of memory which eventually ends up in the swap file. Then my mouse freezes up, and it takes forever for task manager to open up and let me end the process. What I want to know is how I can stop my Windows operating...

Execute and Capture one program from another

In win32 programming in C: Whats the best way to execute a win32 console program within another win32 program, and have the program that started the execution capture the output? At the moment I made the program redirect output to a file, but I am sure I must be able to open some sort of pipe? ...

Speeding up Ruby script startup in Windows or Cygwin

I've got a ruby script which takes about 30 seconds to startup. It takes that much because it tries to load all libraries and stuff. When I do "ruby.exe -v" it's instant. I don't want to touch the original ruby script, which is not written by me. What are the tricks to speed this process up? Can I precompile it? Can I precache al...