Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionproblem with image scaning & displaing . win32 StretchDIBits () Pin
ashish8patil29-Jun-10 0:25
ashish8patil29-Jun-10 0:25 
QuestionOwnerdarw Combobox Pin
AbhiHcl28-Jun-10 23:33
AbhiHcl28-Jun-10 23:33 
AnswerRe: Ownerdarw Combobox Pin
Nibu babu thomas28-Jun-10 23:41
Nibu babu thomas28-Jun-10 23:41 
GeneralRe: Ownerdarw Combobox Pin
AbhiHcl28-Jun-10 23:47
AbhiHcl28-Jun-10 23:47 
GeneralRe: Ownerdarw Combobox Pin
Nibu babu thomas28-Jun-10 23:48
Nibu babu thomas28-Jun-10 23:48 
GeneralRe: Ownerdarw Combobox Pin
AbhiHcl28-Jun-10 23:54
AbhiHcl28-Jun-10 23:54 
GeneralRe: Ownerdarw Combobox Pin
Aescleal28-Jun-10 23:59
Aescleal28-Jun-10 23:59 
GeneralRe: Ownerdarw Combobox Pin
Nibu babu thomas29-Jun-10 2:01
Nibu babu thomas29-Jun-10 2:01 
AnswerRe: Ownerdarw Combobox Pin
Aescleal28-Jun-10 23:58
Aescleal28-Jun-10 23:58 
Questionswap different sized string Pin
rupeshkp72828-Jun-10 22:05
rupeshkp72828-Jun-10 22:05 
AnswerRe: swap different sized string Pin
Cedric Moonen28-Jun-10 22:14
Cedric Moonen28-Jun-10 22:14 
GeneralRe: swap different sized string Pin
rupeshkp72828-Jun-10 22:26
rupeshkp72828-Jun-10 22:26 
GeneralRe: swap different sized string Pin
Aescleal28-Jun-10 23:51
Aescleal28-Jun-10 23:51 
AnswerRe: swap different sized string Pin
Adam Roderick J28-Jun-10 22:14
Adam Roderick J28-Jun-10 22:14 
GeneralRe: swap different sized string Pin
rupeshkp72828-Jun-10 22:40
rupeshkp72828-Jun-10 22:40 
AnswerRe: swap different sized string Pin
Niklas L28-Jun-10 22:29
Niklas L28-Jun-10 22:29 
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 

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.