windows

Why should i use WinDbg?

Possible Duplicate: Why use windbg vs the Visual Studio (VS) debugger ? I Use Visual Studio 2005 for C++ development. What does WinDbg give me, that Visual Studio doesn't? I know its good for client installations and remote debugging, as it's easy to install. Other reasons? What are your favorite functions/commands? ...

Are there any tools to read the contents of dump files created during BSoD in Windows?

Are there any tools that would help us read the contents in a Memory Dump files that is created when there is a BSoD? ...

Windows forms: ShowDialog - dialog doesn't show up

I am running an external process from an outlook plugin - and it doesn't show the dialog. I am using ShowDialog without parameters. Any ideas how to show the dialog ? The process doesn't have any form - i just want to show a dialog with some selections. If I call "MessageBox.Show" before, the dialog is shown - otherwise not. I guess ...

Platform ID in SERVER_INFO_101 Structure

Is there more precise documentation what PLATFORM_ID_DOS, PLATFORM_ID_OS2, PLATFORM_ID_NT, PLATFORM_ID_OSF, or PLATFORM_ID_VMS mean? The constants are defined in the lmcons.h file. Values can be got within the SERVER_INFO_100, SERVER_INFO_101, or SERVER_INFO_102 struct. Obviously PLATFORM_ID_NT means an NT-based platform. What's about...

What's the best way of getting the results of GetLastError() after a WinAPI call into a nice char* ?

I'm writing a DLL which a java program uses to call the WinAPI in various ways. I want to throw proper exceptions back to java but I need a nicely formated WinAPI error not just the int that get's returned from GetLastError(). I'm sure there's a nice way to do it. ...

Why was wchar_t invented?

Why is wchar_t needed? How is it superior to short (or __int16 or whatever)? (If it matters: I live in Windows world. I don't know what Linux does to support Unicode.) ...

Redirecting audio output to line in.

Hi, i want to stream what i hear in my speakers to my mic. So i can play music through vent. I have tried all other methods but im using windows 7 and non of the programs work :( I was wondering if its not to hard to just make a program in C# that takes the Audio out stream going to my speakers and redirects it into the line in plug? ...

how to replace names recursively via windows batch operation

Hi all, I want to process a batch operation in a big directory. Actually I have the batch script for that process. But here , I have a problem. Some of the directory names, files names contain " " (space character). So in the batch operation this names passed as 2 arguments . and those lines will not work. So Iwant to rename " " with "_...

How to Manually create an Apache Windows Service

Hello, I accidentally removed my Apache windows service trying to install another Apache web server. Does anyone know how I can create another Apache windows service from cmd? I tried "sc create ..." but I am missing a script on the end like -k start? Not sure what I need for the end of it... I am running Apache 2.2 Thank you ...

Windows Media Player - Enable play button without OpenFileDialog

Hi, this is probably pretty simple, but I've noticed that when trying to start the Windows Media Player (AxWMPLib), it takes the "player.url = path", and only then does the player's Play-button get activated. Thing is, I want to play sound files taken from the URL of a column in a database. And when clicking on that row, the mediaplayer ...

Windows: Changing the DLL search order for an Exe

Hi, I have a C++ Exe in an application directory which contains the DLLs used by it. Now, for some testing purpose I need to modify an existing DLL and use that instead of the original one. But in order to not modify the existing installation I cannot backup the existing DLL and replace it with the modified one or move the existing one ...

Running Python from the Windows Command Line

How do I run a Python file from the Windows Command Line (cmd.exe) so that I won't have to re-enter the code each time? ...

Windows Standard File Locations

Could somebody point me to a document which lists all the standard file locations in windows and what one should and shouldn't use them for. Something like User Application Data -> %USERDIR%/AppData/Local/%VENDOR%/%APPLICATION% and so forth. ...

Are there any problems with this symlink traversal code for Windows?

In my efforts to resolve Python issue 1578269, I've been working on trying to resolve the target of a symlink in a robust way. I started by using GetFinalPathNameByHandle as recommended here on stackoverflow and by Microsoft, but it turns out that technique fails when the target is in use (such as with pagefile.sys). So, I've written a ...

Why does the Windows registry exist?

Hi, this is more OS architecture question than programming directly, but still. Why was the Windows registry created as a completely separate subsystem for storing system/application settings? In *nix OS'es there is /etc directory which is perfectly understandable, as filesystem is a natural hierarchical way for storing settings, while...

Retrieve SD Card serial number on Windows XP/Vista/7?

There is a manufacturer's serial number on SD cards, and there are a number of pages on the 'net that describe how to retrieve it on various mobile devices (including this one). But I need to retrieve it under desktop versions of Windows, and the code that works for mobile versions of Windows doesn't seem to translate. The question: how...

Transparent child control

Hello all, I'm writing a control that may have some of its parts transparent or semitransparent. Basically this control shows a png image (with alpha channel). The control's parent window has some graphics on it. Therefore, to make the png control render correctly it needs to get image of what the parent window would draw beneath it. Par...

JMeter command line - linux version vs windows version

Hi folks, I'm been using JMeter on a linux box, under the command line for a little bit. works fine. Today, I tried it on a windows box (new client, etc) and it does work but the OUTPUT is waay different, in the console window. The linux version dumps to the console a running commentary of what is going on -> Min/Max/Throughput/Error ...

function implementation in : file.h vs in file.cxx

Hi My question is very simple , I am working on a old legacy code where most of function are implemented in header file only. As per my knowledge, Compiler convert function implemented in header into inline functions. I wanted to know if i move these implementation into .cxx file , What will be benefits ? Thanks in Advance ~SS ...

how to change the name of the tabcontrol

i am using tabcontrol in windows application using c# language.i want to change the title of the tabs they r like tabpage1, tabpage2 i want to change them, help me please ...