jjones7947
September 30th, 2009, 04:40 PM
Started a Windows Service project in C++ with VS2008. It set up the project as a managed one, so I continued the theme. Was able to get all the functions filled in. And it compiled fine. Then I introduced a new ref class for logging it has a default constructor and 3 functions. However, when I tried to instantiate it in the main class, I get errors that the Logger class is not found. It is in the project namespace and the file itself compiles now, when writing it I got compiler errors when I had errors in the code so I know the compiler can "see" it. The error I get is C2146 syntax error : missing ';' before identifier 'logger'. The line in question is
Logger^ logger;
Possibles
1. Need a header file?
2. Some other syntax?
Thanks,
Jim
Logger^ logger;
Possibles
1. Need a header file?
2. Some other syntax?
Thanks,
Jim