#include #include "stuff.h++" #include "stuff.h" int Stuff::message(int a) { x=a; return(x+1); } void* f_stuff_new(void) { return(new Stuff); } int f_stuff_message(void* obj,int a) { return(((Stuff*)obj)->message(a)); } #ifdef STANDALONE int main(void) { Stuff* stuff=new Stuff; printf("first =%d\n",stuff->message(1)); printf("second=%d\n",f_stuff_message((void*)stuff,2)); return(0); } #endif