Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. include

include

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comhelptutoriallounge
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yoti11
    wrote on last edited by
    #1

    Hello, I wrote a com object in C++.ATL. I did a small header file for general definitions. When I include that file in other classes I got error such as missing ; etc example of the header file: #ifndef __LIC_T_H #define __LIC_T_H #include using namespace std; #define FILE_BUFFER_SIZE 100 #define ENCRYPT_ELEMENT_NUM 4 struct Lic_t { }; #endif thanks

    M 1 Reply Last reply
    0
    • Y yoti11

      Hello, I wrote a com object in C++.ATL. I did a small header file for general definitions. When I include that file in other classes I got error such as missing ; etc example of the header file: #ifndef __LIC_T_H #define __LIC_T_H #include using namespace std; #define FILE_BUFFER_SIZE 100 #define ENCRYPT_ELEMENT_NUM 4 struct Lic_t { }; #endif thanks

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2

      include stdafx.h as the first #include statement int he header file or disable using porecompiled header file in the project settings. cheers...milton kb.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups