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. The Lounge
  3. Monday morning excellence...

Monday morning excellence...

Scheduled Pinned Locked Moved The Lounge
visual-studiotestingbeta-testinghelp
15 Posts 9 Posters 1 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.
  • I Offline
    I Offline
    Iain Clarke Warrior Programmer
    wrote on last edited by
    #1

    Spot the mistake...

    cb->SetWindowText ("pSettings->sColName");

    Even VS's editor's colourising didn't help. I did spot it in testing though, so some dignity was salvaged. Iain.

    I am one of "those foreigners coming over here and stealing our jobs". Yay me!

    N R realJSOPR G CPalliniC 8 Replies Last reply
    0
    • I Iain Clarke Warrior Programmer

      Spot the mistake...

      cb->SetWindowText ("pSettings->sColName");

      Even VS's editor's colourising didn't help. I did spot it in testing though, so some dignity was salvaged. Iain.

      I am one of "those foreigners coming over here and stealing our jobs". Yay me!

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      Iain Clarke, Warrior Programmer wrote:

      Spot the mistake.

      You're not using VB6? :-D [Vilmos runs and hides]


      Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

      1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        Spot the mistake...

        cb->SetWindowText ("pSettings->sColName");

        Even VS's editor's colourising didn't help. I did spot it in testing though, so some dignity was salvaged. Iain.

        I am one of "those foreigners coming over here and stealing our jobs". Yay me!

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote on last edited by
        #3

        Well, the quotes make it hard to get to the indicated pointer, but other than that, it looks fine (assuming you're using MFC).

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

        I 1 Reply Last reply
        0
        • I Iain Clarke Warrior Programmer

          Spot the mistake...

          cb->SetWindowText ("pSettings->sColName");

          Even VS's editor's colourising didn't help. I did spot it in testing though, so some dignity was salvaged. Iain.

          I am one of "those foreigners coming over here and stealing our jobs". Yay me!

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          Iain Clarke, Warrior Programmer wrote:

          "pSettings->sColName"

          That's some funny stuff to deal with on a Monday morning! So, you now have a button (or whatever cb is), that's labelled pSettings->sColName. :laugh:

          "Real men drive manual transmission" - Rajesh.

          I 1 Reply Last reply
          0
          • I Iain Clarke Warrior Programmer

            Spot the mistake...

            cb->SetWindowText ("pSettings->sColName");

            Even VS's editor's colourising didn't help. I did spot it in testing though, so some dignity was salvaged. Iain.

            I am one of "those foreigners coming over here and stealing our jobs". Yay me!

            G Offline
            G Offline
            Graham Shanks
            wrote on last edited by
            #5

            Iain Clarke, Warrior Programmer wrote:

            cb->SetWindowText ("pSettings->sColName");

            Nothing's wrong with it. It compiles and executes without error. If it fails to do wanted you wanted then that's not the computer's problem. Perhaps you should lower your expectations and try again.

            Graham Librarians rule, Ook!

            I 1 Reply Last reply
            0
            • I Iain Clarke Warrior Programmer

              Spot the mistake...

              cb->SetWindowText ("pSettings->sColName");

              Even VS's editor's colourising didn't help. I did spot it in testing though, so some dignity was salvaged. Iain.

              I am one of "those foreigners coming over here and stealing our jobs". Yay me!

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

              No error, "pSettings->sColName" is a quite descriptive text... :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              In testa che avete, signor di Ceprano?

              I 1 Reply Last reply
              0
              • realJSOPR realJSOP

                Well, the quotes make it hard to get to the indicated pointer, but other than that, it looks fine (assuming you're using MFC).

                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                -----
                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                -----
                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                I Offline
                I Offline
                Iain Clarke Warrior Programmer
                wrote on last edited by
                #7

                It is perfectly legit code, so the compiler was of no help at all... It did look odd in the running dialog though! Iain.

                I am one of "those foreigners coming over here and stealing our jobs". Yay me!

                1 Reply Last reply
                0
                • CPalliniC CPallini

                  No error, "pSettings->sColName" is a quite descriptive text... :)

                  If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                  This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                  [My articles]

                  I Offline
                  I Offline
                  Iain Clarke Warrior Programmer
                  wrote on last edited by
                  #8

                  Well, it might start confusing people if my code was in a loop... You must love filling in forms with "Insert Name here"... Iain.

                  I am one of "those foreigners coming over here and stealing our jobs". Yay me!

                  1 Reply Last reply
                  0
                  • R Rajesh R Subramanian

                    Iain Clarke, Warrior Programmer wrote:

                    "pSettings->sColName"

                    That's some funny stuff to deal with on a Monday morning! So, you now have a button (or whatever cb is), that's labelled pSettings->sColName. :laugh:

                    "Real men drive manual transmission" - Rajesh.

                    I Offline
                    I Offline
                    Iain Clarke Warrior Programmer
                    wrote on last edited by
                    #9

                    Contents of a combobox, but yes! Well, not any more, I did fix it! Iain.

                    I am one of "those foreigners coming over here and stealing our jobs". Yay me!

                    1 Reply Last reply
                    0
                    • I Iain Clarke Warrior Programmer

                      Spot the mistake...

                      cb->SetWindowText ("pSettings->sColName");

                      Even VS's editor's colourising didn't help. I did spot it in testing though, so some dignity was salvaged. Iain.

                      I am one of "those foreigners coming over here and stealing our jobs". Yay me!

                      R Offline
                      R Offline
                      Ravi Bhavnani
                      wrote on last edited by
                      #10

                      Ah, a common error.  Let me fix it for you:

                      cb.Text = "pSettings->sColName";

                      ;P /ravi

                      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                      I 1 Reply Last reply
                      0
                      • I Iain Clarke Warrior Programmer

                        Spot the mistake...

                        cb->SetWindowText ("pSettings->sColName");

                        Even VS's editor's colourising didn't help. I did spot it in testing though, so some dignity was salvaged. Iain.

                        I am one of "those foreigners coming over here and stealing our jobs". Yay me!

                        R Offline
                        R Offline
                        Rage
                        wrote on last edited by
                        #11

                        The user should spot it quite quickly, in my opinion. The window/button/caption labeled "pSettings->sColName" is not intuitive in the UI...

                        I 1 Reply Last reply
                        0
                        • R Ravi Bhavnani

                          Ah, a common error.  Let me fix it for you:

                          cb.Text = "pSettings->sColName";

                          ;P /ravi

                          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                          I Offline
                          I Offline
                          Iain Clarke Warrior Programmer
                          wrote on last edited by
                          #12

                          Hehe...

                          I am one of "those foreigners coming over here and stealing our jobs". Yay me!

                          1 Reply Last reply
                          0
                          • R Rage

                            The user should spot it quite quickly, in my opinion. The window/button/caption labeled "pSettings->sColName" is not intuitive in the UI...

                            I Offline
                            I Offline
                            Iain Clarke Warrior Programmer
                            wrote on last edited by
                            #13

                            I like to think I fix problems first! I like to think... Iain.

                            I am one of "those foreigners coming over here and stealing our jobs". Yay me!

                            1 Reply Last reply
                            0
                            • G Graham Shanks

                              Iain Clarke, Warrior Programmer wrote:

                              cb->SetWindowText ("pSettings->sColName");

                              Nothing's wrong with it. It compiles and executes without error. If it fails to do wanted you wanted then that's not the computer's problem. Perhaps you should lower your expectations and try again.

                              Graham Librarians rule, Ook!

                              I Offline
                              I Offline
                              Iain Clarke Warrior Programmer
                              wrote on last edited by
                              #14

                              It's a Monday. Expectations are already pretty low! Iain.

                              I am one of "those foreigners coming over here and stealing our jobs". Yay me!

                              1 Reply Last reply
                              0
                              • I Iain Clarke Warrior Programmer

                                Spot the mistake...

                                cb->SetWindowText ("pSettings->sColName");

                                Even VS's editor's colourising didn't help. I did spot it in testing though, so some dignity was salvaged. Iain.

                                I am one of "those foreigners coming over here and stealing our jobs". Yay me!

                                G Offline
                                G Offline
                                Gary R Wheeler
                                wrote on last edited by
                                #15

                                It should have been:

                                #include "tchar.h"
                                ...
                                cb->SetWindowText(_T("pSettings->sColName"));

                                so that you could easily compile for either MBCS or UNICODE :rolleyes:.

                                Software Zen: delete this;

                                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