Search:

Type: Posts; User: adonisv

Search: Search took 0.01 seconds.

  1. Doh!

    !
  2. My pointer is in another class RAddSystemDlg. I...

    My pointer is in another class RAddSystemDlg. I have a dialog with a tree control in it and I want to have other dialogs that allow the user to add children to the tree control through those dialogs....
  3. Isn't my return function handling that??? /...

    Isn't my return function handling that???

    / This function returns a reference to a canal manager object.
    RSacmanSetupTree& RSacmanSetupTree::GetSetupTreePtr()
    {
    return *m_spSacmanSetupTree;...
  4. Has anyone ever successfully used a "static pointer?"

    Ive declared it...
    /////////////////////////////////////////////////////////////////////////////
    // RSacmanSetupTree window


    class RSacmanSetupTree : public CTreeCtrl
    {
    // Construction...
  5. Replies
    14
    Views
    1,497

    I passed it a "num" when I declared it in the...

    I passed it a "num" when I declared it in the function where it's used..

    int ArchiveTable(const char* copiedTableName,const char* alsoCopiedTable,const char* dataSource)
    {
    // Return negative one...
  6. Replies
    14
    Views
    1,497

    Compiler no likey likey...

    RArray()
    {
    int i = 0;
    num_elem = num;
    array_Cursor = sizeof(0);
    pArray = new T[num];

    for(;i<num;i++)
    {
    pArray[i] = 0;
  7. Replies
    14
    Views
    1,497

    I don't need to with this syntax my code is...

    I don't need to with this syntax my code is smaller

    template <class T, int num>
    class RArray {
    ....

    I called it this way

    // Create instance of the templated array class. Establish that...
  8. Replies
    14
    Views
    1,497

    RArray() { int i = 0; num_elem = num;...

    RArray()
    {
    int i = 0;
    num_elem = num;
    array_Cursor = sizeof(0);
    pArray = new T[num];

    for(;i<num;i++)
    {
    pArray[i] = array_Cursor;
  9. Replies
    14
    Views
    1,497

    I guess what confuses me is that since my...

    I guess what confuses me is that since my template is generic and is supposed to take any "type" that I pass it, how would I set all of its initial elements to NULL or zero or whatever? Is this even...
  10. Replies
    14
    Views
    1,497

    So I can't have an initializaton routine IN the...

    So I can't have an initializaton routine IN the class? I'm so confused....:eek:
  11. Replies
    14
    Views
    1,497

    I still need help on this!

    How do I initialize my templated array class??

    So let's say my template class is this...

    template <class T>
    class RArray {
    private:
    typedef enum { StartArraySize = 128} bogus;
    typedef enum...
  12. So let's say my template class is this... ...

    So let's say my template class is this...

    template <class T>
    class RArray {
    private:
    typedef enum { StartArraySize = 128} bogus;
    typedef enum {InitialSize = 0};

    size_t num_elem;
  13. I want to initialize all the elements to zero or...

    I want to initialize all the elements to zero or an equivalent for a template....:)
  14. How do you initialize a template class object?

    I have a templated array class and I want to write an init routine for it but I'm not sure how to do that since I don't pass it any particular data type. Any ideas?

    Michael:

    confused:
Results 1 to 14 of 14