Hi there.
I've two classes. One has the member IrrlichtDevice *device.
How can the other class use this poiner?
I tried to give the second class this pointer in a parameter, but my compiler said, "Syntaxerror: 'IrrlichtDevice'" in every cpp File, which included the header of the second class
well, hard to tell you a solution, seems to be a c++ syntax problem. Either you post some code here or your compiler with its error message. Maybe you forget the namespace? irr::?
instead of passing it as a variable.. you can make the variable (if it's defined in the class and not a method) a "friend" variable.. if you set the second class to be a "friend" class. but sending it as a param wont hurt. just for future refference.