OK I am creating an instance of class 1 Lift Lift1 in another class and I am trying to access its public function using
Lift1.blah;
however its saying Undeclared Identifier.
Printable View
OK I am creating an instance of class 1 Lift Lift1 in another class and I am trying to access its public function using
Lift1.blah;
however its saying Undeclared Identifier.
I'm sorry...my psychic abilities are a bit off today. Could you post some code and show us where the problem is? If blah is a function of Lift, then you'll need some () unless you're really trying to get a function pointer.
Just to elaborate on pianorain's post,
Lift1.blah();
ok we fixed that now i am getting this problem
LiftSystem error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
LiftSystem fatal error LNK1120: 1 unresolved externals
Are you missing an int main() somewhere? I couldn't tell you, since you still haven't posted any code.