|
-
July 3rd, 2007, 01:16 PM
#1
using different files in one project
hello, i created a form which has buttons and textfields in it. And i have another .cpp and .h files which i added to resource and header part of the project. I want to use methods in those files in my buttonpressed methods. but i have problems,
1)When i didn't write #include "myfile.h" compiler can't see the global methods in the .h file.
2)When i include the .h file, it gives redefinition error.
how should i use those methods? Should i c/p them into the form.h ?
thanksalot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|