View Single Post
  #4 (permalink)  
Old December 21st, 2007, 02:54 PM
OEmpederado OEmpederado is offline
Registered User
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You may try this, mizomizo...as an example.

#include "pThisClassA.h"
#include "ClassB.h"
#include <iostream>

using namespace std;

int main(int argc, char** argv)
{
     pThisClassA<int> ThatPtr(new int);

     *ThatPtr = 7; // Dereference the "ThatPtr" arbitrarily.
     cout << *ThatPtr << endl;

     pThisClassA<ClassB> MyObject(new ClassB);

     MyObject->set(7); // Dereference "pThisClassA" and member select the set method.
     cout << MyObject->getValue() << endl;

     return (0);
}

Hope that helps,
Onassis


Reply With Quote