Are there any reasons not to host a COM server in a COM+ application?
The simplest way to transform an in-proc COM server into an out-proc COM server is creating a COM+ application. What are the possible drawbacks of doing it this way? ...
The simplest way to transform an in-proc COM server into an out-proc COM server is creating a COM+ application. What are the possible drawbacks of doing it this way? ...
Is there a way to get Windows audio mixer levels using WMI? For example, to get the current line input level. Ideally this would work on XP and Vista, although I'm aware the audio subsystem is completely different between the two, so I might need a different solution for each. Edit: suggestions in any language will do. ...
How would I get the actual directory path of an IIS application (virtual folder) using WMI? ...
Has anyone got any recommendations for tools/utilities to use in creating/debugging XPath queries for Windows ? ...
Hi, We have an application we're trying to deploy on both 64 bit and 32 bit platforms. Is there a way to put both compiled versions of the code in the same binary, a la Apple and NeXT's fat binaries? Ideally we could ship one .exe that decides upon execution which version of the code to execute. We're targeting Windows XP and later. ...
I'm using Visual Studio 2008 (on Windows 2003 Server / 32 bit) to compile a library and after the DLL is produced the "Custom Build Step" -> "General" executes a command line: regsvr32 /s /c "($TargetPath)" which generates the exception: An unhandled win32 exception occurred in regsvr32.exe [212]. This throws up a debug sessi...
I have a Delphi application that has a document browser as the main form. When the user opens a document, we open an editor window. We want to have each editor with a button on the task bar, as well as the main form. I've applied the normal code to do this (below), but when I click on the main form after using the editor window the edito...
I'm currently using E-TextEditor. This application is trying very hard to be TextMate for Windows, but unfortunately it isn't very stable. Also, it has some serious problems opening minified files (e.g. 70 kB JavaScript files), which is unacceptable IMHO. Notepad2 has no problem at all opening these files, and seems to be very stable as...
Does anyone have a ballpark percentage breakdown of Windows versions currently being used out there? For example, 60% are using Vista, 30% XP etc etc. We are currently building an installer and we need to know what will give us the most coverage. What we are particularly interested in is the prevalance of .NET versions as our applic...
I have built a setup project for deploying my windows forms app. I want to take all of the files that are needed to deploy (setup.exe, whatever.msi, & prerequisites) and package them in a single self extracting archive. Ideally the user would run this exe, it would extract files to temp directory, run setup.exe, and delete the files aft...
I have a keyboard event listener, and I am listening for the number pad key codes (1 through 9) for when number lock is activated; this works fine. However, in my app I also want to allow usage of a modifier key (CTRL) along with the number pad keys. The strange thing is that when holding CTRL, pressing 1 or 3 does not generate any key...
I have a Windows batch file I'm creating, but I have to ECHO a large complex string, so I'm having to put double quotes on either end. The problem is that the quotes are also being ECHOed to the file I'm writing it to. How to you ECHO a string like that and strip the quotes off? UPDATE: I've spent the last two days working on this an...
My interactive 32-bit Windows app (now moving from Delphi [Ent] 2007 to 2009) uses command-line interactions to spawn child processes that do computationally-intensive tasks, which in turn write text files that the GUI parent app parses and analyzes - resulting in an interactive graphical display of the results. I have access to a multi...
The GetModuleFileName() takes a buffer and size of buffer as input; however its return value can only tell us how many characters is has copied, and if the size is not enough (ERROR_INSUFFICIENT_BUFFER). How do I determine the real required buffer size to hold entire file name for GetModuleFileName()? Most people use MAX_PATH but I rem...
I'm reading an xml file and want to make it from a relative directory based on the location of the application, similar to ASP.NET with Server.MapPath or using the tilda. How can you get the relative path in WPF? WORKS: XDocument xmlDoc = XDocument.Load(@"c:\testdata\customers.xml"); DOES NOT WORK: XDocument xmlDoc = XDocument.Load(@"~...
I need to implement SSO between a windows domain and a J2EE web appliction. I've been thinking what the impact of this would be on the web application's session timeout. We have a 2 hour time out. If we implement a seemless SSO, then I think it might become confusing for the user. The SSO will make it appear that the web application i...
How do i change the behaviour of Run Task - inetmgr - so it runs the IIS6 compatible version? ...
I have a Windows app that embeds the IE WebBrowser control, and runs a local webserver to serve content it. The URLs I load in are only meaningful within the application, and not valid after the application exits. They're never visible to the user. They look like this: http://127.0.0.1:1234/something.html where 1234 is a random por...
I'm looking for some alternatives to the following browsers for Windows: Internet Explorer Firefox Chrome Safari Opera In particular ones that are lightweight, can display images and fast like Chrome/Safari 4 or Firefox was pre 1.5 - although it's not a prerequisite. Can anyone feed me a list? ...
Lets say I used a program that read a file and that the program was finished. Now , most likely that parts of the file still reside in the physical ram (lets assume I have huge amount of RAM). Is there any way to know which parts of the file reside in the physical ram? Is there any tool that can do it or maybe a winapi function call? ...