Tech Support > Microsoft Windows > Development Resources
InterlockedIncrement
Posted on April 14th, 2004 | 4 Comments

Is it true that the Interlocked functions only have use on 16 bit windows because a 32 bit increment would take more than one instruction?

Need suggestions for making an extended type of MessageBox
Posted on April 14th, 2004 | 1 Comments

I'm building a checkers demo currently under MSVS 6 (console app) with openGL doing the graphics. I have been using the windows MessageBox exclusively for outputting various information such as...

Heeelp!!! How to determine the cluster size on WinNT/2k/XP ???
Posted on April 14th, 2004 | 2 Comments

Hi! I need Your help. I implement a Python NT service and I need to determine (on WinXP/2k/XP) a cluster size of the particular partition (to find out how much space a file will occupy on that...

DirectInput in a MFC Project
Posted on April 14th, 2004 | 0 Comments

I'm having trouble implementing DirectInput into a MFC project. I coded a simple app without MFC, only using the Win API and it worked fine. The app only registers a DirectInput mouse device and...

MessageProc and C++
Posted on April 14th, 2004 | 9 Comments

Hi, I'm trying to implement a hook message procedure as a member of a class. The program is written in C++/Platform SDK. MessageProc(nCode,wParam,lParam); is supposed to be declared as a static...

Console app
Posted on April 14th, 2004 | 1 Comments

How do you get text to blink in a console app? In my old 16-bit DOS code, you just added 128 to the color value before calling textattr(). I've tried that when I call SetConsoleTextAttribute() and...

Two groups of radio buttons in a dialog
Posted on April 14th, 2004 | 3 Comments

Hello, in my dialog I want to have two independent groups of radio buttons (meaning each group of radio buttons should have its own selection). I created two group controls in the resource editor and...

Is there a way to shut off the LNK4001 warning?
Posted on April 14th, 2004 | 2 Comments

Hi all, Is there a way to shut off the LNK4001 warning? --- LINK : warning LNK4001: no object files specified; libraries used --- TIA,

Re: Simple question, "what's a Handle in VC++"
Posted on April 14th, 2004 | 0 Comments

To All, I've found a very complete answer to this question. A Handle is actually just a numeric value representing uniquely an Object in Windows. So, I would say it's just like an object related...

SetThreadPriority
Posted on April 14th, 2004 | 1 Comments

Why should SetThreadPriority() be called to raise the priority of the current thread before calling QueryPerformanceCounter()? Thanks!

Windows console and arrow keys
Posted on April 14th, 2004 | 0 Comments

Hi Up and down arrow keys are useful in the window console to execute again previous commands. Is it possible to put something in this 'cache' programmatically ? I mean that after my command, if user...

Is service started during startup or later?
Posted on April 14th, 2004 | 1 Comments

Subject title says it all, but I'll explain to make it clear. If I have a service that is started when NT starts (or when you logon, whichever), is there a way to determine if the service was...

How to create a window without a system menu, but with a close button (without using WS_EX_TOOLWINDOW )
Posted on April 13th, 2004 | 0 Comments

How do you create a window (via CreateWindow or CreateWindowEx) with a close button but without a system menu? WS_EX_TOOLWINDOW almost gives me what I want. However, this style makes the window...

auto setup printer queue using Zeroconf (Rendezvous)
Posted on April 13th, 2004 | 0 Comments

Hey all. I'm trying to automatically setup a windows printer queue using the information returned in Zeroconf (Rendezvous) enabled printers. Basically, a zeroconf enabled printer can tell me if...

Checking radio buttons
Posted on April 13th, 2004 | 1 Comments

Hello, in my program written in C++ using pure Win32 I have a dialog box with two groups of radio buttons. Under WM_INITDIALOG I check a button in each group like...

wininet
Posted on April 13th, 2004 | 0 Comments

I am a c++ beginner and have the following problem: I wrote a simple internet application using Dev-C++ (on Win XP) and three ininet.dll functions, something like this: #include <wininet.h> #include...

Position of Message Box
Posted on April 13th, 2004 | 5 Comments

If I use AfxMessageBox("Thats the text",MB_OK); it always appears automatically in position centered to the window below. Thats what user normaly wants, but in this case, some relevant information...

ActiveX and the Web: The Inside Story
Posted on April 13th, 2004 | 2 Comments

Am I right in believing thusly: I am a financial analyst who's looking for the current foreign exchange rate for various currencies every second moment. For this I always telephone Phil de Lucre,...

Dynamically resizing toolbar separator button
Posted on April 13th, 2004 | 0 Comments

I'm using a separator button to group buttons on a toolbar (TBSTYLE_SEP). How can you change the width of this button when a WM_SIZE message arrives? I want to keep the button layout...

Pull TxD high in serial communication VC++
Posted on April 13th, 2004 | 0 Comments

Hi, after studying the documentation in MS Visual C++ I still do not understand how to pull up the TxD line (i.e. pin3 in a 9 pin RS232) in the serial Com-port. In old times this has been done by...