Click here to Skip to main content
15,909,325 members
Home / Discussions / COM
   

COM

 
GeneralRe: Help with Unusal Debug Error. Pin
Chris Losinger2-Apr-01 5:34
professionalChris Losinger2-Apr-01 5:34 
GeneralRe: Help with Unusal Debug Error. Pin
Joseph Dempsey2-Apr-01 5:39
Joseph Dempsey2-Apr-01 5:39 
GeneralActiveX Controls and Downloading Pin
31-Mar-01 11:49
suss31-Mar-01 11:49 
GeneralMessage Map in ATL Server Pin
28-Mar-01 5:04
suss28-Mar-01 5:04 
QuestionHow to add New ATL-object to MFC Application? Pin
27-Mar-01 18:21
suss27-Mar-01 18:21 
AnswerRe: How to add New ATL-object to MFC Application? Pin
pba_11-Apr-01 1:04
pba_11-Apr-01 1:04 
QuestionHow to add New ATL-object to MFC Application? Pin
27-Mar-01 18:15
suss27-Mar-01 18:15 
GeneralPlease help me! I'm lost! (Again!) Pin
26-Mar-01 10:17
suss26-Mar-01 10:17 
Ok, I've got an ATL appwizard with MFC support. Implemented a ActiveX server object (I'm trying to write an ASP extension to interface to some code i've already got working elsewhere).

To test the theories of ATL and COM, I'm trying to make a simple propert that returns the IP address of the client (from Request.ServerVariables("REMOTE_ADDR") ).

Here's the function I'm trying to use:

STDMETHODIMP CMyClass::get_GetIP(BSTR *pVal)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())

IRequestDictionary *piRequestDic;
m_piRequest->get_ServerVariables(&piRequestDic);

VARIANT v_Param, v_Value;
_variant_t vt_Param;

vt_Param.Attach(v_Param);
vt_Param.Clear();
vt_Param.ChangeType(VT_BSTR,NULL);
vt_Param.SetString("REMOTE_ADDR");


piRequestDic->get_Item(v_Param,&v_Value);
VariantChangeType(&v_Value,&v_Value,0,VT_BSTR);
*pVal=v_Value.bstrVal;

return S_OK;
}


When I call a simple asp page that creates this object and attempts to read this GetIP property, IIS hangs. I have to use Winnt reskit's KILL.EXE to close it.

I have no idea whats wrong- i've followed my logic through several times and i'm oblivious to the prob.

help appreaciated thanks

jon h
GeneralAcces Violation with oledb CoUninitialize() instruction Pin
25-Mar-01 23:14
suss25-Mar-01 23:14 
GeneralVB ActiveX DLL with VC question Pin
Amit Dey25-Mar-01 9:51
Amit Dey25-Mar-01 9:51 
GeneralDCOM Service problem Pin
yamini22-Mar-01 23:25
yamini22-Mar-01 23:25 
GeneralRe: DCOM Service problem Pin
2-Apr-01 2:01
suss2-Apr-01 2:01 
QuestionHow do I add a menu/toolbar to my atl activex control? Pin
Timothy A. Anderson19-Mar-01 13:34
Timothy A. Anderson19-Mar-01 13:34 
GeneralCustomizing Intellisense Information Tooltips Pin
19-Mar-01 12:20
suss19-Mar-01 12:20 
GeneralIntegrating two applicaiton Pin
17-Mar-01 2:38
suss17-Mar-01 2:38 
GeneralPassing MFC derived Objects back from COM to Application Pin
16-Mar-01 4:58
suss16-Mar-01 4:58 
GeneralTLB problem !!! Pin
14-Mar-01 0:50
suss14-Mar-01 0:50 
GeneralRe: TLB problem !!! Pin
Joseph Dempsey27-Mar-01 3:50
Joseph Dempsey27-Mar-01 3:50 
GeneralCOM with CGI's Pin
Steven Gregg12-Mar-01 23:37
Steven Gregg12-Mar-01 23:37 
QuestionBSTR or Structure ? Pin
11-Mar-01 16:32
suss11-Mar-01 16:32 
AnswerRe: BSTR or Structure ? Pin
13-Mar-01 7:25
suss13-Mar-01 7:25 
QuestionDatasource - how to make? Pin
11-Mar-01 4:37
suss11-Mar-01 4:37 
Generalcontrol dynamic proeprties. Pin
8-Mar-01 4:13
suss8-Mar-01 4:13 
GeneralIShellFolder - Network Attribute Pin
7-Mar-01 0:58
suss7-Mar-01 0:58 
GeneralRe: IShellFolder - Network Attribute Pin
18-Mar-01 5:35
suss18-Mar-01 5:35 

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.