Closed GoogleCodeExporter closed 8 years ago
I have attached an updated version of ControlSite.cpp that should resolve this
issue.
The changes are all contained in CControlSite::Create function. In short it
checks
the registered version of the file on the system and then compares that value
to the
hash passed in the codebase value. If the value on the system is less then hash
it
does not call CoCreateInstance as to not lock any files when it calls
CoGetClassObjectFromURL. It also uses CLSID_NULL in CoGetClassObjectFromURL
which
should also help prevent the system change message. Of course if your control is
currently locked by another process (another open browser window/application
with the
control loaded) you will be prompted for reboot just like would happen in
Internet
Explorer. Hopefully this resolves the issue in a adequate manner and you can
include
the file in the project.
-Brent Booker
Original comment by Booker.B...@gmail.com
on 16 Sep 2009 at 7:55
Attachments:
I also forgot to mention since the code in the previous post uses
GetFileVersionInfo
you will need to adjust the project properties to link against version.lib.
-Brent Booker
Original comment by Booker.B...@gmail.com
on 17 Sep 2009 at 2:29
Original comment by leeor.ah...@gmail.com
on 3 Nov 2009 at 8:29
Original comment by leeor.ah...@gmail.com
on 3 Nov 2009 at 9:50
Merged Brent's changes to the trunk.
Original comment by leeor.ah...@gmail.com
on 3 Nov 2009 at 9:51
Original issue reported on code.google.com by
er.prave...@gmail.com
on 29 Jul 2009 at 10:57