Click here to Skip to main content
15,890,690 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
NewsRe: swap different sized string Pin
rupeshkp72829-Jun-10 2:18
rupeshkp72829-Jun-10 2:18 
AnswerRe: swap different sized string Pin
Eugen Podsypalnikov28-Jun-10 22:30
Eugen Podsypalnikov28-Jun-10 22:30 
AnswerRe: swap different sized string Pin
Aescleal28-Jun-10 23:45
Aescleal28-Jun-10 23:45 
GeneralRe: swap different sized string Pin
rupeshkp72829-Jun-10 2:16
rupeshkp72829-Jun-10 2:16 
QuestionArray of Buttons [Solved] Pin
T.RATHA KRISHNAN28-Jun-10 21:36
T.RATHA KRISHNAN28-Jun-10 21:36 
AnswerRe: Array of Buttons Pin
Cedric Moonen28-Jun-10 21:50
Cedric Moonen28-Jun-10 21:50 
GeneralRe: Array of Buttons Pin
T.RATHA KRISHNAN28-Jun-10 22:13
T.RATHA KRISHNAN28-Jun-10 22:13 
QuestionIHTMLElement usage crash in VC++ Pin
Pk.j28-Jun-10 20:09
Pk.j28-Jun-10 20:09 
My code is not running in BHO. It's an exe.
Actually i want to save WebPage's filled values with 'id'of the field. So that in future i can refer a (saved) perticular field value with respect to it's Input-element 'id' value .

I able to do both save & refer the value of a field with respect to the value of Input-element 'type'. But problem is there, if suppose a web page having 2 TEXT-type fields --Text1 & Text2,then when i'm after saving those values, referring the values ,my code pointing those Text1 & Text2 fields's values as if the values of Text1 field. Because both field's Input 'type' element's value is same "text".

Actually i'hv to save the LoginPage field value of 'www.redbox.com'.But it's most fields don't have common Inpute element 'name'.Other wise we could have a abstract by IHTMLInputElement->get_name()
Only way, we can point both values of 2 different TEXT-type fields separately by saving their values along with Input 'id' element's value respectfully.Because we can notice id's of 2 different TEXT-type field's are different even though their Input 'type' value[text] are same .

So can you please have a look on my attempt & please if possible rectify,why its getting crashed as soon as a web page opened in Internet Explorer 8

IHTMLElement *pElement;
IDispatch *pDispInput = NULL;
HRESULT hr;
TCHAR tChrID[500];
BSTR bStrID; 

if ( pDispInput->QueryInterface(IID_IHTMLElement, (void **)&pElement)== S_OK)
{ 
hr = pElement->get_id(&bStrID);
if (SUCCEEDED(hr))
{
CString StrS;
if (bStrID)
{
WideCharToMultiByte(CP_ACP, 0, bStrID, -1, tChrID, 500, NULL, NULL);
SysFreeString (bStrID);
}

StrS = tChrID;
WriteToLog(StrS); // Creating LOG of 'id'values
}
pElement ->Release();
}
pDispInput->Release(); 


Please guide soon
Thankx Smile | :)
AnswerRe: IHTMLElement usage crash in VC++ PinPopular
SandipG 28-Jun-10 21:22
SandipG 28-Jun-10 21:22 
GeneralRe: IHTMLElement usage crash in VC++ Pin
Niklas L28-Jun-10 21:30
Niklas L28-Jun-10 21:30 
GeneralRe: IHTMLElement usage crash in VC++ Pin
Pk.j28-Jun-10 23:48
Pk.j28-Jun-10 23:48 
AnswerRe: IHTMLElement usage crash in VC++ Pin
Niklas L28-Jun-10 21:29
Niklas L28-Jun-10 21:29 
GeneralRe: IHTMLElement usage crash in VC++ Pin
Pk.j28-Jun-10 23:54
Pk.j28-Jun-10 23:54 
GeneralRe: IHTMLElement usage crash in VC++ Pin
Niklas L29-Jun-10 9:59
Niklas L29-Jun-10 9:59 
QuestionCDialogBar Usage very confusing.. Pin
ForNow28-Jun-10 6:56
ForNow28-Jun-10 6:56 
AnswerRe: CDialogBar Usage very confusing.. Pin
Niklas L28-Jun-10 8:32
Niklas L28-Jun-10 8:32 
GeneralRe: CDialogBar Usage very confusing.. Pin
ForNow28-Jun-10 8:45
ForNow28-Jun-10 8:45 
GeneralRe: CDialogBar Usage very confusing.. Pin
Niklas L28-Jun-10 8:53
Niklas L28-Jun-10 8:53 
GeneralRe: CDialogBar Usage very confusing.. Pin
ForNow28-Jun-10 9:01
ForNow28-Jun-10 9:01 
QuestionFolder Save Pin
mdocvc28-Jun-10 6:42
mdocvc28-Jun-10 6:42 
AnswerRe: Folder Save Pin
Rajesh R Subramanian28-Jun-10 6:55
professionalRajesh R Subramanian28-Jun-10 6:55 
AnswerRe: Folder Save Pin
rp_suman28-Jun-10 7:55
rp_suman28-Jun-10 7:55 
GeneralRe: Folder Save Pin
mdocvc29-Jun-10 8:36
mdocvc29-Jun-10 8:36 
QuestionVissual C++ express 2008 Pin
cavemen28-Jun-10 5:02
cavemen28-Jun-10 5:02 
AnswerRe: Vissual C++ express 2008 Pin
Maximilien28-Jun-10 5:44
Maximilien28-Jun-10 5:44 

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.