V
vsrajput
Hi guys
I am not good OOP programmer ,trying to implement my already working
code in OOP.
I have somthing like this class.
class Datalogger{
public:
UINT Port;
BOOL bReady ;
Datalogger (UINT x ,bool y);
~Datalogger ();
bool LOpen ();
bool LStatus ();
};
Everything is OK till "bool LStatus ();"
bool LStatus ()
{
...... Here I have bunch of stuff;
but I get problem here
Waitforevent( Port , INFINTE , &bReady)
if(bReady)
{
.......
.....some stuff ;
.......
}
}
Where "Waitforevent" is fucntion came with driver of my I/O board .I
did not make this function.
it gives
bReady= true on events.
My question is that "CAN I USE member variable like this"
I means Can I use address of member variable to some function.
I am not good OOP programmer ,trying to implement my already working
code in OOP.
I have somthing like this class.
class Datalogger{
public:
UINT Port;
BOOL bReady ;
Datalogger (UINT x ,bool y);
~Datalogger ();
bool LOpen ();
bool LStatus ();
};
Everything is OK till "bool LStatus ();"
bool LStatus ()
{
...... Here I have bunch of stuff;
but I get problem here
Waitforevent( Port , INFINTE , &bReady)
if(bReady)
{
.......
.....some stuff ;
.......
}
}
Where "Waitforevent" is fucntion came with driver of my I/O board .I
did not make this function.
it gives
bReady= true on events.
My question is that "CAN I USE member variable like this"
I means Can I use address of member variable to some function.