Click here to Skip to main content
15,899,474 members
Home / Discussions / COM
   

COM

 
Questionregarding projects in asp.net Pin
hishhash2-Dec-06 0:16
hishhash2-Dec-06 0:16 
QuestionWMI Win32_pingStatus Pin
abhiramsss1-Dec-06 7:13
abhiramsss1-Dec-06 7:13 
QuestionChanging the size of ToolBand Dynamically Pin
georgekjolly1-Dec-06 0:59
georgekjolly1-Dec-06 0:59 
QuestionHow to take X , Y Coordinates of HTML Element Collections Pin
georgekjolly30-Nov-06 22:13
georgekjolly30-Nov-06 22:13 
QuestionHow do I use a third party Windows Forms control (VB.NET) Pin
tintinchasm30-Nov-06 3:13
tintinchasm30-Nov-06 3:13 
QuestionActivex GUI project Pin
jfuhrer30-Nov-06 2:09
jfuhrer30-Nov-06 2:09 
AnswerRe: Activex GUI project Pin
lafleon4-Dec-06 12:44
lafleon4-Dec-06 12:44 
QuestionHello. Pin
planC29-Nov-06 14:09
planC29-Nov-06 14:09 
Hi~

I am programming a customized web browser with IWebBrowser2 in windows ce 5.0
And I want to embody some functions which copy/cut/paste.

I made it in Win32 Application already..
Using by these ways

Way1
HRESULT hr = m_pWeb->ExecWB(
OLECMDID_COPY, OLECMDEXECOPT_DODEFAULT, NULL, NULL);
if (FAILED(hr))
{
int n = GetLastError();
ASSERT(false);
}

Way2
IHTMLDocument2 *pHtmlDoc;
hr = pDispatch->QueryInterface<ihtmldocument2>(&pHtmlDoc);
EHResult::CheckException(
L"CMainFrame.Copy.QueryInterface<ihtmldocument2> Fail (0x%08x)", hr);

IHTMLSelectionObject *pHtmlObj;
hr = pHtmlDoc->get_selection(&pHtmlObj);
EHResult::CheckException(L"CMainFrame.Copy.get_selection Fail (0x%08x)", hr);
{
IDispatch *pRange;
hr = pHtmlObj->createRange(&pRange);
EHResult::CheckException(L"CMainFrame.Copy.createRange Fail (0x%08x)", hr);

IHTMLTxtRange *pText;
hr = pRange->QueryInterface<ihtmltxtrange>(&pText);
EHResult::CheckException(
L"CMainFrame.Copy.QueryInterface<ihtmltxtrange> Fail (0x%08x)", hr);

VARIANT null;
VariantInit(&null);

VARIANT_BOOL isOk;
hr = pText->execCommand(L"Copy", VARIANT_FALSE, null, &isOk);
EHResult::CheckException(L"CMainFrame.Copy.execCommand Fail (0x%08x)", hr);
}

But It doesn't work in windows ce 5.0 -0-
What should I do now~

And I have one more trouble.
I have to control the element's focus (in html document like ANCHORs or
CONTROLs) by arrow key.
Is there a way get the current focus of elements??

It also possible to get in Win32 by pHtmlDoc->get_activeElement
But Win CE 5.0 -0-

Please Help me~
Thank you.
QuestionCOM Wrapper Pin
sheetal_0628-Nov-06 23:07
sheetal_0628-Nov-06 23:07 
AnswerRe: COM Wrapper Pin
User 21559729-Nov-06 4:53
User 21559729-Nov-06 4:53 
GeneralRe: COM Wrapper Pin
sheetal_0629-Nov-06 17:58
sheetal_0629-Nov-06 17:58 
QuestionActiveX Control Pin
HakunaMatada27-Nov-06 17:04
HakunaMatada27-Nov-06 17:04 
AnswerRe: ActiveX Control Pin
Roger Stoltz27-Nov-06 20:55
Roger Stoltz27-Nov-06 20:55 
GeneralRe: ActiveX Control Pin
HakunaMatada27-Nov-06 21:29
HakunaMatada27-Nov-06 21:29 
GeneralRe: ActiveX Control Pin
Roger Stoltz27-Nov-06 21:49
Roger Stoltz27-Nov-06 21:49 
QuestionWMI Pin
abhiramsss27-Nov-06 9:38
abhiramsss27-Nov-06 9:38 
QuestionUnhandled Exception in Popup blocker code Pin
georgekjolly25-Nov-06 3:56
georgekjolly25-Nov-06 3:56 
QuestionIE window manipulation using web browser object Pin
georgekjolly25-Nov-06 2:22
georgekjolly25-Nov-06 2:22 
QuestionAccess Violation occur when use goForward() or goBack() method in IWebBrowser2 Pin
Lee bo24-Nov-06 3:30
Lee bo24-Nov-06 3:30 
AnswerRe: Access Violation occur when use goForward() or goBack() method in IWebBrowser2 Pin
Roger Stoltz24-Nov-06 4:55
Roger Stoltz24-Nov-06 4:55 
QuestionAdding function to interface. Pin
Suresh H22-Nov-06 18:15
Suresh H22-Nov-06 18:15 
QuestionHow can i call C# interface function from C++ ( visual 6 ) application ? Pin
Yanshof22-Nov-06 0:55
Yanshof22-Nov-06 0:55 
AnswerRe: How can i call C# interface function from C++ ( visual 6 ) application ? Pin
ThatsAlok3-Dec-06 19:33
ThatsAlok3-Dec-06 19:33 
QuestionHow do you implement an Event Sink without a Type Library? Pin
Bathory's Curse21-Nov-06 7:01
Bathory's Curse21-Nov-06 7:01 
AnswerRe: How do you implement an Event Sink without a Type Library? Pin
Stephen Hewitt21-Nov-06 11:50
Stephen Hewitt21-Nov-06 11:50 

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.