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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Application fails to update registry using COleTemplateServer::UpdateRegistry with Win2000

Application fails to update registry using COleTemplateServer::UpdateRegistry with Win2000

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadminwindows-adminquestionannouncement
4 Posts 3 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.
  • L Offline
    L Offline
    Luis E Cuadrado
    wrote on last edited by
    #1

    Hello Everybody: I'm having a problem whenever my application is executed without administrator privileges in Win2000. An ASSERT error comes out. Something that I noticed is when I click ignore, a blank AfxMessageBox comes out with just the OK button. When you clicked OK, the application continues. I look at the code, and the error happens in InitInstance() of the application. The error is exactly in this line: // When a server application is launched stand-alone, it is a good idea // to update the system registry in case it has been damaged. m_server.UpdateRegistry(OAT_DISPATCH_OBJECT); Have any of you experienced this problem before? If so, is there any solution to solve this? Any answer is more than welcome. Thanks, Luis E. Luis E. Cuadrado :0)

    M H L 3 Replies Last reply
    0
    • L Luis E Cuadrado

      Hello Everybody: I'm having a problem whenever my application is executed without administrator privileges in Win2000. An ASSERT error comes out. Something that I noticed is when I click ignore, a blank AfxMessageBox comes out with just the OK button. When you clicked OK, the application continues. I look at the code, and the error happens in InitInstance() of the application. The error is exactly in this line: // When a server application is launched stand-alone, it is a good idea // to update the system registry in case it has been damaged. m_server.UpdateRegistry(OAT_DISPATCH_OBJECT); Have any of you experienced this problem before? If so, is there any solution to solve this? Any answer is more than welcome. Thanks, Luis E. Luis E. Cuadrado :0)

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      The line is trying to update a protected registry key whilst updating the COM automation server registration. The way around it is to perform all your registrations on installation when the user will have the correct access rights. If you are not using your app as a COM server then you could just remove the line and the other m_server related code. Michael Life’s not a song. Life isn’t bliss. Life is just this. It’s living. -- Buffy the Vampire Slayer: Once more, with feeling

      1 Reply Last reply
      0
      • L Luis E Cuadrado

        Hello Everybody: I'm having a problem whenever my application is executed without administrator privileges in Win2000. An ASSERT error comes out. Something that I noticed is when I click ignore, a blank AfxMessageBox comes out with just the OK button. When you clicked OK, the application continues. I look at the code, and the error happens in InitInstance() of the application. The error is exactly in this line: // When a server application is launched stand-alone, it is a good idea // to update the system registry in case it has been damaged. m_server.UpdateRegistry(OAT_DISPATCH_OBJECT); Have any of you experienced this problem before? If so, is there any solution to solve this? Any answer is more than welcome. Thanks, Luis E. Luis E. Cuadrado :0)

        H Offline
        H Offline
        Hans Georg Ulrich
        wrote on last edited by
        #3

        http://support.microsoft.com/support/kb/articles/Q254/9/57.ASP[^]

        1 Reply Last reply
        0
        • L Luis E Cuadrado

          Hello Everybody: I'm having a problem whenever my application is executed without administrator privileges in Win2000. An ASSERT error comes out. Something that I noticed is when I click ignore, a blank AfxMessageBox comes out with just the OK button. When you clicked OK, the application continues. I look at the code, and the error happens in InitInstance() of the application. The error is exactly in this line: // When a server application is launched stand-alone, it is a good idea // to update the system registry in case it has been damaged. m_server.UpdateRegistry(OAT_DISPATCH_OBJECT); Have any of you experienced this problem before? If so, is there any solution to solve this? Any answer is more than welcome. Thanks, Luis E. Luis E. Cuadrado :0)

          L Offline
          L Offline
          Luis E Cuadrado
          wrote on last edited by
          #4

          Well, I visited the link that Hans-Georg Ulrich provided. I did everything that the article said and it worked. Thank you Michael P Butler and Hans-Georg Ulrich for your help in this thread. Take care and see you later here :0). Best regards, Luis E. Luis E. Cuadrado :0)

          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