windows

How to make a hotfix deployment using Visual Studio?

Let's say that you have a product that is written in Visual Studio and you provide your customers and users with an installer for that product. Then, you have some minor changes that you want to deploy to your users; you don't want your users to have to go through an uninstall process, backing up the configuration and then reinstalling ...

Most effective way to collect wifi bssid and rssi data across many windows platforms

I'm trying to collect wifi Bssid and Rssi information on Windows, and am looking for the most reliable way to do that across as many versions of Windows as possible. With Vista it's easy using Win32 calls with the Wireless LAN API. That API exists on XP SP2 (sometimes) and SP3, but as far as I can tell it doesn't support gathering Bssid ...

Skype & Terminal Services information exchange?

We have sales reps who access our 'system' via terminal services. In our system we would like to enable clicking the number of a client and launching skype on their local machine not in the terminal services session. We see two potential ways of this working... Clicking on a URL ( eg skype:01234569?call ) and it works locally but we ...

C++ testing framework: recommendation sought

I'm looking for a "quick and dirty" C++ testing framework I can use on my Windows/Visual Studio box. It's just me developing, so it doesn't have to be enterprise class software. Staring at a list of testing frameworks, I am somewhat befuddled... http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#C.2B.2B ...

Best way to design for localization of strings

This is kinda a general question, open for opinions. I've been trying to come up with a good way to design for localization of string resources for a Windows MFC application and related utilities. My wishlist is: Must preserve string literals in code (as opposed to replacing with macro #define resource ID's), so that the messages are s...

Virtual Desktop Software - Best practices

I've tried various virtual desktops and they seem to do what they advertise. However, my problem is coming up with a good set of rules, like which set of windows should I keep on each desktop. I typically have programs like these running: VS.NET, Explorer, Browser/mail, Task manager, command windows etc. So the question is: How do you...

Building MFC Automation example (to access Excel using OLE automation). Can't compile

I'm trying to build the example described at http://support.microsoft.com/kb/178749/EN-US/ in order to build an application that programatically accesses Excel using Automation. I have Visual C++ 2005/Visual Studio 2005. Some of the instructions don't exactly match up (classwizard, mostly), but the general idea seems to be the same. ...

SVN client on windows without administrator rights

I am trying to install an svn client on a friend's work windows laptop without much success. It seems that everyone is using TortoiseSVN nowadays, which unfortunately doesn't install without administrator access. Is there any way around it or another client I can try? I don't need anything fancy - just basic http/https, but a GUI is ver...

How do I listen/identify when a program runs in Windows using C++?

Specifically, I want to listen to when programs are run and record information such as: timestamp, executable, windows name and user. ...

DllMain in an exe?

Is it possible to receive DllMain like notifications about thread attach/detach in stand-alone exe without using any extra dlls? Edit: This is just a theoretical question that has to do with some testing I'm doing. not a real life situation. ...

Automate file copying from Windows command line

Say you have 100 directories and for each directory you have a file named .pdf stored somewhere else. If you want to move/copy each file into the directory with the same name, can this be done on the Windows command line? ...

Does a user need admin rights to install Flash player?

Will users who do not have admin rights on their computers be able to upgrade to new Flash player version by themselves? This would be interesting to know for: Windows 98 Windows XP/2000/Vista Macs Unix/Linux ...

How to add custom protocol to Vista "Set Associations" list?

I've registered custom protocol "xyz" on Windows Vista: HKEY_CLASSES_ROOT\xyz = "URL:Extensions Protocol" It works OK with my application. Open "Control Panel -> Programs -> Default Programs -> Set Associations", scroll the list to the end. Here is the list of protocols. I would like to see my custom protocol associated with my applica...

How to copy file from linux to windows server using c

I have to create a C program which will run on Linux server. It will take information from Oracle database, create a local file and then copy that file to Windows server. I know how to create a local file on Linux server. But what is the way to copy it to windows server from C? ...

Virtual List Controls (MFC)

I am using a List Control to display a representation of elements within a vector. When the list is clicked on another control shows information about that element. The index of the element is currently determined by its index in the control, however if I wish to sort or filter the results this will no longer work. I have been told that...

Looking for a windows equivalent of the unix tail command

I'm looking for the equivalent of the unix 'tail' command that will allow me to watch the output of a log file while it is being written to. ...

Self Signed Certificate in Windows without makecert?

We have a shrink wrap type Windows server application where we need to create a self signed certificate on the server to be used by some WCF web services. From our searches on the web, it appears that the makecert utility in the PlatformSDK from Microsoft cannot be distributed with our application, so we're looking for alternatives. ...

Detecting a Process is already running in windows using C# .net

How do I detect if a process is already running under the Windows Task Manager? I'd like to get the memory and cpu usage as well. ...

Why does GCC-Windows depend on cygwin?

I'm not a C++ developer, but I've always been interested in compilers, and I'm interested in tinkering with some of the GCC stuff (particularly LLVM). On Windows, GCC requires a POSIX-emulation layer (cygwin or MinGW) to run correctly. Why is that? I use lots of other software, written in C++ and cross-compiled for different platforms...

Prevent views stealing focus/setting focus to a view

I have an MFC sdi app that uses a splitter window to contain a tree control alongside the main view showing the data. When the user selects something in the tree, that view keeps focus until the user deliberately clicks in the main data window. This means that any toolbar buttons associated with the main view are disabled. Is there a...