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. Visual Studio
  4. we can not debugging this program with visual studio 2015

we can not debugging this program with visual studio 2015

Scheduled Pinned Locked Moved Visual Studio
c++helpcsharpvisual-studiocryptography
11 Posts 3 Posters 4 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.
  • U Offline
    U Offline
    User 12855950
    wrote on last edited by
    #1

    Hi there we want to debug GASChedule. But it not starting on visual studio 2015. we got some errors. This errors are: "Error C2338 <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning. GenetikAlgoritma c:\program files (x86)\microsoft visual studio 14.0\vc\include\hash_map 17" and "Error C2664 'BOOL CFont::CreateFontW(int,int,int,int,int,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,LPCTSTR)': cannot convert argument 14 from 'const char [6]' to 'LPCTSTR' GenetikAlgoritma c:\users\özge\documents\visual studio 2015\projects\genetikalgoritma\genetikalgoritma\childview.cpp 115" and "Error C2664 'void ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>>>::Format(UINT,...)': cannot convert argument 1 from 'const char [9]' to 'const wchar_t *' GenetikAlgoritma c:\users\özge\documents\visual studio 2015\projects\genetikalgoritma\genetikalgoritma\childview.cpp 163" how can we fix it? Thanks

    R L 2 Replies Last reply
    0
    • U User 12855950

      Hi there we want to debug GASChedule. But it not starting on visual studio 2015. we got some errors. This errors are: "Error C2338 <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning. GenetikAlgoritma c:\program files (x86)\microsoft visual studio 14.0\vc\include\hash_map 17" and "Error C2664 'BOOL CFont::CreateFontW(int,int,int,int,int,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,LPCTSTR)': cannot convert argument 14 from 'const char [6]' to 'LPCTSTR' GenetikAlgoritma c:\users\özge\documents\visual studio 2015\projects\genetikalgoritma\genetikalgoritma\childview.cpp 115" and "Error C2664 'void ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>>>::Format(UINT,...)': cannot convert argument 1 from 'const char [9]' to 'const wchar_t *' GenetikAlgoritma c:\users\özge\documents\visual studio 2015\projects\genetikalgoritma\genetikalgoritma\childview.cpp 163" how can we fix it? Thanks

      R Offline
      R Offline
      RedDk
      wrote on last edited by
      #2

      As mentioned while this question was in the Lounge, paraphrased so that I can understand it myself, Visual Studio projects are sensitive to code methodology deployed in GAC under the .NET Framework in that attempting to open one project made by one version often causes things llike "deprecation" warnings ... but wait, and perhaps you've already done this ... Try creating an entirely new project with the version of Visual Studio you have then add your code files to it. Deprecation might be a warning ... but things that have been corrected in the standards between VS versions will always show up when the compiler (that's the "C" prefix to the numeric four-character error code) or the linker ("L"), is at odds with a .NET version. Sometimes you can rollback the version. But only after you load and save the project as a new (2015) one. Visual Studio gets better IMHO with every new version especially with respect to WARNINGS and INTELLISENSE; chances are once you get the code into something that gets past the complete rejection message, you'll be that much closer to getting the debugger to do it's thing.

      U 1 Reply Last reply
      0
      • R RedDk

        As mentioned while this question was in the Lounge, paraphrased so that I can understand it myself, Visual Studio projects are sensitive to code methodology deployed in GAC under the .NET Framework in that attempting to open one project made by one version often causes things llike "deprecation" warnings ... but wait, and perhaps you've already done this ... Try creating an entirely new project with the version of Visual Studio you have then add your code files to it. Deprecation might be a warning ... but things that have been corrected in the standards between VS versions will always show up when the compiler (that's the "C" prefix to the numeric four-character error code) or the linker ("L"), is at odds with a .NET version. Sometimes you can rollback the version. But only after you load and save the project as a new (2015) one. Visual Studio gets better IMHO with every new version especially with respect to WARNINGS and INTELLISENSE; chances are once you get the code into something that gets past the complete rejection message, you'll be that much closer to getting the debugger to do it's thing.

        U Offline
        U Offline
        User 12855950
        wrote on last edited by
        #3

        Hi We openned new project on VS 2015. We copied files. we got this messages. "An error occured while creating or opening the c++ browsing database file ..../GASchedule.sdf. Intellisense and browsing information will not be available for c++ projects. Remedy(s) to try: Ensure that no other applications are accessing the file. Ensure that Microsoft SQL Server Compact 4.0 is installed. İf this problem persists, the late the file and reopen the solution." How we can fix it? Thanks

        R L 2 Replies Last reply
        0
        • U User 12855950

          Hi We openned new project on VS 2015. We copied files. we got this messages. "An error occured while creating or opening the c++ browsing database file ..../GASchedule.sdf. Intellisense and browsing information will not be available for c++ projects. Remedy(s) to try: Ensure that no other applications are accessing the file. Ensure that Microsoft SQL Server Compact 4.0 is installed. İf this problem persists, the late the file and reopen the solution." How we can fix it? Thanks

          R Offline
          R Offline
          RedDk
          wrote on last edited by
          #4

          Yes! Exactly, I left out a very crucial fact ... and what you bring up might make the original project viable enough for your VS2015 to accomplish an OPEN. Before attempting to open the .prj, DELETE any .sdf or .pdb and even DELETE the .suo! Sorry about that. Does that help?

          U 2 Replies Last reply
          0
          • U User 12855950

            Hi We openned new project on VS 2015. We copied files. we got this messages. "An error occured while creating or opening the c++ browsing database file ..../GASchedule.sdf. Intellisense and browsing information will not be available for c++ projects. Remedy(s) to try: Ensure that no other applications are accessing the file. Ensure that Microsoft SQL Server Compact 4.0 is installed. İf this problem persists, the late the file and reopen the solution." How we can fix it? Thanks

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

            When you create a new project you should copy only the source files, not the ones created by Visual ~Studio.

            1 Reply Last reply
            0
            • U User 12855950

              Hi there we want to debug GASChedule. But it not starting on visual studio 2015. we got some errors. This errors are: "Error C2338 <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning. GenetikAlgoritma c:\program files (x86)\microsoft visual studio 14.0\vc\include\hash_map 17" and "Error C2664 'BOOL CFont::CreateFontW(int,int,int,int,int,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,LPCTSTR)': cannot convert argument 14 from 'const char [6]' to 'LPCTSTR' GenetikAlgoritma c:\users\özge\documents\visual studio 2015\projects\genetikalgoritma\genetikalgoritma\childview.cpp 115" and "Error C2664 'void ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>>>::Format(UINT,...)': cannot convert argument 1 from 'const char [9]' to 'const wchar_t *' GenetikAlgoritma c:\users\özge\documents\visual studio 2015\projects\genetikalgoritma\genetikalgoritma\childview.cpp 163" how can we fix it? Thanks

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

              Member 12888494 wrote:

              cannot convert argument 14 from 'const char [6]' to 'LPCTSTR'

              You are using CreateFont**W** which requires all string parameters to be Unicode, not ASCII. Same issue with your CStringT.

              U 1 Reply Last reply
              0
              • R RedDk

                Yes! Exactly, I left out a very crucial fact ... and what you bring up might make the original project viable enough for your VS2015 to accomplish an OPEN. Before attempting to open the .prj, DELETE any .sdf or .pdb and even DELETE the .suo! Sorry about that. Does that help?

                U Offline
                U Offline
                User 12855950
                wrote on last edited by
                #7

                Hi Thanks we fixed it :) But we have new warning "Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/SAFESEH'"

                1 Reply Last reply
                0
                • R RedDk

                  Yes! Exactly, I left out a very crucial fact ... and what you bring up might make the original project viable enough for your VS2015 to accomplish an OPEN. Before attempting to open the .prj, DELETE any .sdf or .pdb and even DELETE the .suo! Sorry about that. Does that help?

                  U Offline
                  U Offline
                  User 12855950
                  wrote on last edited by
                  #8

                  Hi We have new problem. this is: "Debug Assertion Failed! Expression: list iterator not incrementable For information on how your program can cause an assertion failure, see the Visual C++ documantation on asserts. (Press REtry to debug the application)" how can we fix it?:) Thanks

                  R 1 Reply Last reply
                  0
                  • L Lost User

                    Member 12888494 wrote:

                    cannot convert argument 14 from 'const char [6]' to 'LPCTSTR'

                    You are using CreateFont**W** which requires all string parameters to be Unicode, not ASCII. Same issue with your CStringT.

                    U Offline
                    U Offline
                    User 12855950
                    wrote on last edited by
                    #9

                    Hi
                    We have new problem.
                    this is:
                    "Debug Assertion Failed!

                    Expression: list iterator not incrementable

                    For information on how your program can cause an assertion failure, see the Visual C++ documantation on asserts.

                    (Press REtry to debug the application)"

                    how can we fix it?Smile | :)
                    Thanks

                    L 1 Reply Last reply
                    0
                    • U User 12855950

                      Hi
                      We have new problem.
                      this is:
                      "Debug Assertion Failed!

                      Expression: list iterator not incrementable

                      For information on how your program can cause an assertion failure, see the Visual C++ documantation on asserts.

                      (Press REtry to debug the application)"

                      how can we fix it?Smile | :)
                      Thanks

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

                      You fix it by correcting your code so it does not try to break the rules. The error message tells you what you are doing wrong, so go to that place in the code and see what is happening.

                      1 Reply Last reply
                      0
                      • U User 12855950

                        Hi We have new problem. this is: "Debug Assertion Failed! Expression: list iterator not incrementable For information on how your program can cause an assertion failure, see the Visual C++ documantation on asserts. (Press REtry to debug the application)" how can we fix it?:) Thanks

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

                        For the LNK error see: https://msdn.microsoft.com/en-us/library/3ec25010.aspx As you can see here, MSDN help for VS is online too. I suggest going here: https://code.msdn.microsoft.com/ And doing the dew ... :thumbsup:

                        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