Hi, we have an old PC that was a bit chock-a-block and very slow. We decided to completely wipe the hard disk and re-install Windows 95 and everything else from scratch.
We successfully re-installed Win95 and now the thing boots up in seconds rather than minutes. Only one problem though..... I...
I'm having difficulties determining the actual ASCII character code for keys pressed. If I press 'h' key the ASCII code should be 104 (lowercase h) but I'm always getting the code 72 which is uppercase 'H'.
Can anyone explain why this is and how do I manipulate it if I can't be sure what case...
I've created a dialog but which I've also manually drawn things to (including a bitmap image). The only problem is, when the dialog is obscured (by another window for example) and then brought back to the front, no updating occurs.
How do I catch the update event in the dialog so I can tell...
Hi, I can draw the shapes and lines, etc OK but I want to know if there's a way I can draw these offscreen and then copy them instantaneously to the screen so the drawing process appears smooth and instant just like drawing a bitmap using BitBlt() function.
As an example, say I want to draw a...
Hi, I'm having trouble assigning keyboard shortcuts and accelerators to a menu I've created.
I've created a menu resource and an accelerator resource. I choose the menu item ID in the accelerator resource and assign a keycode character.
When I choose ClassWizard it detects I have inserted the...
Hi, I'm just about ready to tear my hair out with this. I'm trying to draw a "masked" bitmap using CImageList. I've tried just about every combination and everything I can think of. Also, the text books not very clear nor is Microsfts help. Here's the latest piece of code - if someone...
Hi, I can't answer this off the top of my head but I know where you could probably find the answer straight away. Go to Apple's web site at www.apple.com and click on the developer link. In there somewhere you'll find PDF versions of each of the "Inside Macintosh" technical reference...
Hi, I'm fairly new to programming in Windows. I've had a lot of experience programming on Macs in the past using the Mac Toolbox (equivalent of API). I've noted there are pros and cons to each method: Usign the toolbox (API) you can feel that you have more control over certain things PLUS you...
I don't know of any specific function to do this but you could always test for the first 'space' character using a counter, eg:
char* myString = "Hello world!";
char spaceChr = ' ';
int x = 0;
while (myString[x] && myString[x] != ' ')
{
x++;
}
// The length of...
This may seem like a really silly question but let me explain...
I'm porting a program from Mac to Windows. I can use the strict ANSI routines to read and write a preferences structure to disk no problem. However, not being a seasoned PC user (yet) I don't know where in the system folder all...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.