Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Avoiding redefinition of INT8 Pin
jhwurmbach10-Oct-06 5:31
jhwurmbach10-Oct-06 5:31 
QuestionHardware details without using WMI Pin
Padmanabh Sharma9-Oct-06 19:00
Padmanabh Sharma9-Oct-06 19:00 
AnswerRe: Hardware details without using WMI Pin
Hamid_RT9-Oct-06 19:12
Hamid_RT9-Oct-06 19:12 
GeneralRe: Hardware details without using WMI Pin
Padmanabh Sharma9-Oct-06 19:32
Padmanabh Sharma9-Oct-06 19:32 
GeneralRe: Hardware details without using WMI Pin
Padmanabh Sharma9-Oct-06 19:38
Padmanabh Sharma9-Oct-06 19:38 
GeneralRe: Hardware details without using WMI Pin
Hamid_RT10-Oct-06 19:23
Hamid_RT10-Oct-06 19:23 
GeneralRe: Hardware details without using WMI Pin
Hamid_RT9-Oct-06 19:38
Hamid_RT9-Oct-06 19:38 
QuestionUsing Advise in HtmlDocument obtained from a CHtmlView Pin
georgekjolly9-Oct-06 18:19
georgekjolly9-Oct-06 18:19 
Hai All,

I am doing a project in which , I have to catch HtmlForm events from an html document that I have displayed in my CHtmlView .

I am getting the htmlDocumet Like this

void CHtmlViewerView::OnDocumentComplete(LPCTSTR lpszURL)
{
IDispatch * pDocDisp = NULL;
pDocDisp = this->GetHtmlDocument();
IHTMLDocument2* pDoc;

pDocDisp->QueryInterface( IID_IHTMLDocument2, (void**)&pDoc );

IHTMLElementCollection* pElemColl = NULL;
HRESULT hr = pDoc->get_all( &pElemColl );

Dispatch* pElemDisp = NULL;


_variant_t varIdx( 0L, VT_I4 );

HRESULT hr = pElemColl->item( varIdx, varIdx, &pElemDisp );

IHTMLElement* pElem = NULL;

hr = pElemDisp->QueryInterface( IID_IHTMLElement, (void**)&pElem );

HRESULT hr;
IConnectionPointContainer* pCPC = NULL;
IConnectionPoint* pCP = NULL;
DWORD dwCookie;

hr = pElem->QueryInterface( IID_IConnectionPointContainer, (void**)&pCPC );

hr = pCPC->FindConnectionPoint( DIID_HTMLElementEvents, &pCP );

hr = pCP->Advise((IUnknown*)this, &dwCookie ); //This advise
//always fails
}

How can I rectify it.

I am refering the following ariticle

http://lists.w3.org/Archives/Public/w3c-wai-ua/2000JanMar/att-0287/htmlevent.htm




}
QuestionThousands separator Pin
apffal9-Oct-06 14:24
apffal9-Oct-06 14:24 
AnswerRe: Thousands separator Pin
Nibu babu thomas9-Oct-06 17:40
Nibu babu thomas9-Oct-06 17:40 
AnswerRe: Thousands separator Pin
apffal10-Oct-06 12:11
apffal10-Oct-06 12:11 
QuestionWaitForSingleObject Pin
P1P3R9-Oct-06 13:54
P1P3R9-Oct-06 13:54 
AnswerRe: WaitForSingleObject Pin
Peter Weyzen9-Oct-06 14:04
Peter Weyzen9-Oct-06 14:04 
GeneralRe: WaitForSingleObject Pin
P1P3R9-Oct-06 16:07
P1P3R9-Oct-06 16:07 
AnswerRe: WaitForSingleObject Pin
Mark Salsbery9-Oct-06 16:42
Mark Salsbery9-Oct-06 16:42 
AnswerRe: WaitForSingleObject Pin
Mark Salsbery9-Oct-06 16:51
Mark Salsbery9-Oct-06 16:51 
GeneralRe: WaitForSingleObject Pin
P1P3R9-Oct-06 20:15
P1P3R9-Oct-06 20:15 
AnswerRe: WaitForSingleObject Pin
pavan_sw11-Oct-06 0:20
pavan_sw11-Oct-06 0:20 
GeneralRe: WaitForSingleObject Pin
P1P3R11-Oct-06 22:03
P1P3R11-Oct-06 22:03 
QuestionCould someone give a tutorial or two. Pin
Learn2LikeIt9-Oct-06 13:47
Learn2LikeIt9-Oct-06 13:47 
QuestionHelp: Visual Studio 2005 - CString issues Pin
fasteddie2039-Oct-06 12:36
fasteddie2039-Oct-06 12:36 
AnswerRe: Help: Visual Studio 2005 - CString issues Pin
Mark Salsbery9-Oct-06 12:51
Mark Salsbery9-Oct-06 12:51 
GeneralRe: Help: Visual Studio 2005 - CString issues Pin
fasteddie2039-Oct-06 13:56
fasteddie2039-Oct-06 13:56 
GeneralRe: Help: Visual Studio 2005 - CString issues Pin
Mark Salsbery9-Oct-06 14:25
Mark Salsbery9-Oct-06 14:25 
GeneralRe: Help: Visual Studio 2005 - CString issues Pin
fasteddie2039-Oct-06 14:40
fasteddie2039-Oct-06 14:40 

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.