title: Problem with #ifndef and #pragma once
body: <p>I want write the program with next struct</p>
  
  <p>stdafx.h - contains some #define defenitions of program constants and #include of headers wich uses in all project.</p>
  
  <p>frmMain.h - contatins code of Form1 also can Show form2 and uses some code from BckHeadr.h and some functions call that headers included in stdafx.h.</p>
  
  <p>frmIniPrgs.h - contatins code of Form2 and uses some code from BckHeadr.h and some functions call that headers included in stdafx.h.</p>
  
  <p>BckHeadr.h - contatins some definitions of functions and some functions call that headers included in stdafx.h.</p>
  
  <p>I know what i must use #ifndef or #pragma once directives. But i can not decided this problem. I included in stdafx.h: frmIniPrgs.H, BckHeadr.h, frmMain.h. And use #ifndef in all modules. I uset it like this:</p>
  
  <pre><code>#ifndef MYMODULE_H
  #define MYMODULE_H
  //module code
  #endif
  </code></pre>
  
  <p>There is next errors in my project (i have russian visual studio and text of errors is translate by google translate and may contain the errors, ScnIniPackages is my function in BckHeadr.h ):</p>
  
  <pre><code>BckHeadr.h (96): error C3861: PtrToStringChars: identifier not found 
  BckHeadr.h (141): error C2065: vector: undeclared identifier 
  BckHeadr.h (141): error C2062: type "int" is not required 
  BckHeadr.h (141): error C2143: syntax error: no ";" before "(" 
  BckHeadr.h (141): error C2447: (: missing function header (possibly using a formal list of old type) 
  BckHeadr.h (169): error C2065: vector: undeclared identifier 
  frmIniPrgs.h (119): error C2065: vector: undeclared identifier 
  frmIniPrgs.h (122): error C3861: ScnIniPackages: identifier not found 
  frmIniPrgs.h (121): error C2065: vector: undeclared identifier 
  C: \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ include \ Wininet.h (381): error C2872: FILETIME: ambiguous symbol 
      be 'C: \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ include \ windef.h (377): _FILETIME FILETIME' 
      or 'c: \ windows \ microsoft.net \ framework \ v2.0.50727 \ mscorlib.dll: System:: Runtime:: InteropServices:: FILETIME' 
  </code></pre>