windows

What exactly is a "Console"?

I am trying to writing a console application. It has its original console, let's name it console A. And I want this application to do the following things via C#: Open another console B in another thread, then get input from A and output it to B; type a command in A, such as dir, and show the output in B; while doing the ab...

Can distutils use a custom .def to expose extra symbols when it compiles a Windows .dll?

I'm abusing distutils to compile an extension module for Python, but rather than using the Python C API I'm using ctypes to talk to the resulting shared library. This works fine in Linux because it automatically exports all symbols in a shared library, but in Windows distutils provides a .def to export only the Python module init functi...

WIndows 2003 Unresponsive on VMWare Server 2.0

I have had an installation of Windows 2003 ColdFusion and MS SQL 2000 running on VMWare Server 2. It has run perfectly for over a year. Now about every other day I have to restart the vmware service because the Windows server is unresponsive and unreachable. There is nothing in the event log on the Windows server and there is nothing of ...

[Python] How can I get the window focused on Windows and re-size it?

I want to get the focused window so I can resize it... how can I do it? ...

Is there a way in Java or a command-line util to obtain a Kerberos ticket for a service using the native SSPI API?

Hi there, I want to implement Single Sign On with Kerberos in Java and have successfully managed to create a ticket for the Service using the ticket from the Windows logon. Unfortunately, I can only create that ticket when the Registry Key "allowtgtsessionkey" is enabled. I am receiving an exception with the message "Identifier doesn't ...

Windows seems to lose track of .NET application

We have a .NET application that we distribute to our users via an MSI installer package. We have C++ applications that run each morning to see if the user's copy of the application is out of date, and if so, we pull down the new MSI and install it. If the application is running, we need to take it down so we can perform the update. Ou...

How do I make a command line program that takes arguments?

How can I make a command line, so I can execute my program on Windows with some parameters... For example: C:/Program/App.exe -safemode ...

How does Windows associate icons to files in explorer shell?

I have both InDesign CS2 and CS3 installed. Both use files with .indd extension. How does Windows know which icon to use? It uses correct icons i.e. CS2 files have cs2 icon and CS3 files have CS3 icon. How does Windows know how to do this? And how can I extract or use this version-detection system in my programs? Edit: Thank you for ...

Can i get any advantage from Athlon 64 3800 writing a concurrent program on Ada?

I'm limited to ObjectAda 7.2 for particular reason. Do i need to install a 64 bit OS (Win 64x in my case) to write and run such programs? ...

Does HDC use alpha channel?

Hello. Is there a way I can determine if an HDC uses alpha channel? I read Question 333559 and Question 685684, but their questions are about BITMAP. Apparently, some HDC has alpha channel (though they may not use it. Call this "Type 1") while others do not ("Type 2"). I know this by doing the following: Given a HDC, Create a compatib...

Enumerate indexes on a Extensible Storage Engine (ESENT) table

Background I'm writing an adapter for ESE to .NET and LINQ in a Google Code project called eselinq. One important function I can't seem to figure out is how to get a list of indexes defined for a table. I need to be able to list available indexes so the LINQ part can automatically determine when indexes can be used. This will allow much...

With an ActiveX control in an browser window container, how do I detect when user changes tab away from activex control

I have an ActiveX control that gets placed in an IE browser container. The control creates another dialog window that has WS_POPUP and WS_LAYERED properties enabled in order to be able to use SetLayeredWindowAttributes(...) function to accomplish color keyed transparency and alpha blending on top of the control. Because the WS_LAYERE...

IronPython WebbrowserControl - form creation issue

Hi, I'm using IronPython 2.6 and a WebbrowserControl on a form called TridentForm. This is used for displaying reports, etc. The main form, LaunchForm, has a button that has an OnClick event handler. This event handler sets some stuff up and then kicks off a BackgroundWorker. The Background worker completes, and in this callback it ins...

Problem with WPF Effects and Video Card

Hi, I'm building a WPF application and this WPF application is having a toolbar-like panel that I use for adding button based on the context. The code of the toolbar is: <Grid x:Name="ToolBarGrid" VerticalAlignment="Top" Height="46"> <Grid.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> ...

Creating MAC CSVs in windows for testing

I have a PHP program that uploads a CSV file and reads through it. We only have PC's in the office, but sometimes our clients have Macs. Is there a way to create a Mac CSV in Windows for testing purposes? ...

Command line switches parsed out of executable's path

Why do Windows programs parse command-line switches out of their executable's path? (The latter being what is commonly known as argv[0].) For example, xcopy: C:\Temp\foo>c:/windows/system32/xcopy.exe /f /r /i /d /y * ..\bar\ Invalid number of parameters C:\Temp\foo>c:\windows\system32\xcopy.exe /f /r /i /d /y * ..\bar\ C:\Temp\foo\bl...

How can I run a py2exe program in windows without the terminal?

Could someone explain to me how can I run my py2exe program, a console program, without the terminal on Windows? I'm trying to make a program that re-sizes windows and it supposed to start with windows, so I want it hide out but still running... ...

Why does my application freeze when I copy a large file?

I have an MFC application. It is basically just copying files from one drive to another. When I'm copying large files (more than 1 Gb) and I click on my window, my application freezes, but the copying proceeds in the background. Someone told me that I have to use a worker thread. I used it, but it still freezes. When I'm copying small fi...

How to use correctly CopyFileEx and CopyProgressRoutine functions?

Hi! I made an application which copies files, usually large files. I want to show the progress of the copying, but i can't it bring to work. Can someone tell me what i am doing wrong? Now it works very interesting. The % goes to 49% than, back to 0, and then to 40, then again back to 0 and then back 35, and this goes on, untill it copi...

Can not connect to mysql when using FastCGI for PHP under Apache on Windows Vista

I configured PHP to use Apache mod_fcgid. PHP is working, but after changes in configuration I am not able to connect to mysql via php. How to fix this? Any ideas, which can hint me, are very desired! To check mysql connection I use the following php code: error_reporting(E_ALL); $link = mysql_connect('127.0.0.1', 'root', 'password_he...