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. C / C++ / MFC
  4. calling a c++ ATL dll from a c++ test program

calling a c++ ATL dll from a c++ test program

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
4 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.
  • N Offline
    N Offline
    ns
    wrote on last edited by
    #1

    I wrote a c++ ATL dll, and now want to call it from another c++ app. What exactly do I need to do be able to call it? In the h file for the ATL dll STDMETHOD(MyFunction)(BSTR OutputDirectory, BSTR DlgTitle, BSTR BatchFileName, BSTR ResultsFileName, int ObjectStartNumber); plus other functions I tried to include this h file but got these errors: error C2079: 'CSFilter' uses undefined class 'ATL_NO_VTABLE' error C2239: unexpected token ':' following declaration of 'CSFilter' error C2059: syntax error : 'public' error C2448: '' : function-style initializer appears to be a function definition fatal error C1004: unexpected end of file found Error executing cl.exe. thanks, sb

    L 1 Reply Last reply
    0
    • N ns

      I wrote a c++ ATL dll, and now want to call it from another c++ app. What exactly do I need to do be able to call it? In the h file for the ATL dll STDMETHOD(MyFunction)(BSTR OutputDirectory, BSTR DlgTitle, BSTR BatchFileName, BSTR ResultsFileName, int ObjectStartNumber); plus other functions I tried to include this h file but got these errors: error C2079: 'CSFilter' uses undefined class 'ATL_NO_VTABLE' error C2239: unexpected token ':' following declaration of 'CSFilter' error C2059: syntax error : 'public' error C2448: '' : function-style initializer appears to be a function definition fatal error C1004: unexpected end of file found Error executing cl.exe. thanks, sb

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      ns wrote:

      I tried to include this h file but got these errors:

      ns wrote:

      error C2079: 'CSFilter' uses undefined class 'ATL_NO_VTABLE'

      CSFilter Sorry, that is ATL_NO_VTABLE is undefined. You have not included the definition for it in your project.

      N 1 Reply Last reply
      0
      • L led mike

        ns wrote:

        I tried to include this h file but got these errors:

        ns wrote:

        error C2079: 'CSFilter' uses undefined class 'ATL_NO_VTABLE'

        CSFilter Sorry, that is ATL_NO_VTABLE is undefined. You have not included the definition for it in your project.

        N Offline
        N Offline
        ns
        wrote on last edited by
        #3

        I just took the .h file straight from my ATL dll project and did a #include in the test harness project. What is it I need to do? thanks, sb

        L 1 Reply Last reply
        0
        • N ns

          I just took the .h file straight from my ATL dll project and did a #include in the test harness project. What is it I need to do? thanks, sb

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          ns wrote:

          What is it I need to do?

          You need to configure your project to include any dependent header files and resolve any dependent library files to successfully compile and link.

          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