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. COM
  4. COM: precompiled header in *_i.c files

COM: precompiled header in *_i.c files

Scheduled Pinned Locked Moved COM
helpquestioncomsysadminlinux
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.
  • B Offline
    B Offline
    Bash
    wrote on last edited by
    #1

    Help, guys! I'm novice in COM and my question is very easy. I've created my first COM-server (say, Encoder that have produced files Encode_i.c and Encode.h). Now, I'm writting COM-client for my COM-server. I've created new project (Simple Win32 application), copied Encode_i.c and Encode.h into project with my COM-client. When I try to compile COM-client, I got the follows: c:\home\encodeclt\encode_i.c(50) : fatal error C1010: unexpected end of file while looking for precompiled header directive Error executing cl.exe. EncodeClt.exe - 1 error(s), 0 warning(s) What should I do? Yours sincerely, Alex Bash

    S 1 Reply Last reply
    0
    • B Bash

      Help, guys! I'm novice in COM and my question is very easy. I've created my first COM-server (say, Encoder that have produced files Encode_i.c and Encode.h). Now, I'm writting COM-client for my COM-server. I've created new project (Simple Win32 application), copied Encode_i.c and Encode.h into project with my COM-client. When I try to compile COM-client, I got the follows: c:\home\encodeclt\encode_i.c(50) : fatal error C1010: unexpected end of file while looking for precompiled header directive Error executing cl.exe. EncodeClt.exe - 1 error(s), 0 warning(s) What should I do? Yours sincerely, Alex Bash

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      Read the C++ FAQ here on CP ;) You need to adjust the project settings for that particular file so that it does not use precompiled headers, or alternatively, #include it into stdafx.cpp. Steve S

      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