RE: [Dev-C++] what is a resource? how do I create my own headers?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ramana K. <ra...@my...> - 2001-01-04 02:14:13
|
A resource file is not needed for a dos project. You shouldn't be getting any errors if you don't touch the resource file, but, if you do, go to Project Options and remove the text in the resource file field, or, open the resource file and edit it (delete its contents). As far as I know, this is how you use header files, this is how I use them but sometimes I don't see the point if you know the function will not be used later. If this is the case, keep the whole function in one file (a .h file if it happens to be) and then you can include this as a file full of functions in a project (used in a .cpp file like main.cpp). Ramana Kumar ICQ# 93667117 To get paid for surfing the 'net please visit https://www.alladvantage.com/joinsecure.asp?refid=jpn471 -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Alan Thomas Sent: Thursday, January 04, 2001 12:46 PM To: dev...@li... Subject: [Dev-C++] what is a resource? how do I create my own headers? Importance: High Two questions: (a) What is a "resource" file? Is it relevant for a [DOS] console program? Where is it documented what to do with a resource file? I created a new project (console application) and added three existing files (two cpp{one with a main function, another with other functions} and one header file. Asked it to Compile the project, but it gave me an error with the resources ("no resources"). Tried again with a new, empty project. Added files but got same error when I attempted to compile. (b) How do I save/use a header file? I have some functions. Wrote and tested them. Took the function prototypes and #includes, and made them the header file. Included it (#include "html.h") in my file with the main function. Took the rest --- the function definitions --- and made them the .cpp file. Is this the way you use a header file? Where is this documented or described? Thanks, Alan _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |