devxlogo

Tip Bank

DevX - Software Development Resource

Use Mem-initializer to Initialize Embedded Objects

If your class contains other object(s) as members, you should initialize the embedded object(s) in a mem-initializer list instead of assigning their values inside the class constructor: class Person {

DevX - Software Development Resource

A Few Remarks About Inline Specifier

All member functions implemented within a class declaration are by default inline: //file: A.hclass A { int a; public: int Get_a() { return a; } //declaration + definition; //implicitly inline

DevX - Software Development Resource

Debugger is not Being Invoked

When working on developing or debugging an app that is created via automation (i.e. ActiveX DLL), keep in mind the following: if you invoke that app from a calling program

DevX - Software Development Resource

VB Hijacks the Registry

Be aware that the VB IDE hijacks the registry settings for your public classes when working on projects such as ActiveX DLLs and Controls. The IDE will temporarily replace (in

DevX - Software Development Resource

Using Dim Statement on Variant Arrays

When passing a variant array by reference, make sure to use Dim to declare the statement before using Redim. Example: Private Sub Command1_Click()Dim x as integer ReDim v(2) As Variant

DevX - Software Development Resource

Editing Multiple File Types in Developer Studio Environment

You can change the types of files recognized by the DevStudio editor by adding the file type to the following registry key: HKEY_CURRENT_USERSoftwareMicrosoftDevStudio5.0IstudioProjectEditors For example, to allow JavaScript source files