Click here to Skip to main content
15,915,094 members
Home / Discussions / COM
   

COM

 
GeneralRe: "First Chance exception in ole32.dll " Pin
6-Feb-02 8:46
suss6-Feb-02 8:46 
GeneralLite HTML Control opens new Browser... Pin
Tim Rymer1-Feb-02 9:23
Tim Rymer1-Feb-02 9:23 
Generalok fixed that, now how do i get it to scroll? Pin
Tim Rymer1-Feb-02 9:37
Tim Rymer1-Feb-02 9:37 
GeneralTrying to get IHTMLTxtRange obj... Pin
Tim Rymer1-Feb-02 5:40
Tim Rymer1-Feb-02 5:40 
GeneralHAHAHAHAHA Nevermind... just kidding! i Know how to call queryinterface() HAHAAHAH Pin
Tim Rymer1-Feb-02 6:42
Tim Rymer1-Feb-02 6:42 
Generalis my face red? that's what happens when you're self taught w/o books...d'oh it's good to laugh at yourself sometimes! Pin
Tim Rymer1-Feb-02 6:43
Tim Rymer1-Feb-02 6:43 
Generalit's even funnier when you're talking to yourself with a trained group of professionals reading what you are saying! Pin
Tim Rymer1-Feb-02 6:47
Tim Rymer1-Feb-02 6:47 
GeneralRe: Trying to get IHTMLTxtRange obj... Pin
Amit Dey28-May-02 2:36
Amit Dey28-May-02 2:36 
Hi,
this is not meant to make you feel more embarrased and probably you already have solved this problem. ANyway, recently, I was doing something quite similar and just comparing notes with you - Smile | :)
//m_spDoc is the smart pointer to IHTMLDocument2 that
//represents the current webpage loaded in the browser. I
//too am trying to get the selection text and figure out
//the element position and element tagname.

IHTMLSelectionObject *sel;
CComQIPtr < IHTMLTxtRange, &IID_IHTMLTxtRange> tRange;

CComPtr < IHTMLElement> element;
hr = m_spDoc->get_selection(&sel);
if (FAILED(hr))
return;
CComBSTR type;
hr = sel->get_type(&type);
if (FAILED(hr))
return;

if (type == OLESTR("None"))
return;

CComPtr < IDispatch> ppDisp;
hr = sel->createRange(&ppDisp);
if (FAILED(hr))
return;

tRange = ppDisp;
CComBSTR bstr;
hr = tRange->get_text(&bstr);
if (FAILED(hr))
return;
if (bstr.Length() == 0)
return;
bstrText = bstr;


Wow!! do you study at digipen or teach there? Being an amateur game coder(yeah! I fiddle around with DX too!!) it's been a dream to get to learn game programming at digipen, but somehow couldn't afford it!!Smile | :)

sonork: 100:18407
Generalpass VARIANT to COM via VBScript Pin
David Dal Zot31-Jan-02 4:55
David Dal Zot31-Jan-02 4:55 
GeneralRe: pass VARIANT to COM via VBScript Pin
Matt Philmon4-Feb-02 7:25
Matt Philmon4-Feb-02 7:25 
GeneralCOM/DCOM with Macros Pin
Hugo Saporetti30-Jan-02 9:52
Hugo Saporetti30-Jan-02 9:52 
GeneralRe: COM/DCOM with Macros Pin
Ernest Laurentin30-Jan-02 11:09
Ernest Laurentin30-Jan-02 11:09 
GeneralRe: COM/DCOM with Macros Pin
Hugo Saporetti31-Jan-02 1:27
Hugo Saporetti31-Jan-02 1:27 
GeneralIAccessible->accLocation. Pin
Chagit30-Jan-02 2:46
Chagit30-Jan-02 2:46 
GeneralIDispatch::GetIDsOfNames and overloaded functions Pin
Nemanja Trifunovic28-Jan-02 12:01
Nemanja Trifunovic28-Jan-02 12:01 
GeneralRe: IDispatch::GetIDsOfNames and overloaded functions Pin
Not Active28-Jan-02 12:08
mentorNot Active28-Jan-02 12:08 
GeneralRe: IDispatch::GetIDsOfNames and overloaded functions Pin
Nemanja Trifunovic28-Jan-02 12:23
Nemanja Trifunovic28-Jan-02 12:23 
GeneralActiveX control IUnknown pointer Pin
Abdiel Jaramillo28-Jan-02 11:37
Abdiel Jaramillo28-Jan-02 11:37 
QuestionSimple COM control question? Pin
Rob Caldecott28-Jan-02 7:53
Rob Caldecott28-Jan-02 7:53 
AnswerRe: Simple COM control question? Pin
Ernest Laurentin28-Jan-02 8:13
Ernest Laurentin28-Jan-02 8:13 
AnswerRe: Simple COM control question? Pin
28-Jan-02 8:17
suss28-Jan-02 8:17 
AnswerRe: Simple COM control question? Pin
Not Active28-Jan-02 8:32
mentorNot Active28-Jan-02 8:32 
GeneralCOM app Pin
28-Jan-02 5:46
suss28-Jan-02 5:46 
GeneralRe: COM app Pin
Not Active28-Jan-02 8:33
mentorNot Active28-Jan-02 8:33 
GeneralRe: COM app Pin
30-Jan-02 2:57
suss30-Jan-02 2:57 

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.