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. abstract class

abstract class

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
3 Posts 3 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.
  • M Offline
    M Offline
    MozhdehQeraati
    wrote on last edited by
    #1

    Hi I am a new comer in C++. I have an MFC application that using some header files and libraries. I set the 'additional library directories' and 'additional include directories' in project settings. But whenever I want to make an instance of one of those classes I get this error: error C2259: cannot instantiate abstract class due to the following members: .... It is wierd as it works in another project same as this one, and there are some other classes in the lib files as this class, but the error doesn't occur in those conditions. I know the concept of abstract class. Please help me in advanse. Thanks

    S L 2 Replies Last reply
    0
    • M MozhdehQeraati

      Hi I am a new comer in C++. I have an MFC application that using some header files and libraries. I set the 'additional library directories' and 'additional include directories' in project settings. But whenever I want to make an instance of one of those classes I get this error: error C2259: cannot instantiate abstract class due to the following members: .... It is wierd as it works in another project same as this one, and there are some other classes in the lib files as this class, but the error doesn't occur in those conditions. I know the concept of abstract class. Please help me in advanse. Thanks

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      Well, something must be different between your new application and the older ones - otherwise the error wouldn't occur. You need to identify what's different. Start with the error messages. What methods are they telling you aren't implemented? That tells you what to look for in the older projects where those things do work.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      1 Reply Last reply
      0
      • M MozhdehQeraati

        Hi I am a new comer in C++. I have an MFC application that using some header files and libraries. I set the 'additional library directories' and 'additional include directories' in project settings. But whenever I want to make an instance of one of those classes I get this error: error C2259: cannot instantiate abstract class due to the following members: .... It is wierd as it works in another project same as this one, and there are some other classes in the lib files as this class, but the error doesn't occur in those conditions. I know the concept of abstract class. Please help me in advanse. Thanks

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

        Hi, I don't know whether you know this URL but it does answer your question. http://msdn.microsoft.com/en-us/library/zxt206sk(VS.80).aspx[^] Regards, Marc Ochsenmeier www.breakpoints.de

        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