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. MFC C++ Compiler Options difference between the debug and release

MFC C++ Compiler Options difference between the debug and release

Scheduled Pinned Locked Moved C / C++ / MFC
c++announcementdebugging
12 Posts 6 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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi I just used SnagIt Screen Capture to go over window pane by window pane of both the compiler options for debug and release and the only debug and release version is the run time library 1) release its Multi threaded DLL /MD while in Debug its debug DLL /MDd However I keep on getting different compile errors at one point I had a clean build for Debug while Release was giving me errors

    D 1 Reply Last reply
    0
    • F ForNow

      Hi I just used SnagIt Screen Capture to go over window pane by window pane of both the compiler options for debug and release and the only debug and release version is the run time library 1) release its Multi threaded DLL /MD while in Debug its debug DLL /MDd However I keep on getting different compile errors at one point I had a clean build for Debug while Release was giving me errors

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      ForNow wrote:

      ...while Release was giving me errors

      And those would be?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      F 1 Reply Last reply
      0
      • D David Crow

        ForNow wrote:

        ...while Release was giving me errors

        And those would be?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks

        L J D V 4 Replies Last reply
        0
        • F ForNow

          mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks

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

          Well we still have no real idea what your problem is.

          M 1 Reply Last reply
          0
          • F ForNow

            mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks

            J Offline
            J Offline
            Jochen Arndt
            wrote on last edited by
            #5

            LPCTSTR = Long Pointer to Const Tchar STRing This will be const wchar_t * for Unicode builds and const char * for ANSI/multi-byte builds.

            F 1 Reply Last reply
            0
            • F ForNow

              mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              This has nothing to do with compiler options, per se. Use the _T() macro for the format string.

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

              1 Reply Last reply
              0
              • J Jochen Arndt

                LPCTSTR = Long Pointer to Const Tchar STRing This will be const wchar_t * for Unicode builds and const char * for ANSI/multi-byte builds.

                F Offline
                F Offline
                ForNow
                wrote on last edited by
                #7

                thanks

                1 Reply Last reply
                0
                • F ForNow

                  mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks

                  V Offline
                  V Offline
                  Victor Nijegorodov
                  wrote on last edited by
                  #8

                  ForNow wrote:

                  mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string

                  Please, next time show the exact error message together with a line (or a couple of lines) causing the error.

                  1 Reply Last reply
                  0
                  • L Lost User

                    Well we still have no real idea what your problem is.

                    M Offline
                    M Offline
                    Munchies_Matt
                    wrote on last edited by
                    #9

                    English perhaps?

                    L 1 Reply Last reply
                    0
                    • M Munchies_Matt

                      English perhaps?

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

                      Well he is 'mercan ;)

                      M 1 Reply Last reply
                      0
                      • L Lost User

                        Well he is 'mercan ;)

                        M Offline
                        M Offline
                        Munchies_Matt
                        wrote on last edited by
                        #11

                        Really? His sentence structure was more that of a Mandarin speaker using bad English. :wtf:

                        L 1 Reply Last reply
                        0
                        • M Munchies_Matt

                          Really? His sentence structure was more that of a Mandarin speaker using bad English. :wtf:

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

                          Ah, me velly solly.

                          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