Hello,
I know how to set up a local webserver using xampp on windows... I enter my alias and target on the hosts file (c:\windows\system32\drivers\etc\hosts) and then add a respective entry on my apache vhosts config file. This way, assuming that my webserver is listening to port 80, I can for example map example.com to my local webserv...
I have an HBITMAP containing alpha channel data. I can successfully render this using the ::AlphaBlend GDI function.
However, when I call the ::GetPixel GDI function, I never get back values with an alpha component. The documentation does say that it returns the RGB value of the pixel.
Is there a way to retrieve the alpha channel valu...
I am creating a keyboard hook, wherein KeyboardProc is a static member of a class CWidget.
class CWidget
{
static LRESULT CALLBACK KeyboardProc(int code, WPARAM wParam, LPARAM lParam );
};
I want to call the non-static members of CWidget inside the CWidget::KeyboardProc.
What is the best way to do it?
KeyboardProc does not hav...
How can I list all the local users configured on a windows machine (Win2000+) using java.
I would prefer doing this with ought using any java 2 com bridges, or any other third party library if possible.
Preferable some native method to Java.
...
I'm looking for an explanation or good free online resources about the organization of memory and memory management in Windows systems.
...
I have a ASP.NET web application that I use to display MS reports using a Report Viewer.
The reports are sitting on a remote server. I need to use windows authentication to connect to the reporting services, as I need to display the reports based on who is logged on the web application.
I've searched on the net for a solution,but couldn...
I would like to document the file format of regedit utility, so data can be merged into the registry.
From the command-line you can (silently) merge data from a batch file like this:
regedit /s file.reg
Exporting from a subkey goes like this:
regedit /e file.reg "HKEY_XX\key"
...
How can I get notifications about what is the currect active window and when this changes without polling GetActiveWindow or using global hooks?
I don't like polling, and I'm working in C# and global hooks don't work (mostly).
...
I often get a problem with Windows Installer trying to uninstall a package, but it complains that
The feature you are trying to use is on a network resource that is unavailable.
Is there a known means of uninstalling such packages when the original MSI is simply not available?
...
When the command prompt opens and then just closes really fast (because there isn't a pause line) is there a way to see what it just showed you?
...
So I don't do a lot of Win32 calls, but recently I have had to use the GetFileTime and SetFileTime functions. Now although Win98 and below are not officially supported in my program people do use it there anyway, and I try to keep it as usable as possible. I was just wondering what will happen as those functions do not exist in pre-NT sy...
Hi,
Whenever I download an update to firefox and apply it Kaspersky Antivirus alerts me that the file FIREFOX.EXE has been modified. I want to know how do they do it. Is it possible to do a simple program to demonstrate this trick. Like the executable would initially display "Hello, World!" on the prompt and when I replace/modify the sa...
I am running a program and want to see what its return code is (since it returns different codes based on different errors).
I know in Bash I can do this by running
echo $?
What do I do when using cmd.exe on Windows?
...
The mod_perl2 and Perl 5.10 two are playing nicely together, but I can't seem to find any positive information about Devel::Cover working with mod_perl2 under Win32. I'm currently using ActiveState's Perl 5.10, but I would be open to switching to Strawberry Perl if it meant this combination could work.
Also, Devel::Cover PPDs don't see...
I have an application which is .NET 2.0, running on Windows XP Professional. This app uses the Serial Port to communicate with some custom devices.
For some reason, a few of our custom built PCs have an issue with the Serial Port, where it will stop functioning after a few weeks of use. Other that auto-reboots, which won't work in my ...
My emacs (on Windows) always launches with a set size, which is rather small, and if I resize it, it's not "remembered" at next start-up.
I've been playing with the following:
(set-frame-position (selected-frame) 200 2) ; pixels x y from upper left
(set-frame-size (selected-frame) 110 58) ; rows and columns w h
which totally works ...
I have several Google calendars that I'd like to merge and place on my windows desktop using Samurize. I've tried using Samurize's Page Scraper plugin, but it doesn't appear to be up to the task.
I can get Samurize to run a script and place it's output on the desktop, but I'm not sure
what the best tools are to do this.
All the URLs I...
In a .net 2.0 C# application I use the following code to detect the operating system platform:
string os_platform = System.Environment.OSVersion.Platform.ToString();
This returns "Win32NT". The problem is that it returns "Win32NT" even when running on Windows Vista 64bit.
Is there any other method to know the correct platform (32 or ...
I've found the following code from here "http://www.boyet.com/Articles/CodeFromInternet.html".
It returns the speed of the CPU in GHz but works only on 32bit Windows.
using System;
using System.Management;
namespace CpuSpeed
{
class Program
{
static double? GetCpuSpeedInGHz()
{
double? GHz = null;
...
Is there in Windows API or in MFC any analog to atoh() function?
atoh() converts a string containing a hexadecimal number into an unsigned number like
unsigned x = atoh("A");
and x = 10 after the operation.
In Windows I have a CString, containing "A". How can I convert it to int?
...