Jun 11, 2012 at 3:07pm UTC
Hi , im trying to recreate a program for fun/learning but i dont know how to fix this.
Form1:
http://codepad.org/5jwQ2eaz
Add_Item(Form2):
http://codepad.org/G9MKyA43
Main cpp file:
http://codepad.org/pwbtEhxl
Debug output:
1 2 3 4 5 6 7 8
1
1> stdafx.cpp
1> Add_Item.cpp
1>c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\code_manager_cl\Form1.h(1): fatal error C1014: too many include files : depth = 1024
1> AssemblyInfo.cpp
1> Code_Manager_Cl.cpp
1>c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\code_manager_cl\Add_Item.h(1): fatal error C1014: too many include files : depth = 1024
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Last edited on Jun 11, 2012 at 3:13pm UTC
Jun 11, 2012 at 3:19pm UTC
Form1 is including Add_Item and vice versa. Why would you do this?
Jun 11, 2012 at 4:09pm UTC
i need to make the data i type in texbox1 on Add_Item.h to go to listBox2 on form 1 when i press the add button , and form 1 needs add item added so that i can open add item window by pressing add button which works , but i cant include form 1 to add item without an error.
EDIT: i just got an idea , in Add_Item.h why cant i use
1 2
Code_Manager_Cl::Form1::listBox2->Items ->Add(Description_Input->Text );
Description_Input->Text="" ;
with this i get the debug error(s):
1 2 3 4 5 6 7 8 9 10
1
1> Add_Item.cpp
1>c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\code_manager_cl\Add_Item.h(16): error C2011: 'Code_Manager_Cl::Add_Item' : 'class' type redefinition
1> c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\debug\code_manager_cl.exe : see declaration of 'Code_Manager_Cl::Add_Item'
1> Code_Manager_Cl.cpp
1>c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\code_manager_cl\Add_Item.h(16): error C2011: 'Code_Manager_Cl::Add_Item' : 'class' type redefinition
1> c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\debug\code_manager_cl.exe : see declaration of 'Code_Manager_Cl::Add_Item'
1>c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\code_manager_cl\Form1.h(17): error C2011: 'Code_Manager_Cl::Form1' : 'class' type redefinition
1> c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\debug\code_manager_cl.exe : see declaration of 'Code_Manager_Cl::Form1'
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Last edited on Jun 11, 2012 at 4:42pm UTC