Here is an example of how to write a NVO wrapper for a C++ DLL. I followed these steps.

  1. Created a DLL project (MyPbDll).
  2. Created a C++ class (myClass).
  3. Created a header file for PB compatible entry points (myClass_PB).
  4. Created a NVO wrapper (n_myClass).

You can put a whole family of classes into the same DLL as long as they have different entry points. I usually prefix the entry points with some shortened version of the class name.

Please send me your comments (bdick@cox.net).

myPbDll.zip


Free counters provided by Andale.