CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2002
    Location
    India
    Posts
    14

    COM / include_i.c

    Hi,
    What is the difference between using "#include File_i.c" in the client program against with adding that file in project work space. If i do any way it is accepting and able to compile and link. Which is the best way. What is the difference between adding a file into a workspace and using "#include"

  2. #2
    Join Date
    Jun 2002
    Location
    Letchworth, UK
    Posts
    1,020
    Dependency

    If you #include a file but do not add it to the workspace, the dependencies are not generated. If the include file is modified, the module including it will not be rebuilt. Sometimes, it doesn't even save the include file because it is not part of the project.

    I've been caught out by this one several times where I've included files from another project but not added them into the project.
    Succinct is verbose for terse

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