June 16, 1998

Hex system

Question: I am trying to create a program that will log HTML color schemes to a file, and I can’t get C++ to count in hex. I looked in the math header file and there aren’t any hex-specific commands. Or are there? Answer: One thing you need to be clear

Virtual memory on large dataset

Question: I’m working with large multidimensional dataset (> 10 dimensions and > 100,000 points). One particular problem I have is the use of virtual memory (for example, via new). When I input dataset with more than 6 dimensions and 100,000 points, the program halts with the message: “virtual memory exceeded

Programming in in Win32

Question: I have taken two semesters of C++ and feel pretty confident about the whole OOP aspect of things. I have a good understanding of all the fundamentals of C++. All the coding we did was for DOS or Windows console apps though, and now I want to learn to

Macro and functions

Question: What is a macro? What is the difference between macros and functions? How do you invoke a macro? Please give an example of code. Answer: A macro is simply an alias for a language expression. Consider the following code:#define PlusOneMacro(i) ((i) + 1)int PlusOneFunction(int i){ return i + 1;}int

Compilation Errors

Question: What is an “lvalue”? How does it relate to “rvalue”? Answer: An lvalue is simply a value on the left side of an expression, and an rvalue is a value on the right side of an expression.i = 5;For example, here i is the lvalue and 5 is the

Stay on Bottom Forms

Question: Is there a way to make a window like the Stay on Top window, but make it stay behind? For example, if you click on the desktop it does not come to the front. I would like to make a form that does the same thing: stays usable but


Question: I am thinking of learning C++, and I have not yet looked into it. Why would one choose to code in C++ instead of any other language? What is the difference between C++ and C, and between C++ and Visual Basic? Answer: C++ might be described as C on

VID 1 Environment Mystifying

Question: I have been doing VB since 1.0, and Frontpage since 1.1, however VID’s IDE has me mystified. What book would you recomend. I am at a total loss.Syd Answer: I hear you. As a VB person, I too recall being disoriented in the Visual InterDev (Internet Studio) IDE. You’ll

Text Orientation in a Bitmap

Question: How is it possible to write a vertical text (with TextOut procedure) in a bitmap (Delphi 2)? Answer: I know how to do this with a TLabel descendant, but you can probably apply the same principles to writing text to the canvas. Below is code for a component that

No more posts to show