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
|