Error??
-
Larsson wrote:
this work in a difrent class so i dont anderstand why it dont work in this class.
Maybe a missing header file? Does intellisense recognize the class at that point? Problem could be on a preceding line as well.
-
Well yes it is byt, this work in a difrent class so i dont anderstand why it dont work in this class.
You are not listening! You are missing a ";" before the line "CFiles m_GetFile;".
-
You are not listening! You are missing a ";" before the line "CFiles m_GetFile;".
-
Yes it recognize the class. byt what do you mean with = "Problem could be on a preceding line as well"?
What George said :) Look on lines leading up to the line the error is caught on. Somewhere, there's an unrecognized class, type, variable name, or perhaps even a line without a semi-colon.
-
I could also be a malformed line also!
-
I could also be a malformed line also!
-
Comment out the line and try to recompile.
-
Comment out the line and try to recompile.
-
Look up the erorr, C2146, via http://www.google.com/microsoft or on http://msdn.microsoft.com. It is very difficult to troubleshoot code without being able to view it. George
-
Look up the erorr, C2146, via http://www.google.com/microsoft or on http://msdn.microsoft.com. It is very difficult to troubleshoot code without being able to view it. George
Trust me I have done that, that dont help me at all. If I remove CFiles m_GetFiles; Then I can compile and it works fine. I can use funktion in he class in I let it be, m_GetFiles.ReadInFile; // This work but if I compile now I get that eller. And If a compile that class I dont get any error. Im going cryase at this.