hello, I am a very new programmer interested in learning C++.
Instead of a background story, ill jump right into my question;
My program compiles okay, and my login works just fine, but as soon as i convert to CLR for runtime support or whatever the dialog box says, i get spammed with errors from the automatically generated code.
1>------ Build started: Project: 123, Configuration: Debug Win32 ------
1> 123.cpp
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(5): error C2871: 'System' : a namespace with this name does not exist
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(6): error C2653: 'System' : is not a class or namespace name
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(6): error C2871: 'ComponentModel' : a namespace with this name does not exist
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(7): error C2653: 'System' : is not a class or namespace name
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(7): error C2871: 'Collections' : a namespace with this name does not exist
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(8): error C2653: 'System' : is not a class or namespace name
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(8): error C2871: 'Forms' : a namespace with this name does not exist
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(9): error C2653: 'System' : is not a class or namespace name
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(9): error C2871: 'Data' : a namespace with this name does not exist
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(10): error C2653: 'System' : is not a class or namespace name
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(10): error C2871: 'Drawing' : a namespace with this name does not exist
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(15): error C2059: syntax error : 'public'
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(15): error C2059: syntax error : 'public'
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(15): error C2653: 'System' : is not a class or namespace name
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(16): error C2143: syntax error : missing ';' before '{'
1>c:\users\xxxxxxxxx\documents\visual studio 2010\projects\123\123\1231.h(16): error C2447: '{' : missing function header (old-style formal list?)
1>123.cpp(9): error C2757: 'system' : a symbol with this name already exists and therefore this name cannot be used as a namespace name
1>123.cpp(42): error C2264: 'system' : error in function definition or declaration; function not called
1>123.cpp(47): fatal error C1075: end of file found before the left brace '{' at '123.cpp(9)' was matched
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The original program is just a command prompt login, which would hopefully jump into a form in which i could put text and save, for a secure journal, if you will.
questions i have now:
1. How can i resolve these errors?
2. Is it even possible to go from a command prompt like this, into a windows form?
3. If it is possible, how do i get my form to save text, that can only be accessed through going through the login?
-------------------------------------------
I know i could hide a text file and just have this program call it from its hidden location, but that is not what i want. I want a secure journal application, are there any other ways i can go about this?
if so, can anyone point me in the right direction?
Anyone have any idea? Should i start with a windows form application instead? Will saving the otherwise unreadable text file require a dll to store the data? What do i need, where do i start?
Can i just use another console to type and save in instead? How?