//I am trying to call the Open function
//in class NCDCtrl (NCDCtrl::Open) from
//I don't know how to declare it. At
//the beging I tried
extern "C" int _stdcall NCDCtrl::Open(char *);
//but I got at compilation:
//error C2027: use of undefined type 'NCDCtrl'
//here is the class
class NCDCtrl : public CommCtrl
// overidden to open the port and also syncronies it's baud rate with the NCD.
BOOL Open(char *Com);
// after a little trying I tried this
extern "C" short _stdcall ShaiOpen(char *Com);
short _stdcall ShaiOpen(char *Com)
short retVal = NCDCtrl::Open(Com);
//but when I compile the c++ project I
//get this error:
//error C2352: 'CommCtrl::Open' :
//illegal call of non-static member
I want to know
1. Is it posible to run functions inside the class
2. If I need to rap them how???