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. Enexistent data

Enexistent data

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

    I have a VC++ 6 project with the following:

    //pointers.h
    template <typename T> class tPointer {

    public:

      // Some routines here
    

    protected:

      // Some other routines
    
      // Data
      T              \*pPointer;
      tUnsignedWord   pCounter;
    

    };

    // arrays.h
    template <typename T> class tArray : public tPointer<T> {

    public:
    
       // Just the default constructor for now
    
    protected:
    
       tUnsignedWord   nSize;
    

    };

    But when I write:

    // launcher.cpp
    int main( void )
    {
    tArray<int> p;

    p. // When I write the '.' (dot) a list of tArray's members appears

    return 0;
    }

    The problem is: 1) That list as the elements: nSize (fine with that) and pData (hã??) 2) tArray is not inheriting the routines from tPointer (i.e operator = ( tSomething ) ) Anybody knows why and how to solve this? NOTE: I wrote a tArray class on a previous project that had a pData member.. Is it possible that VC++ keeps some sort of records and is now accessing them? Plus, those are the only files I have included in the project so far. best regards [[]] hint_54

    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