windows

Whats a good language to learn to program Windows applications?

Currently, Im only proficient in php, and would like to learn something new. The only thing I can think of, is the obvious C# and .NET, and I just wanted to know if there are any alternatives. Can it be done in Python? ...

Missing msvcr80.dll

If the C++ runtime msvcr80.dll is missing from a compiled library, is there any way to determine which version was used to create the library or to get it to run on a later version of msvcr80.dll? ...

How to do a HTTP HEAD request from the windows command line?

What's the best way (or tool) on the Windows (Vista) command line to get size and modification time for a file on a remote webserver, without downloading it? ...

Windows Server 2003 Server to Server proxy avoidance configuration

Is it possible to configure Windows Servers that reside on the same domain such that when a web service call is made from a web app using an IP address, the request does not go via a proxy server? The web service is running on one of the servers on the domain. I want to configure IP based security on the server that hosts the web serv...

How can I install package in ActivePerl without Internet connection?

In ActivePerl, "ppm" installs a package from the Internet, "ppm install x.ppd" installs from a ppd file, but most CPAN packages are distributed as .tar.gz How do you supply modules to a machine running ActivePerl that doesn't have an Internet connection? ("make" will probably not be available.) Update: an Internet connection can be us...

How do I use Tkinter with Python on Windows Vista?

I installed Python 2.6 for one user on Windows Vista. Python works okay, but when I try: import Tkinter, it says the side-by-side configuration has errors. I've tried tinkering with the Visual Studio runtime, with no good results. Any ideas on how to resolve this? ...

How can a windows service programmatically restart itself?

I need to write robust code in .NET to enable a windows service (server 2003) to restart itself. What it the best way to so this? Is there some .NET API to do it? ...

How to intercept dll method calls?

How to intercept dll method calls? What are the techniques available for it? Can it be done only in C/C++? How to intercept method calls from all running processes to a given dll? How to intercept method calls from a given processes to a given dll? ...

Ping fails but http link works

In one of the system (Windows), if I ping to a particular public forum site, [lets say testsite.com here], then I get a request timed out message. However, if I just put that site address in the browser (used IE6, but its not specific) with http://, then the link works fine and the browser goes to the web page. What is it that the browse...

What is the best way on python 2.3 for windows to execute a program like ghostscript with multiple arguments and spaces in paths?

Surely there is some kind of abstraction that allows for this? This is essentially the command cmd = self._ghostscriptPath + 'gswin32c -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r196X204 -sPAPERSIZE=a4 -sOutputFile="' + tifDest + " " + pdfSource + '"' os.popen(cmd) this way looks really dirty to me, there must be some ...

How can I access netstat-like Ethernet statistics from a Windows program

Hi, How can I access Ethernet statistics from C/C++ code like netstat -e? Interface Statistics Received Sent Bytes 21010071 15425579 Unicast packets 95512 94166 Non-unicast packets 12510 7 Discards 0 ...

Sending a message to the Windows GUI Thread

I've noticed that when you create a web service object (inheriting from SoapHttpClientProtocol) and you use the Async method, it makes the callback on the Windows GUI thread. Does anyone know how this works? How can I achieve the same thing. I figure this will save me having to check for InvokeRequired in my GUI forms if I am sure th...

How can I specify a font for a window created through CreateWindow?

I'm creating window using pure Win32 API (RegisterClass and CreateWindow functions). How can I specify a font for the window instead of system defined one? ...

How do I programmatically access the target path of a windows symbolic link?

Windows 6 (Vista and Server 2008) support proper symbolic links, which can be created via the CreateSymbolicLink function. But there doesn't appear to be a corresponding function for interrogating a symbolic link to obtain the path of the link's target. I have found out that symbolic links are an implementation of reparse points, and so...

Volume Control Number of Channels XP different than Vista

When I run this code: MIXERLINE MixerLine; memset( &MixerLine, 0, sizeof(MIXERLINE) ); MixerLine.cbStruct = sizeof(MIXERLINE); MixerLine.dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT; mmResult = mixerGetLineInfo( (HMIXEROBJ)m_dwMixerHandle, &MixerLine, MIXER_GETLINEINFOF_COMPONENTTYPE ); Under XP MixerLine.cChannels comes back...

How do you diagnose network issues on Windows?

I often run into problems where I can't get something to connect to something else. I usually forget to check something obvious. Can you help with: A tip/technique for diagnosing a connection issue The name of a tool or application that can help (and the situation in which it's useful) I know the question is a little non-specific, bu...

Winforms issue - Error creating window handle

We are seeing this error in a winforms application. Can anyone help on why you would see this error and more inportantly how to fix it or avoid it happening. System.ComponentModel.Win32Exception: Error creating window handle. at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp) at System.Windows.Forms.Control.Create...

Notepad replacement for viewing very large text files

I have a program that creates daily log files that are 30-60MBs in size. I often need to open these files and search for various events. Notepad.exe takes a very long time to open a file that large. I've tried various shareware programs, some are better than notepad, but they all take a while to load these log files. I'm guessing part of...

How to build a CD ISO image file from the windows command line?

In an effort to satisfy "The Joel Test" question #2 "Can you make a build in one step?", I'm trying to complete a release candidate build script with the creation of a CD iso from the collection of files gathered and generated by the installer creator. There seem to be many good tools (many free) out there that will create ISOs, but I n...

How do you configure Apache on Windows for SSL?

Apache just fails to start with NO error message when we try to reboot it after enabling the code for the ssl module. NOTE: I was able to use OpenSSL to generate a request and have a legit wildcard certificate in place and referenced in the httpd.conf ...