Click here to Skip to main content
15,908,775 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dislplaying bitmap image on the screen when raw bitmap data is available in memory? (WIN32) Pin
yeswekey27-Jun-10 23:04
yeswekey27-Jun-10 23:04 
QuestionRound Button Pin
john563227-Jun-10 21:25
john563227-Jun-10 21:25 
AnswerRe: Round Button Pin
Software_Developer27-Jun-10 22:16
Software_Developer27-Jun-10 22:16 
AnswerRe: Round Button Pin
Mohan Ramachandra27-Jun-10 22:27
Mohan Ramachandra27-Jun-10 22:27 
QuestionException Pin
T.RATHA KRISHNAN27-Jun-10 21:20
T.RATHA KRISHNAN27-Jun-10 21:20 
AnswerRe: Exception PinPopular
Niklas L27-Jun-10 21:29
Niklas L27-Jun-10 21:29 
AnswerRe: Exception Pin
Aescleal27-Jun-10 22:01
Aescleal27-Jun-10 22:01 
QuestionStdafx Pin
VeSudha27-Jun-10 20:59
VeSudha27-Jun-10 20:59 
AnswerRe: Stdafx Pin
Niklas L27-Jun-10 21:14
Niklas L27-Jun-10 21:14 
QuestionUsage of IHTMLElement Pin
Pk.j27-Jun-10 18:36
Pk.j27-Jun-10 18:36 
AnswerRe: Usage of IHTMLElement Pin
Stephen Hewitt27-Jun-10 19:09
Stephen Hewitt27-Jun-10 19:09 
AnswerRe: Usage of IHTMLElement Pin
ThatsAlok27-Jun-10 19:14
ThatsAlok27-Jun-10 19:14 
AnswerRe: Usage of IHTMLElement Pin
«_Superman_»27-Jun-10 19:23
professional«_Superman_»27-Jun-10 19:23 
GeneralRe: Usage of IHTMLElement Pin
Pk.j27-Jun-10 21:39
Pk.j27-Jun-10 21:39 
GeneralRe: Usage of IHTMLElement Pin
«_Superman_»27-Jun-10 22:16
professional«_Superman_»27-Jun-10 22:16 
GeneralRe: Usage of IHTMLElement Pin
Pk.j27-Jun-10 22:48
Pk.j27-Jun-10 22:48 
GeneralRe: Usage of IHTMLElement Pin
«_Superman_»27-Jun-10 22:51
professional«_Superman_»27-Jun-10 22:51 
GeneralRe: Usage of IHTMLElement Pin
Pk.j27-Jun-10 23:54
Pk.j27-Jun-10 23:54 
GeneralRe: Usage of IHTMLElement Pin
«_Superman_»28-Jun-10 0:07
professional«_Superman_»28-Jun-10 0:07 
GeneralRe: Usage of IHTMLElement Pin
Pk.j28-Jun-10 1:31
Pk.j28-Jun-10 1:31 
GeneralRe: Usage of IHTMLElement Pin
CMalcheski28-Aug-10 10:09
CMalcheski28-Aug-10 10:09 
This reply is 2 months after the fact but I'm throwing it in for the benefit of anybody reading later, as LOTS of people come here to solve many problems.

As with most of MSHTML and/or the WebBrowser control, the IHTMLElement::get_id method is grossly misdocumented. It does not take a BSTR as a parameter. If you look at the disassembly of the method actually executing, it requires 12 bytes of parameters before THIS is placed on the stack. The crash is occuring because it's pulling 12 bytes OFF the stack instead of the 4 bytes the docs would have you putting there. And there's your crash: a corrupted stack that just lost 8 bytes it wasn't expecting to lose. Without using machine-dependent assembly language, I'm not sure how you would get the compiler to accept putting 12 bytes on the stack instead of the 4 that's expected. In assembly it's easy. You can tweak the interface definition in the header file as others have had to do on other issues, but I'm not sure what the parameters are supposed to be. I'm not even sure what the method does, I can only promise it has nothing to do with retrieving an ID. The 8 extra bytes on the stack are ignored, and the last parameter (the one that's supposed to be a BSTR) has its lower 16 bits set to 0. That's all it does. Within the scope of very limited time, I tried everything I could think of with the parameters - even puting a VT_BSTR on the stack - and couldn't pin it down. Nothing ever happened except the low word of one dword out of 3 (or 4 if you count THIS) in the parameters was changed to zero.

My advise is, consider the method not to exist.
QuestionSuggestions on Development on Multi Platform Communcation App [modified] Pin
Greg Mort27-Jun-10 11:16
Greg Mort27-Jun-10 11:16 
AnswerRe: Suggestions on Development on Multi Platform Communcation App Pin
Richard MacCutchan27-Jun-10 21:24
mveRichard MacCutchan27-Jun-10 21:24 
GeneralRe: Suggestions on Development on Multi Platform Communcation App Pin
Greg Mort28-Jun-10 2:18
Greg Mort28-Jun-10 2:18 
QuestionPropertySheet Button Pin
john563227-Jun-10 5:54
john563227-Jun-10 5:54 

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.