CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #4
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    628

    Re: including source files

    not as far as i know... i could be wrong (but i am 99.999999999999999999999999999999999% sure i'm not!).. i have never done that..

    header:

    Code:
    //header.h
    void test();
    void test2();
    source:

    Code:
    include "header.h"
    //implement function
    keep in mind:

    file A.h
    file B.h
    file C.h

    file A.cpp
    file B.cpp
    file C.cpp

    you have:
    A:
    include B.h

    B:
    include C.h

    and you have in another file
    include A.h
    if you have only functions, you will be able to access functions in A, B and C.
    Last edited by drewdaman; August 10th, 2005 at 02:53 PM.

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