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. Help me to decipher the error messages

Help me to decipher the error messages

Scheduled Pinned Locked Moved C / C++ / MFC
helpdatabase
9 Posts 5 Posters 54 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 Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.

                    QAction tempAction;
                    subMenu\[index\]->addAction(" test ");
                    subMenu\[index\]->addAction(tempAction.setCheckable(true));
    
    L D Richard Andrew x64R CPalliniC J 6 Replies Last reply
    0
    • L Lost User

      The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.

                      QAction tempAction;
                      subMenu\[index\]->addAction(" test ");
                      subMenu\[index\]->addAction(tempAction.setCheckable(true));
      
      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Posting such a question without the error message is not very helpful. Please make sure you post all the relevant information.

      1 Reply Last reply
      0
      • L Lost User

        The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.

                        QAction tempAction;
                        subMenu\[index\]->addAction(" test ");
                        subMenu\[index\]->addAction(tempAction.setCheckable(true));
        
        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Don't make a post with a teensy bit of code and no errors, then ask "is someone willing to help?" Because if you don't supply ALL of the information on the problem, the answer is going to be NO. All you're doing is wasting time because now you have to wait for an answer of "Sure!" before you post the rest of the information required to solve the problem, then wait some more for an actual answer.

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

        1 Reply Last reply
        0
        • L Lost User

          The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.

                          QAction tempAction;
                          subMenu\[index\]->addAction(" test ");
                          subMenu\[index\]->addAction(tempAction.setCheckable(true));
          
          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Best guess: you're mixing types; which only works for things "typed as object".

          "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

          1 Reply Last reply
          0
          • L Lost User

            The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.

                            QAction tempAction;
                            subMenu\[index\]->addAction(" test ");
                            subMenu\[index\]->addAction(tempAction.setCheckable(true));
            
            Richard Andrew x64R Offline
            Richard Andrew x64R Offline
            Richard Andrew x64
            wrote on last edited by
            #5

            Oh, so we need to pass a little test before we're allowed to respond to your post? How childish.

            The difficult we do right away... ...the impossible takes slightly longer.

            1 Reply Last reply
            0
            • L Lost User

              The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.

                              QAction tempAction;
                              subMenu\[index\]->addAction(" test ");
                              subMenu\[index\]->addAction(tempAction.setCheckable(true));
              
              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #6

              Please help us to answer your post.

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

              In testa che avete, signor di Ceprano?

              1 Reply Last reply
              0
              • L Lost User

                The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.

                                QAction tempAction;
                                subMenu\[index\]->addAction(" test ");
                                subMenu\[index\]->addAction(tempAction.setCheckable(true));
                
                J Offline
                J Offline
                jschell
                wrote on last edited by
                #7

                As noted not enough information. And the cause is based on what the exact type (resolved by the compiler) for 'subMenu[index]' So for example from Qt docs a QWidget addAction() method takes a pointer to a QAction. And in that case a char pointer would not work. (I got that by RTFM by the way.)

                L 1 Reply Last reply
                0
                • J jschell

                  As noted not enough information. And the cause is based on what the exact type (resolved by the compiler) for 'subMenu[index]' So for example from Qt docs a QWidget addAction() method takes a pointer to a QAction. And in that case a char pointer would not work. (I got that by RTFM by the way.)

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

                  jschell wrote:

                  I got that by RTFM by the way

                  Me too, but I couldn't be bothered to edit my original reply. This guy really takes the biscuit (cookie).

                  L 1 Reply Last reply
                  0
                  • L Lost User

                    jschell wrote:

                    I got that by RTFM by the way

                    Me too, but I couldn't be bothered to edit my original reply. This guy really takes the biscuit (cookie).

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

                    I think it's the same cookie under a different name.

                    "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

                    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