CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2009
    Posts
    27

    Fundamental Question in Organizing

    When I create an empty Win32 application in VC++, I see 3 folder icons to my left (in the environment):

    Header files
    Resource files
    Source files

    I create main.cpp in the "source files" and a header file (say) temp.h in the "header files" folder. Till now I have been writing the functions code right in temp.h
    Say if I want to create a file temp.cpp which contains the functions code. Where should I put it into?

    Resource files?

    Please also give organizing tips that you may know. I would be grateful if you could point me to the appropriate links also.

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Fundamental Question in Organizing

    Till now I have been writing the functions code right in temp.h
    This is what the cpp file is meant for, not the h file. And you are supposed to put it in the source file-folder.

  3. #3
    Join Date
    Apr 2009
    Posts
    27

    Re: Fundamental Question in Organizing

    Thanks! But what is the resource folder for?

  4. #4
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Fundamental Question in Organizing

    Quote Originally Posted by sgsawant View Post
    Thanks! But what is the resource folder for?
    Resources. Dialog templates, menus, bitmaps, cursors, string table, icons, etc.

  5. #5
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Fundamental Question in Organizing

    Quote Originally Posted by sgsawant View Post
    Thanks! But what is the resource folder for?
    Resources ? Like the name suggests... If you include images/binaries etc in your project, they will show up in that folder.

Tags for this Thread

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

Featured