#using #using "bigobject.dll" using namespace System; int main(int argc, char** argv) { bigobject *a, *c; //bigobject b(3); // not allowed! c = new bigobject(3); a = new bigobject(2); c->addobj(a); Console::WriteLine(c->getx()); Console::WriteLine(a->getx()); return 0; } // compile with cl /CLR /Zi paramtest.cpp