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. Almost stumped...

Almost stumped...

Scheduled Pinned Locked Moved The Lounge
c++databasehelpquestion
20 Posts 8 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.
  • S Single Step Debugger

    Different runtimes different problems…try to change the project options and target the same version of the framework as 2008 project does. This in theory should use the same ADO (I’m assuming you’re using ADO) libraries as your previous project.

    There is only one Ashley Judd and Salma Hayek is her prophet! Advertise here – minimum three posts per day are guaranteed.

    B Offline
    B Offline
    Bart
    wrote on last edited by
    #3

    framework? its mfc and its static - not dll....

    bart

    C 1 Reply Last reply
    0
    • B Bart

      framework? its mfc and its static - not dll....

      bart

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #4

      Even though it is static, when the exe was linked, it will likely use different .libs for VS2010 and VS2008. :)

      Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

      1 Reply Last reply
      0
      • B Bart

        Recompiled an MFC application in vs2010. Compiles OK, no problem. Runs OK, no problem. The executable wont login to sqlserver on multiple client machines even when sqlexpress with the database is local. I then tried compiling on vs2008, exe logs on everywhere and works. Dont even know what to google.... (Is this a programming question or is it a BJOTD)

        bart

        H Offline
        H Offline
        Hans Dietrich
        wrote on last edited by
        #5

        Apart from the libs, the other thing could be the manifests. Are they the same in VS2008 and VS2010?

        Best wishes, Hans


        [Hans Dietrich Software]

        B 2 Replies Last reply
        0
        • H Hans Dietrich

          Apart from the libs, the other thing could be the manifests. Are they the same in VS2008 and VS2010?

          Best wishes, Hans


          [Hans Dietrich Software]

          B Offline
          B Offline
          Bart
          wrote on last edited by
          #6

          Checking that now.... again...

          bart

          1 Reply Last reply
          0
          • B Bart

            Recompiled an MFC application in vs2010. Compiles OK, no problem. Runs OK, no problem. The executable wont login to sqlserver on multiple client machines even when sqlexpress with the database is local. I then tried compiling on vs2008, exe logs on everywhere and works. Dont even know what to google.... (Is this a programming question or is it a BJOTD)

            bart

            M Offline
            M Offline
            Mladen Jankovic
            wrote on last edited by
            #7

            Bart wrote:

            Dont even know what to google....

            Have you tried to google debug it?

            [Genetic Algorithm Library]

            B 1 Reply Last reply
            0
            • H Hans Dietrich

              Apart from the libs, the other thing could be the manifests. Are they the same in VS2008 and VS2010?

              Best wishes, Hans


              [Hans Dietrich Software]

              B Offline
              B Offline
              Bart
              wrote on last edited by
              #8

              Manifest file settings AND Manifest Tool Settings seem to be the same on both machines

              bart

              1 Reply Last reply
              0
              • B Bart

                Recompiled an MFC application in vs2010. Compiles OK, no problem. Runs OK, no problem. The executable wont login to sqlserver on multiple client machines even when sqlexpress with the database is local. I then tried compiling on vs2008, exe logs on everywhere and works. Dont even know what to google.... (Is this a programming question or is it a BJOTD)

                bart

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #9

                64 bit vs. 32 bit. Really, I have no idea. Marc

                My Blog

                B 1 Reply Last reply
                0
                • M Mladen Jankovic

                  Bart wrote:

                  Dont even know what to google....

                  Have you tried to google debug it?

                  [Genetic Algorithm Library]

                  B Offline
                  B Offline
                  Bart
                  wrote on last edited by
                  #10

                  Dont know how. It works on the development machine with Windows 7 and VS2010. Works everywhere with on the other machine with Vista and VS2008. Wonder how I can get more info on the exe that doesnt work (the output from VS2010).

                  bart

                  M 1 Reply Last reply
                  0
                  • M Marc Clifton

                    64 bit vs. 32 bit. Really, I have no idea. Marc

                    My Blog

                    B Offline
                    B Offline
                    Bart
                    wrote on last edited by
                    #11

                    Its 32 bit. I have no idea either.

                    bart

                    1 Reply Last reply
                    0
                    • B Bart

                      Recompiled an MFC application in vs2010. Compiles OK, no problem. Runs OK, no problem. The executable wont login to sqlserver on multiple client machines even when sqlexpress with the database is local. I then tried compiling on vs2008, exe logs on everywhere and works. Dont even know what to google.... (Is this a programming question or is it a BJOTD)

                      bart

                      B Offline
                      B Offline
                      Bart
                      wrote on last edited by
                      #12

                      Do you guys think SP1 will fix it?

                      bart

                      P 1 Reply Last reply
                      0
                      • B Bart

                        Recompiled an MFC application in vs2010. Compiles OK, no problem. Runs OK, no problem. The executable wont login to sqlserver on multiple client machines even when sqlexpress with the database is local. I then tried compiling on vs2008, exe logs on everywhere and works. Dont even know what to google.... (Is this a programming question or is it a BJOTD)

                        bart

                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #13

                        Run depends.exe and take a look to see if any external libraries aren't being loaded. I know you've built it static, but there still comes a point where it links across to an external DLL.

                        I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                        Forgive your enemies - it messes with their heads

                        My blog | My articles | MoXAML PowerToys | Onyx

                        B P 2 Replies Last reply
                        0
                        • B Bart

                          Do you guys think SP1 will fix it?

                          bart

                          P Offline
                          P Offline
                          Pete OHanlon
                          wrote on last edited by
                          #14

                          From what I gather, I don't think that SP1 will be any help - in fact, it may make things worse.

                          I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                          Forgive your enemies - it messes with their heads

                          My blog | My articles | MoXAML PowerToys | Onyx

                          B 1 Reply Last reply
                          0
                          • B Bart

                            Dont know how. It works on the development machine with Windows 7 and VS2010. Works everywhere with on the other machine with Vista and VS2008. Wonder how I can get more info on the exe that doesnt work (the output from VS2010).

                            bart

                            M Offline
                            M Offline
                            Mladen Jankovic
                            wrote on last edited by
                            #15

                            http://msdn.microsoft.com/en-us/library/bt727f1t(VS.71).aspx#vctskinstallingremotedebugmonitorremotedebuggingwithtcpip[^] or if you're brave enough you can do it with WinDbg.

                            [Genetic Algorithm Library]

                            1 Reply Last reply
                            0
                            • P Pete OHanlon

                              From what I gather, I don't think that SP1 will be any help - in fact, it may make things worse.

                              I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                              Forgive your enemies - it messes with their heads

                              My blog | My articles | MoXAML PowerToys | Onyx

                              B Offline
                              B Offline
                              Bart
                              wrote on last edited by
                              #16

                              Agree with that...

                              bart

                              1 Reply Last reply
                              0
                              • P Pete OHanlon

                                Run depends.exe and take a look to see if any external libraries aren't being loaded. I know you've built it static, but there still comes a point where it links across to an external DLL.

                                I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                                Forgive your enemies - it messes with their heads

                                My blog | My articles | MoXAML PowerToys | Onyx

                                B Offline
                                B Offline
                                Bart
                                wrote on last edited by
                                #17

                                OK, will try that now..

                                bart

                                1 Reply Last reply
                                0
                                • P Pete OHanlon

                                  Run depends.exe and take a look to see if any external libraries aren't being loaded. I know you've built it static, but there still comes a point where it links across to an external DLL.

                                  I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                                  Forgive your enemies - it messes with their heads

                                  My blog | My articles | MoXAML PowerToys | Onyx

                                  P Offline
                                  P Offline
                                  Pong D Panda
                                  wrote on last edited by
                                  #18

                                  Try checking the application log. And dont swallow exceptions on your code.

                                  P 1 Reply Last reply
                                  0
                                  • P Pong D Panda

                                    Try checking the application log. And dont swallow exceptions on your code.

                                    P Offline
                                    P Offline
                                    Pete OHanlon
                                    wrote on last edited by
                                    #19

                                    I don't. Perhaps you meant this for the OP - they only get notified of replies to their messages, not ones posted against somebody else.

                                    I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                                    Forgive your enemies - it messes with their heads

                                    My blog | My articles | MoXAML PowerToys | Onyx

                                    1 Reply Last reply
                                    0
                                    • B Bart

                                      Recompiled an MFC application in vs2010. Compiles OK, no problem. Runs OK, no problem. The executable wont login to sqlserver on multiple client machines even when sqlexpress with the database is local. I then tried compiling on vs2008, exe logs on everywhere and works. Dont even know what to google.... (Is this a programming question or is it a BJOTD)

                                      bart

                                      B Offline
                                      B Offline
                                      Bart
                                      wrote on last edited by
                                      #20

                                      OK, now I know the problem but cant fix it yet. Its this: _ConnectionPtr con; blah blah con->Open( blah <- (not a code problem as we are in the lounge) catch (_com_error blah Now, all works everywhere when I compile with VS2008 but doesnt work when I compile on W7 with 2010. Note that the exe wont even run on a w7 machine without VS2010. So it is quite obvious that VS 2010 has updated something...MDAC?? Has it?

                                      bart

                                      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