Tip Bank

DevX - Software Development Resource

Standard Headers’ Names

All Standard C++ header files must be included in the following way: #include //note: no “.h” extension#include//…other #include statements That is, the “.h” extension should not be used. This technique

DevX - Software Development Resource

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

DevX - Software Development Resource

C++

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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++.

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Mixing delete and delete[]

Question: I am programming with Visual C++ 5.0 and the class library StarView from StarDivision.Looking at the Source from StarView, I found bad code: void** p = new (void*)[100];…delete p;

DevX - Software Development Resource

Running other apps from a C++ app

Question: I recently started programming with Borland C++ Builder and the help files aren’t much help at all. I would like to know what the code is for executing another