|
-
Sep 13th, 2002, 05:51 PM
#1
Thread Starter
Frenzied Member
Dev-C++ Options and Resources
Using Dev-C++ I get a compile error from:
Code:
#include <windows.h>
#include <commctrl.h>
...
INITCOMMONCONTROLSEX initCommCtls;
initCommCtls.dwICC = ICC_LISTVIEW_CLASSES;
initCommCtls.dwSize = sizeof(INITCOMMONCONTROLSEX);
InitCommonControlsEx(&initCommCtls);
...
but the include directory is listed in the options and commctrl.h is in the include directory. Is there another option that has to be set?
Also how do you use resource files? Is the format like a VC++ resource file?
-
Sep 14th, 2002, 04:42 AM
#2
Frenzied Member
I found with Dev-C++ you have to put double quotes round the directory names in the options for it to work. But it seems to forget them everytime I load, which is a very annoying problem.
-
Sep 14th, 2002, 05:05 PM
#3
Thread Starter
Frenzied Member
I'll try that.
I would just like to see an example resource file which I have had a hell of a time locating a sample.
Last edited by wey97; Sep 14th, 2002 at 05:14 PM.
-
Sep 14th, 2002, 07:08 PM
#4
Thread Starter
Frenzied Member
Oh, the resource files are the same.
InitCommonControls() works fine but I get an error here:
Code:
INITCOMMONCONTROLSEX initCommCtls;
the error is:
Code:
`INITCOMMONCONTROLSEX' undeclared (first use this function)
and I checked, struct INITCOMMONCONTROLSEX is defined in commctrl.h in the folder "c:\dev-cpp\include"
Any ideas?
-
Sep 15th, 2002, 11:00 PM
#5
Addicted Member
Hi,
I have found a peculiar error with Dev-C++ 4.01 that may be related.
I can create a project and build an h file for the project...sometimes using a second instance of Dev-C++. I store this h file in my app folder. I simply refer to this file as...
#include "bitmap_loader.h"
Now, here is where the bug surfaces...if I copy all of these files into another directory, click on my .dev file in WinExplorer, then go to compile....bamm! I get errors saying it doesn't recognize my calls located in the h file.
So, more than once I have had to type the entire path in quotes such as...
#include "c:\dev-c++\program\bitmap_loader.h"
Now, I know you are putting these h files in the include folder so this may not be useful.
Regards,
ChuckB
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
|