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. Managed C++/CLI
  4. need help with creating a clr dll

need help with creating a clr dll

Scheduled Pinned Locked Moved Managed C++/CLI
helpcsharpc++dotnetcom
2 Posts 2 Posters 2 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.
  • N Offline
    N Offline
    neodeaths
    wrote on last edited by
    #1

    hi, i am new and trying to create a dll to use for my .net project i created a clr dll (class library) project by following the instruction from https://code.google.com/p/tesseractdotnet/wiki/TesseractEngineWrapper but i keep getting errors from control.cpp, output.cpp, tessedit.cpp and tesseractemginewrapper.cpp the error are all the same stating error C1010: unexpected end of file while looking for precompiled header. did you forget to add '#StdAfx.h' to your source? as i am completely new i tried with/without the StdAfx.h and StdAfx.cpp which was there when i first created the project. could anyone help me please?

    L 1 Reply Last reply
    0
    • N neodeaths

      hi, i am new and trying to create a dll to use for my .net project i created a clr dll (class library) project by following the instruction from https://code.google.com/p/tesseractdotnet/wiki/TesseractEngineWrapper but i keep getting errors from control.cpp, output.cpp, tessedit.cpp and tesseractemginewrapper.cpp the error are all the same stating error C1010: unexpected end of file while looking for precompiled header. did you forget to add '#StdAfx.h' to your source? as i am completely new i tried with/without the StdAfx.h and StdAfx.cpp which was there when i first created the project. could anyone help me please?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The message is telling you exactly what is wrong. Your project is set to use precompiled headers, but you forgot to include StdAfx.h in your source code. Each source file (.cpp file) should include the following line at the top:

      #include "StdAfx.h"

      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