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. Passing a pointer to object - using template - followup.

Passing a pointer to object - using template - followup.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionc++tutorial
14 Posts 6 Posters 3 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.
  • L Lost User

    ADDENDUM I just went thru few "RTFM" - I am NOT asking how to build a template class - I am asking how to pass template object / variable to existing object. As usual , my "simple question" has turned into sermons and RTFM. As a result I realized I was correct initially asking for "replacing the this pointer", however it was obviously my fault (!) that I did not provide enough information to get real solution. So here is my latest attempt to resolve it and I sill need some real help , no RTFM PLEASE. I decided to pass only part of the data - QList - and got this far - partial constructor solution.

    explicit Form_SetupLocalAdapter(QList <*data_list>);

    However , I am getting this error and have no clue how to fix it - hence I am posting my request on this forum and - asking for solution.

    /mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/PROJECTS/RECOVERY/BLUETOOTH/SOURCE/CCC_SOURCE/terminal_SERIAL_BLUETOOTH_VER_1/terminal_SERIAL_BLUETOOTH/terminal_BLUETOOTH/form_setuplocaladapter.h:17: error: use of undeclared identifier 'data_list'
    In file included from form_setuplocaladapter.cpp:1:
    ./form_setuplocaladapter.h:17:44: error: use of undeclared identifier 'data_list'
    explicit Form_SetupLocalAdapter(QList <*data_list>);
    ^

    So - to make sure - I am asking how to resolve

    undeclared identifier 'data_list'

    I am not asking for sermon or RTFM ( got it ?) PPS I have never used template and obviously do not have a clue.( Yes, my fault - again...)

    CPalliniC Offline
    CPalliniC Offline
    CPallini
    wrote on last edited by
    #4

    You probably meant something similar to

    explicit Form_SetupLocalAdapter(QList * data_list);

    (where the type you're actually storing in the list should replace the QString in the angular brackets)

    "In testa che avete, Signor di Ceprano?" -- Rigoletto

    In testa che avete, signor di Ceprano?

    1 Reply Last reply
    0
    • L Lost User

      ADDENDUM I just went thru few "RTFM" - I am NOT asking how to build a template class - I am asking how to pass template object / variable to existing object. As usual , my "simple question" has turned into sermons and RTFM. As a result I realized I was correct initially asking for "replacing the this pointer", however it was obviously my fault (!) that I did not provide enough information to get real solution. So here is my latest attempt to resolve it and I sill need some real help , no RTFM PLEASE. I decided to pass only part of the data - QList - and got this far - partial constructor solution.

      explicit Form_SetupLocalAdapter(QList <*data_list>);

      However , I am getting this error and have no clue how to fix it - hence I am posting my request on this forum and - asking for solution.

      /mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/PROJECTS/RECOVERY/BLUETOOTH/SOURCE/CCC_SOURCE/terminal_SERIAL_BLUETOOTH_VER_1/terminal_SERIAL_BLUETOOTH/terminal_BLUETOOTH/form_setuplocaladapter.h:17: error: use of undeclared identifier 'data_list'
      In file included from form_setuplocaladapter.cpp:1:
      ./form_setuplocaladapter.h:17:44: error: use of undeclared identifier 'data_list'
      explicit Form_SetupLocalAdapter(QList <*data_list>);
      ^

      So - to make sure - I am asking how to resolve

      undeclared identifier 'data_list'

      I am not asking for sermon or RTFM ( got it ?) PPS I have never used template and obviously do not have a clue.( Yes, my fault - again...)

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #5

      Member 14968771 wrote:

      So here is my latest attempt to resolve it and I sill need some real help , no RTFM PLEASE.

      Just noting that many years ago I would spend time on a specific forum for the Perl language. One of the leading authorities and author/co-author of a number of books would attend. And his answers often were RTFM and sometimes (or often) ranting about it quite a bit. So not much you can do about complaining about the quality or type of answers that you get. Although you might want to point out in any such question, explicitly, that you already did do some research but you did not find anything that actually answered the question. That might stop such answers.

      L 1 Reply Last reply
      0
      • J jschell

        Member 14968771 wrote:

        So here is my latest attempt to resolve it and I sill need some real help , no RTFM PLEASE.

        Just noting that many years ago I would spend time on a specific forum for the Perl language. One of the leading authorities and author/co-author of a number of books would attend. And his answers often were RTFM and sometimes (or often) ranting about it quite a bit. So not much you can do about complaining about the quality or type of answers that you get. Although you might want to point out in any such question, explicitly, that you already did do some research but you did not find anything that actually answered the question. That might stop such answers.

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

        I do appreciate your comments, unfortunately my experience is that folks who continually reply with "RTFM" are immune to any suggestions / request to stop such behavior , mainly because they choose not to read such request. Such "contributors" may have technical knowledge , but choose NOT to share it. I also feel ( have an opinion) that majority of "RTFM" posts are posted just to add to count of " posted xyz number of posts". Some people are easy to impress with statistics... Cheers - back to coding...

        L K J 4 Replies Last reply
        0
        • L Lost User

          I do appreciate your comments, unfortunately my experience is that folks who continually reply with "RTFM" are immune to any suggestions / request to stop such behavior , mainly because they choose not to read such request. Such "contributors" may have technical knowledge , but choose NOT to share it. I also feel ( have an opinion) that majority of "RTFM" posts are posted just to add to count of " posted xyz number of posts". Some people are easy to impress with statistics... Cheers - back to coding...

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

          Member 14968771 wrote:

          folks who continually reply with "RTFM" are immune to any suggestions / request to stop such behavior

          That may be because that is the best answer. It is up to you to demonstrate that you have actually read what was recommended. The above question and its predecessor are two cases in point, where the answer was simply to read the documentation.

          1 Reply Last reply
          0
          • L Lost User

            I do appreciate your comments, unfortunately my experience is that folks who continually reply with "RTFM" are immune to any suggestions / request to stop such behavior , mainly because they choose not to read such request. Such "contributors" may have technical knowledge , but choose NOT to share it. I also feel ( have an opinion) that majority of "RTFM" posts are posted just to add to count of " posted xyz number of posts". Some people are easy to impress with statistics... Cheers - back to coding...

            K Offline
            K Offline
            k5054
            wrote on last edited by
            #8

            To add to Richard's comments about the manual. Very often the manual, or the resource suggested (e.g. cppreference.com) has a clearer and more accurate description of what's going on than the respondent could give "from scratch", as it were. If you've actually read the manual and/or consulted the suggested resource and don't understand the description given, you might be a bit more explicit about that. Which question would you be more likely to respond to? I have a problem with widgets. Don't tell me to RTFM. I need an answer! or: I'm looking at the manual for widgets and it says blah. I don't understand the part about bippity-bah, and my google-fu has failed me. Does bippty-bah mean that a widget needs to be frobincated, or does it do that when it's constructed?

            Keep Calm and Carry On

            1 Reply Last reply
            0
            • L Lost User

              I do appreciate your comments, unfortunately my experience is that folks who continually reply with "RTFM" are immune to any suggestions / request to stop such behavior , mainly because they choose not to read such request. Such "contributors" may have technical knowledge , but choose NOT to share it. I also feel ( have an opinion) that majority of "RTFM" posts are posted just to add to count of " posted xyz number of posts". Some people are easy to impress with statistics... Cheers - back to coding...

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

              Someone had to RTFM ... all your rant telegraphs is that you're above it and expect someone else to give you the Cole's Notes version. Your attitude makes anyone that actually knows anything not bother because they're not interest in your (negative) responses.

              "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

              J 1 Reply Last reply
              0
              • L Lost User

                ADDENDUM I just went thru few "RTFM" - I am NOT asking how to build a template class - I am asking how to pass template object / variable to existing object. As usual , my "simple question" has turned into sermons and RTFM. As a result I realized I was correct initially asking for "replacing the this pointer", however it was obviously my fault (!) that I did not provide enough information to get real solution. So here is my latest attempt to resolve it and I sill need some real help , no RTFM PLEASE. I decided to pass only part of the data - QList - and got this far - partial constructor solution.

                explicit Form_SetupLocalAdapter(QList <*data_list>);

                However , I am getting this error and have no clue how to fix it - hence I am posting my request on this forum and - asking for solution.

                /mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/PROJECTS/RECOVERY/BLUETOOTH/SOURCE/CCC_SOURCE/terminal_SERIAL_BLUETOOTH_VER_1/terminal_SERIAL_BLUETOOTH/terminal_BLUETOOTH/form_setuplocaladapter.h:17: error: use of undeclared identifier 'data_list'
                In file included from form_setuplocaladapter.cpp:1:
                ./form_setuplocaladapter.h:17:44: error: use of undeclared identifier 'data_list'
                explicit Form_SetupLocalAdapter(QList <*data_list>);
                ^

                So - to make sure - I am asking how to resolve

                undeclared identifier 'data_list'

                I am not asking for sermon or RTFM ( got it ?) PPS I have never used template and obviously do not have a clue.( Yes, my fault - again...)

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #10

                I totally understand you must be frustrated but look at it from the perspective of someone new seeing your post. Can't say I'm thrilled to spend time looking into your issue given the tone. And you may be 100% correct. I don't know. All we can see is someone was told to read a manual and they're upset. This same person couldn't even be bothered with filling out a name for their account. Wish you the best buddy. It can be frustrating. Just hope you see it from our perspective.

                Jeremy Falcon

                L 1 Reply Last reply
                0
                • J Jeremy Falcon

                  I totally understand you must be frustrated but look at it from the perspective of someone new seeing your post. Can't say I'm thrilled to spend time looking into your issue given the tone. And you may be 100% correct. I don't know. All we can see is someone was told to read a manual and they're upset. This same person couldn't even be bothered with filling out a name for their account. Wish you the best buddy. It can be frustrating. Just hope you see it from our perspective.

                  Jeremy Falcon

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

                  Well, as "typical" - it is user's fault. I will not apologize for my "tone" - you and everybody else have a choice to ignore it and you are not my mother to criticize my "tone". As far as filling the account - I have lost my original account access, contacted "customer service" and they were unable to figure out why...and again - none of your business how I post in here.... I suppose everybody now expect me to apologize for taking valuable space here and letting out this vent ... Cheers and have swell day

                  J 1 Reply Last reply
                  0
                  • L Lost User

                    Someone had to RTFM ... all your rant telegraphs is that you're above it and expect someone else to give you the Cole's Notes version. Your attitude makes anyone that actually knows anything not bother because they're not interest in your (negative) responses.

                    "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                    J Offline
                    J Offline
                    jschell
                    wrote on last edited by
                    #12

                    Gerry Schmitz wrote:

                    our attitude makes anyone that actually knows anything not bother

                    Correction. It makes some of them not bother.

                    1 Reply Last reply
                    0
                    • L Lost User

                      I do appreciate your comments, unfortunately my experience is that folks who continually reply with "RTFM" are immune to any suggestions / request to stop such behavior , mainly because they choose not to read such request. Such "contributors" may have technical knowledge , but choose NOT to share it. I also feel ( have an opinion) that majority of "RTFM" posts are posted just to add to count of " posted xyz number of posts". Some people are easy to impress with statistics... Cheers - back to coding...

                      J Offline
                      J Offline
                      jschell
                      wrote on last edited by
                      #13

                      Member 14968771 wrote:

                      are immune to any suggestions / request to stop such behavior ,

                      Except I said nothing about that. Repeating what I said again, and what others said, is that you should point out what you already did (what part of the documentation you read) as part of your original post.

                      1 Reply Last reply
                      0
                      • L Lost User

                        Well, as "typical" - it is user's fault. I will not apologize for my "tone" - you and everybody else have a choice to ignore it and you are not my mother to criticize my "tone". As far as filling the account - I have lost my original account access, contacted "customer service" and they were unable to figure out why...and again - none of your business how I post in here.... I suppose everybody now expect me to apologize for taking valuable space here and letting out this vent ... Cheers and have swell day

                        J Offline
                        J Offline
                        Jeremy Falcon
                        wrote on last edited by
                        #14

                        Member 14968771 wrote:

                        you and everybody else have a choice to ignore it and you are not my mother to criticize my "tone".

                        Ok cool. You're a child and you'll never get help from me in the future. Enjoy your tantrum.

                        Jeremy Falcon

                        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