M
Marauderz
Hi there...
VC++ newbie here.. I'm wondering how do I call the Static Members of classes
defined by a DLL.
For example supposed I have a function defined as :-
static neSimulator * CreateSimulator(const neSimulatorSizeInfo & sizeInfo,
neAllocatorAbstract * alloc = NULL,
const neV3 * gravity = NULL);
I'm guessing in Managed C++ I should call it as
neSimulator* gSim;
gSim=neSimulator::CreateSimulator(sizeInfo,NULL,&gravity);
But on the call, I get a NullReference exception. And I have no idea what
I'm not doing properly, can anyone help.
ps. For those who know.. yup.. I'm trying to wrap the Tokamak Physics
Library... has anyone already done it?
VC++ newbie here.. I'm wondering how do I call the Static Members of classes
defined by a DLL.
For example supposed I have a function defined as :-
static neSimulator * CreateSimulator(const neSimulatorSizeInfo & sizeInfo,
neAllocatorAbstract * alloc = NULL,
const neV3 * gravity = NULL);
I'm guessing in Managed C++ I should call it as
neSimulator* gSim;
gSim=neSimulator::CreateSimulator(sizeInfo,NULL,&gravity);
But on the call, I get a NullReference exception. And I have no idea what
I'm not doing properly, can anyone help.
ps. For those who know.. yup.. I'm trying to wrap the Tokamak Physics
Library... has anyone already done it?