Well there's no way to directly call any c++ code from max. Anything you want max to interact with has to be wrapped in an a C function.
[code]
class CStuff
public:
CStuff(){
...
}
.
.
.
int DoThing(...){}
private:
DataType* someData;
};
extern "C"{
void* NewCStuff(){
CStuff* temp = new CStuff
return (void*)(temp)
}
int DoThingCStuff(void* myStuff, ...){
return (CStuff*)(myStuff)->DoThing(...)
}
}
I haven't used any C with max so I'm not 100% sure that's all correct, but it's a general idea at least.
[code]
class CStuff
public:
CStuff(){
...
}
.
.
.
int DoThing(...){}
private:
DataType* someData;
};
extern "C"{
void* NewCStuff(){
CStuff* temp = new CStuff
return (void*)(temp)
}
int DoThingCStuff(void* myStuff, ...){
return (CStuff*)(myStuff)->DoThing(...)
}
}
I haven't used any C with max so I'm not 100% sure that's all correct, but it's a general idea at least.