Thread: Dev-C++ Question

  1. #1
    Registered User Ktulu's Avatar
    Join Date
    Oct 2006
    Posts
    107

    Dev-C++ Question

    Hello everyone on this forum, I am new here.
    I have a question about my Dev-C++ compiler, version 4.9.9.2, when I create a new project, such as a DLL or Windows Application project, Dev-C++ will create a new project but also adds a source file with it, example source files, is there a way to change which source files there must be loaded when creating a new project file? Is that called template files?

    Thanks in advance, Ktulu.

  2. #2
    Darkness Prevails Dark_Phoenix's Avatar
    Join Date
    Oct 2006
    Location
    Houston, Texas
    Posts
    174
    In Dev-C++, just create whatever code you would like to come up when you create a new project. Once you have the code, go to File->New->Template and the IDE will prompt you for a name, icon, and where to save the template to (ie. console app, windows app, other....) After that just click on New Project and select the templete you just created and your code will come up.

    Just make sure when you first type in your code you include and lib's or other options that you code needs to compile. Like if you are doing a DirectX framework you need to include d3d9.lib, d3dx9.lib, ect... these includes will also be saved with you templete

  3. #3
    Registered User Ktulu's Avatar
    Join Date
    Oct 2006
    Posts
    107
    Ok cool, thanks.

  4. #4
    Registered User Ktulu's Avatar
    Join Date
    Oct 2006
    Posts
    107
    Urgh, can't really do much with Dev-C++ templates .

  5. #5
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    What do you want to do? Project templates usually aren't all that compicated.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  6. #6
    Registered User Ktulu's Avatar
    Join Date
    Oct 2006
    Posts
    107
    As a metter fact, they even are to little complicated... you can't create folders in the template.

  7. #7
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    You what?
    Hmm... templates are text files that contain code. How would you squeeze folders into it?
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  8. #8
    Registered User Ktulu's Avatar
    Join Date
    Oct 2006
    Posts
    107
    * Smashing head against wall *
    In Dev-C++ you can create projects, if you create a basic project for something, set up certain options and source files in it, you also can add 'folders' in your project, in example a folder for the Source Files, or a folder for the Header Files, etc. If the basic project is done you can create a template of it but the folders are not created in the template.

  9. #9
    Darkness Prevails Dark_Phoenix's Avatar
    Join Date
    Oct 2006
    Location
    Houston, Texas
    Posts
    174
    When you load the templete dev-c++ will ask you where to save the file(s) to. Just create whatever folders you want and save the file(s) to those folders.

  10. #10
    Registered User Ktulu's Avatar
    Join Date
    Oct 2006
    Posts
    107
    Not on your harddisk, virtual in your .dev project file.

  11. #11
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    What? Why?
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  12. #12
    Registered User Ktulu's Avatar
    Join Date
    Oct 2006
    Posts
    107

  13. #13
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    I know. Why would you want them in a template?
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  14. #14
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    I guess he wants to make huge templates.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  15. #15
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Which defeats the purpose...
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  2. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  3. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM