Click here to Skip to main content
15,902,447 members
Home / Discussions / COM
   

COM

 
QuestionCOM Event Handling for IWebBrowser and HTML-Documents in a frameset Pin
Yomok13-Mar-06 21:05
Yomok13-Mar-06 21:05 
QuestionHelp needed: error LNK2001: unresolved external symbol _CLSID_WMRMKeys Pin
yongwpi13-Mar-06 6:36
yongwpi13-Mar-06 6:36 
AnswerRe: Help needed: error LNK2001: unresolved external symbol _CLSID_WMRMKeys Pin
Ray Kinsella13-Mar-06 22:43
Ray Kinsella13-Mar-06 22:43 
QuestionHow to Add t Pin
expertshatru12-Mar-06 1:32
expertshatru12-Mar-06 1:32 
AnswerRe: How to Add t Pin
khan++15-Mar-06 22:56
khan++15-Mar-06 22:56 
QuestionAdd icon to contact card view in Outlook Pin
docer10-Mar-06 23:11
docer10-Mar-06 23:11 
Questionsaving drawings Pin
_tasleem10-Mar-06 23:06
_tasleem10-Mar-06 23:06 
QuestionProblem customizing hosted Internet Explorer Pin
q_q_q10-Mar-06 6:27
q_q_q10-Mar-06 6:27 
There is an application with hosted Internet Explorer (WebBrowser). I have a problem with customizing
IE preferences. They are to be customized only for an instance of Internet Explorer without affecting
global preferences stored at HKCU\Software\Microsoft\Internet Explorer.

1. I need to specify default page, colors, CSS styles and font size. I use
IDocHostUIHandler::GetOptionKeyPath to specify registry path with custom preferences:

STDMETHODIMP rbDHTMLBridge::GetOptionKeyPath(BSTR __RPC_FAR *pbstrKey, DWORD dw)
{
MessageBox(NULL,"GetOptionKeyPath", "GetOptionKeyPath", MB_OK);
static LPCWSTR lpwszKey = L"Software\\MyApp";
if ((*pbstrKey = (LPOLESTR)CoTaskMemAlloc((wcslen(lpwszKey) + 1) * sizeof(OLECHAR))) != NULL) {
wcscpy(*pbstrKey, lpwszKey);
} else {
return E_INVALIDARG;
}
return S_OK;
}
Function is called by IE and returns S_OK. But it does not affect hosted IE: it uses global
preferences.
Why it didn't work? May be I missed some initialization?

2. I need to remove footer and header of HTML pages printed using hosted IE. It can't be done
by GetOptionKeyPath (Internet Explorer uses global preferences for footer and header in any case).
It can be done by WebBrowser.ExecWB(OLECMDID_PRINT, ...) as described in
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q267240. I copied code from this article into
my application but it didn't work. Footer and header from original page were used on the printed page.
Why it didn't work?
May be the reason is what i have IE6.0 but the highest version of IE in APPLIES TO section of the article is 5.0?

Any help will be appreciated.
QuestionImplementing MDI in an ActiveX control Pin
zulat10-Mar-06 0:01
zulat10-Mar-06 0:01 
QuestionPassing the COM Interface reference Pin
itkid9-Mar-06 21:44
itkid9-Mar-06 21:44 
AnswerRe: Passing the COM Interface reference Pin
Roger Stoltz10-Mar-06 1:53
Roger Stoltz10-Mar-06 1:53 
QuestionRPC System Fail in Windows NT 4 & mswinsck.ocx missing Pin
TheKriminal9-Mar-06 0:50
TheKriminal9-Mar-06 0:50 
QuestionHelp Me! Thank you very much! Pin
Best Kiluyar8-Mar-06 20:52
Best Kiluyar8-Mar-06 20:52 
AnswerRe: Help Me! Thank you very much! Pin
Lim Bio Liong9-Mar-06 19:58
Lim Bio Liong9-Mar-06 19:58 
GeneralRe: Help Me! Thank you very much! Pin
Best Kiluyar9-Mar-06 22:18
Best Kiluyar9-Mar-06 22:18 
GeneralRe: Help Me! Thank you very much! Pin
Lim Bio Liong9-Mar-06 22:47
Lim Bio Liong9-Mar-06 22:47 
QuestionHow to Drawing in word Through C# Pin
sam_g18-Mar-06 0:36
sam_g18-Mar-06 0:36 
QuestionSystem.Runtime.InteropServices.COMException (0x800C0008): The download of the specified resource has failed. Pin
imunevar7-Mar-06 15:24
imunevar7-Mar-06 15:24 
QuestionAbout Remoting topic Pin
ashishnagar17-Mar-06 2:21
ashishnagar17-Mar-06 2:21 
Questionworking with VB .dll Pin
_kane_7-Mar-06 1:03
_kane_7-Mar-06 1:03 
QuestionHow to connect to the Automation server which is not registered in ROT. Pin
oleg636-Mar-06 5:37
professionaloleg636-Mar-06 5:37 
QuestionHow to trap IE refresh Pin
tenali_gowda5-Mar-06 20:41
tenali_gowda5-Mar-06 20:41 
QuestionPassing user defined object between COM component and client Pin
dario_alvarez5-Mar-06 12:37
dario_alvarez5-Mar-06 12:37 
QuestionBSTR problems in COM Service Pin
RobCraig3-Mar-06 9:12
RobCraig3-Mar-06 9:12 
AnswerRe: BSTR problems in COM Service Pin
Gerald Schwab3-Mar-06 10:02
Gerald Schwab3-Mar-06 10:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.