Please read the error message! Do you have not understood? Then the second time please read the error message and do not bother members of forum next time!
Looks like Win32 API to me with forms and such...I think this is another reason why VS is the devil. Everyone gets it and automatically thinks they know how to program, but they get simple errors and can't figure out what they did wrong.
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Application::Run(gcnew Form1());
return 0;
}
Please read the error message! Do you have not understood? Then the second time please read the error message and do not bother members of forum next time
I took a high school c++ class and havent used c++ for months so yes in a little confused. ,
how am i declaring it over and over again? or where i should be asking.
and this is C++ .net .
Looks like Win32 API to me with forms and such...I think this is another reason why VS is the devil. Everyone gets it and automatically thinks they know how to program, but they get simple errors and can't figure out what they did wrong.
I never said i know how to program i only know a little bit and am trying to further my learning in c++ because it is somthing i like and want to eventually want to get a job in programming.
Word of personal advice, avoid C++.net. If you wanna use .net, use C#. If you want c++, then use the standard c++. I think others here will agree with me as well
You also call Add_Item.h in three of the files. This is the purpose of the stdafx.h. You put ALL of your #includes in there, it's like an all purpose header file. You're also using the header guards incorrectly. You aren't supposed to use the header guards within a .cpp, only within a .h/.hpp
Like I said, I think you should learn more about the basic use of the language before attempting something that's way above your head.
You also call Add_Item.h in three of the files. This is the purpose of the stdafx.h. You put ALL of your #includes in there, it's like an all purpose header file. You're also using the header guards incorrectly. You aren't supposed to use the header guards within a .cpp, only within a .h/.hpp
Like I said, I think you should learn more about the basic use of the language before attempting something that's way above your head.
ok so i included Add_Item in stdafx.h., that only got rid of half of the problom
Your error specifically says that in file stdafx.cpp you are redeclaring the Code_Manager_1::AddItem class member. This means that not only are you declaring it in that file, but also somewhere else in your file. This is why I said you should learn more about the basics rather than just jumping into something.
Your error specifically says that in file stdafx.cpp you are redeclaring the Code_Manager_1::AddItem class member. This means that not only are you declaring it in that file, but also somewhere else in your file. This is why I said you should learn more about the basics rather than just jumping into something.
it will not let me include Form1.h to Code_Manager_Cl.cpp , and Add_Item.h to Add_Item.cpp. and they are not declared anywhere else and that is where they are supposed to be included so i dont know why im getting the error.
EDIT:
when i include Add_Item.h to stdafx.h the Form1.h Redeclaring error goes away. and vice versa for incluing Form1.h to stdafx.h.