Re: XP SP2, OLECMDID_COPY no longer works (no error, no copy!)
From: mayayana (mayaXXyana1a_at_mindYYspring.com)
Date: 09/08/04
- Next message: Sachin: "wrong SHDocVw.tagREADYSTATE message during the loading period"
- Previous message: John Cullen: "XP SP2, OLECMDID_COPY no longer works (no error, no copy!)"
- In reply to: John Cullen: "XP SP2, OLECMDID_COPY no longer works (no error, no copy!)"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 08 Sep 2004 12:57:25 GMT
It's probably the "Local Machine Lockdown" in SP2,
which overrides IE security settings. See here:
http://www.jsware.net/jsware/iewacky.html#scrinfo
-- -- John Cullen <eturtle@address.com> wrote in message news:3bd954a8.0409080201.559831e3@posting.google.com... > For one of our projects we implemented (in C++) a webbrowser control > based on the IWebBrowser2 interface. This code has worked fine under > all OSes for a couple of years now, however after installing XP SP2 > suddenly the ability to programmatically copy the content of an > embedded browser to the clipboard has ceased to function. The relevant > code could not be much simpler: > > ExecWB( OLECMDID_SELECTALL, OLECMDEXECOPT_DONTPROMPTUSER, NULL, NULL > ); > ExecWB( OLECMDID_COPY, OLECMDEXECOPT_DONTPROMPTUSER, NULL, NULL ); > ExecWB( OLECMDID_CLEARSELECTION, OLECMDEXECOPT_DONTPROMPTUSER, NULL, > NULL ); > > I know this change is related to the new security features implemented > in SP2, but does anyone know *how to get around it*?? When using > script, and a normal browser window, it's possbile to have the new > information bar popup asking if the user wishes to allow the operation > of not, however for an embedded browser, in the middle of an > application, this is neither acceptable, nor possible. > > Attempts to correct the problem by changing the various security and > advanced IE settings (e.g. allow scripting etc.) have not resulted in > any success. > > Incidentally, printing, via OLECMDID_PRINT, continues to work as > expected. > > If anyone can shed any light on this problem, I'll be eternally > grateful :-) And if anyone *does* reply, please *also* reply to my > email address because I'm posting via Google Groups, and replies take > 6-9 hours to appear :-( > > Many thanks, > > John > > -- > Email: jjcullen AT yahoo DOT com
- Next message: Sachin: "wrong SHDocVw.tagREADYSTATE message during the loading period"
- Previous message: John Cullen: "XP SP2, OLECMDID_COPY no longer works (no error, no copy!)"
- In reply to: John Cullen: "XP SP2, OLECMDID_COPY no longer works (no error, no copy!)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|