Click here to Skip to main content
15,914,016 members
Home / Discussions / COM
   

COM

 
GeneralloadXML does not load PLEASE HELP! Pin
j_mehdi13-Apr-02 5:09
j_mehdi13-Apr-02 5:09 
GeneralUrgent!! Why this error take place and how can i deal with it Pin
chq1212-Apr-02 18:36
chq1212-Apr-02 18:36 
GeneralRe: Urgent!! Why this error take place and how can i deal with it Pin
Amit Dey15-Apr-02 6:31
Amit Dey15-Apr-02 6:31 
Questionhow to connect to component remotely Pin
Bhikshapathi Gorantla12-Apr-02 1:18
Bhikshapathi Gorantla12-Apr-02 1:18 
AnswerRe: how to connect to component remotely Pin
bryce21-Apr-02 15:02
bryce21-Apr-02 15:02 
Generalaccessing the compnent on remote machine Pin
11-Apr-02 19:19
suss11-Apr-02 19:19 
GeneralRe: accessing the compnent on remote machine Pin
bryce21-Apr-02 15:08
bryce21-Apr-02 15:08 
QuestionGetting Form PostData thru webbrowser control? Pin
Amit Dey11-Apr-02 13:27
Amit Dey11-Apr-02 13:27 
Hello all,

I'm using BeforeNavigate2 event to get the Post data as per MSDN article:

HOWTO: Handle Data from a Post Form When Hosting WebBrowser Control (Q256195)

But I'm unable to get the the BSTRs from the Post Data SAFEARRAY.

Here's my BHO's Invoke implementation:

if (dispidMember ==DISPID_BEFORENAVIGATE2)
{
if(pDispParams->rgvarg[1].vt==(VT_BYREF|VT_VARIANT) && pDispParams->rgvarg[2].vt ==(VT_BYREF|VT_VARIANT) && pDispParams->rgvarg[2].pvarVal->vt!=VT_EMPTY)
{
ATLTRACE("\nGetting POST Info");
CComBSTR szTemp,szPostData;
long plLbound, plUbound;
CComVariant varHeaders(*pDispParams->rgvarg[1].pvarVal);
varHeaders.ChangeType(VT_BSTR);
CString strHeaders(OLE2T(varHeaders.bstrVal));
//got the header data
CComVariant var(*pDispParams->rgvarg[2].pvarVal);

SAFEARRAY *psa=NULL;
psa= var.parray;
SafeArrayAccessData(psa , (LPVOID*)&szTemp);
//next two lines yields an Unhandled
//Exception when there is valid Post data??
// SafeArrayGetLBound(psa , 1, &plLbound);
// SafeArrayGetUBound(psa , 1, &plUbound);

CComBSTR str;
szTemp.CopyTo(&szPostData);

SafeArrayUnaccessData(psa);
ATLTRACE(OLE2T(szPostData));
//output always ""
}
}

Dunno what is going wrong. DO I need to preallocate a SAFEARRAY?

My Postdata html pages are nothing out-of-the-ordinary.Just a simple textbox that passes a string thru HTTP POST.

Any help will be great.Smile | :)
TIA.

#define MOSTLY_LEAN_AND_MEAN
GeneralOutlook automation Pin
Ben Wootton11-Apr-02 0:29
Ben Wootton11-Apr-02 0:29 
GeneralRe: Outlook automation Pin
Alwin7521-Apr-02 8:38
Alwin7521-Apr-02 8:38 
GeneralReturning a COM object Pin
10-Apr-02 17:17
suss10-Apr-02 17:17 
GeneralRe: Returning a COM object Pin
Paul M Watt10-Apr-02 17:36
mentorPaul M Watt10-Apr-02 17:36 
GeneralRe: Returning a COM object Pin
Mazdak10-Apr-02 20:00
Mazdak10-Apr-02 20:00 
GeneralC++ COM and VB Pin
Philip Patrick10-Apr-02 2:25
professionalPhilip Patrick10-Apr-02 2:25 
GeneralRe: C++ COM and VB Pin
Mazdak10-Apr-02 3:02
Mazdak10-Apr-02 3:02 
GeneralRe: C++ COM and VB Pin
Philip Patrick10-Apr-02 3:36
professionalPhilip Patrick10-Apr-02 3:36 
GeneralHi, Mazdak, I still have a question here Pin
chq129-Apr-02 10:35
chq129-Apr-02 10:35 
GeneralRe: Hi, Mazdak, I still have a question here Pin
Mazdak10-Apr-02 0:58
Mazdak10-Apr-02 0:58 
GeneralRe: Hi, Mazdak, I still have a question here Pin
chq1211-Apr-02 6:41
chq1211-Apr-02 6:41 
GeneralMy ASP Component freezes the IIS Pin
hAMMER tHE mADdOG8-Apr-02 23:19
hAMMER tHE mADdOG8-Apr-02 23:19 
GeneralRe: My ASP Component freezes the IIS Pin
14-Apr-02 20:35
suss14-Apr-02 20:35 
QuestionCOM book recommendations? Pin
moliate8-Apr-02 6:39
moliate8-Apr-02 6:39 
AnswerRe: COM book recommendations? Pin
Joao Vaz9-Apr-02 0:10
Joao Vaz9-Apr-02 0:10 
GeneralRe: COM book recommendations? Pin
moliate10-Apr-02 9:46
moliate10-Apr-02 9:46 
GeneralUserId of calling process Pin
StefanM8-Apr-02 3:53
StefanM8-Apr-02 3:53 

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.