Results 1 to 5 of 5

Thread: Dev-C++ Options and Resources

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Question 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?

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    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.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    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?

  5. #5
    Addicted Member ChuckB's Avatar
    Join Date
    Jul 2002
    Location
    South Carolina, USA
    Posts
    157
    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
  •  



Click Here to Expand Forum to Full Width