Presuming you are using the resouce editing tools to build your dialog, then every time you create an object on the form a #define statement will be added to resources.h which defines the name you gave your object (generally something like "IDC_NAME_COMBOBOX") and assigns it a unique value...
The four control lines are not meant to be "read" in the sense that data lines are. Some of them are meant to be read by the port driver and some written to. There are many places on the web that detail how to program parallel ports; see, for instance...
I have a problem trying to generate a custom == operator for a class I've created, and cannot see what the problem is. The relevant code is in the following snippets:
Color.h:
class Color {
public:
Color (); // constructors
Color (COLORREF);
Color (int)...
I have found (and used) lots of information on setting the dialog background color. What I want to do is *get* the color so I can use it to background some text. I understand that that color is editable by the user, and I want to match what they have chosen.
I'm using MSVC++ .NET (2001). Everything was going along swimmingly when all of a sudden I got an error in my application and it "had to exit". I clicked on Retry (meaning Debug), and the app simply vanished, as if I'd clicked on Close. It's now happened with several of the apps that I work...
xwb, thanks for the response. I'll consider doing option 1.
If I understand you correctly, option 2 is telling me that what is causing the redrawing to happen repeatedly is the fact that I'm trying to debug on the same machine I'm running the app on. I'm not actually using the MessageBox to...
It sounds to me like you have runtime library problems here. I'm using MSVC .NET 2001, and if you right click on the main module in the solutions window and look at the properties->C++->Code Generation->Runtime Library, you have a number of choices there. The option chosen has to be the same...
I have a Windows SDK program that runs an extensive WM_PAINT routine to generate the window contents. I would like to be able to use MessageBox to display an error while drawing the window, but it seems that the act of putting up the MessageBox causes another WM_PAINT message to be issued...
Generally, the VC template C++ file created at project initialization contains this line and also has a line inside the main program that says something like
LoadString (hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
It is loading the string from the string resources which are also...
InstallShield Express 4 has a gui for adding keys during the install, I have to believe that all these super-expensive install programs must. The Nullsoft free installer has the capability.
I'm not sure if it helps, but under UNIX sockets you would be using a select call, which would poll all the open requests for received data. There has to be some analog to that in your class methods; it is very basic to the socket paradigm.
A console project is a "traditional" DOS-type app. It will run in a DOS box (CMD box for w2k/XP. A true windows app using the Windows SDK is a "Win32" app. The differences have to do with differing assumptions about compiler/linker options and included libraries. They all use makefile (or...
In the build rules you require $(OBJMOC) to be prepared to build $(TARGET). $(OBJMOC) is moc_barmonley.obj, but there is not explicit rule for creating mac_barmonkey.obj. There are several implict rules, but unless moc_barmonkey.cpp exists, then it can't supply the right rule.
An explicit...
This is a piece of code that establishes the status bar. The calls to fill the parts with text use the SB_SETTEXT message.
#include <windows.h>
#include <commctrl.h>
// Startout status bar control routine. Creates a status bar, divides it into nParts sections.
// hStatus must be zero on...
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.