Click here to Skip to main content
15,917,795 members
Home / Discussions / COM
   

COM

 
AnswerRe: need Suggestions for Project? Pin
Jonathan Davies28-Feb-09 2:15
Jonathan Davies28-Feb-09 2:15 
Questionserial port programming using threads in c Pin
rao_abhilash26-Feb-09 19:37
rao_abhilash26-Feb-09 19:37 
AnswerRe: serial port programming using threads in c Pin
«_Superman_»26-Feb-09 21:12
professional«_Superman_»26-Feb-09 21:12 
QuestionHow to find DispIds for excel procedures? Pin
SNI26-Feb-09 1:36
SNI26-Feb-09 1:36 
Questionfail to get IHTMLElement from IHTMLFormElement Pin
computer_nerd24-Feb-09 5:03
computer_nerd24-Feb-09 5:03 
AnswerRe: fail to get IHTMLElement from IHTMLFormElement Pin
Jonathan Davies25-Feb-09 5:49
Jonathan Davies25-Feb-09 5:49 
GeneralRe: fail to get IHTMLElement from IHTMLFormElement Pin
computer_nerd27-Feb-09 12:48
computer_nerd27-Feb-09 12:48 
GeneralRe: fail to get IHTMLElement from IHTMLFormElement Pin
Jonathan Davies28-Feb-09 3:52
Jonathan Davies28-Feb-09 3:52 
I suppose it depends on what he has loaded up in IE at the time.
For any COM error such as E_NOINTERFACE you can look for extended error information that may have been set when the error was generated:
//Check for IErorrInfo and load it if it is present
IErrorInfo* pErrInfo = NULL;
HRESULT hr = GetErrorInfo(0, &pErrInfo);

Then use the IErrorInfo methods to obtain details, though there may be no info set to retreive its worth a try.

You may have the same IE7, but presumably you may not have the same forms or elements etc. All I can suggest is have the program get details of the object that returns E_NOINTERFACE to see if you can find anything out based on that information or establish a pattern.

It may be that in an ideal world all objects would implement this interface but in reality it means that you have to accept that there are objects out there that don't for some reason. As a result you have to handle the ones that don't somehow. Currently your loop exits when 'ret' becomes false for any reason, maybe you need to skip that element and move on to the next (or something similar), storing its details etc.
GeneralRe: fail to get IHTMLElement from IHTMLFormElement Pin
computer_nerd1-Mar-09 1:30
computer_nerd1-Mar-09 1:30 
Questionshell Undo manager Pin
Frank Thielemann24-Feb-09 4:11
Frank Thielemann24-Feb-09 4:11 
QuestionImport COM exe server Pin
RevathiRamakumar23-Feb-09 22:31
RevathiRamakumar23-Feb-09 22:31 
AnswerRe: Import COM exe server Pin
Jonathan Davies25-Feb-09 5:11
Jonathan Davies25-Feb-09 5:11 
QuestionCOM ATL exe question Pin
Anthony988723-Feb-09 9:20
Anthony988723-Feb-09 9:20 
QuestionRe: COM ATL exe question Pin
CPallini23-Feb-09 22:39
mveCPallini23-Feb-09 22:39 
AnswerRe: COM ATL exe question [modified] Pin
RevathiRamakumar23-Feb-09 22:45
RevathiRamakumar23-Feb-09 22:45 
GeneralRe: COM ATL exe question Pin
CPallini23-Feb-09 22:51
mveCPallini23-Feb-09 22:51 
GeneralRe: COM ATL exe question Pin
RevathiRamakumar23-Feb-09 22:55
RevathiRamakumar23-Feb-09 22:55 
AnswerRe: COM ATL exe question Pin
Anthony988724-Feb-09 10:01
Anthony988724-Feb-09 10:01 
QuestionWritting Add in for PDF. Pin
SNI23-Feb-09 1:02
SNI23-Feb-09 1:02 
QuestionDeleting an Instance of IShellFolder Pin
gn0tto22-Feb-09 23:39
gn0tto22-Feb-09 23:39 
QuestionRe: Deleting an Instance of IShellFolder Pin
gn0tto27-Feb-09 2:09
gn0tto27-Feb-09 2:09 
QuestionWhat are the ways a COM dll can be used? + questions Pin
grassrootkit19-Feb-09 4:09
grassrootkit19-Feb-09 4:09 
AnswerRe: What are the ways a COM dll can be used? + questions Pin
Alexandre GRANVAUD19-Feb-09 5:14
Alexandre GRANVAUD19-Feb-09 5:14 
AnswerRe: What are the ways a COM dll can be used? + questions Pin
Roger Stoltz19-Feb-09 5:14
Roger Stoltz19-Feb-09 5:14 
GeneralRe: What are the ways a COM dll can be used? + questions Pin
Alexandre GRANVAUD19-Feb-09 5:16
Alexandre GRANVAUD19-Feb-09 5:16 

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.