Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCDateTimeCtrl's background color Pin
26-Mar-01 21:15
suss26-Mar-01 21:15 
Questionright or left control-key ??? Pin
26-Mar-01 20:09
suss26-Mar-01 20:09 
AnswerRe: right or left control-key ??? Pin
PJ Arends26-Mar-01 23:17
professionalPJ Arends26-Mar-01 23:17 
GeneralRe: right or left control-key ??? Pin
27-Mar-01 9:12
suss27-Mar-01 9:12 
GeneralRe: right or left control-key ??? Pin
PJ Arends27-Mar-01 13:13
professionalPJ Arends27-Mar-01 13:13 
GeneralRe: right or left control-key ??? Pin
Ryan Park27-Mar-01 14:54
Ryan Park27-Mar-01 14:54 
GeneralRe: right or left control-key ??? Pin
PJ Arends27-Mar-01 15:31
professionalPJ Arends27-Mar-01 15:31 
QuestionSimple ASP Object problem?!? Pin
26-Mar-01 17:58
suss26-Mar-01 17:58 
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

GeneralSTL Map and function pointers Pin
Jamie Nordmeyer26-Mar-01 9:20
Jamie Nordmeyer26-Mar-01 9:20 
GeneralRe: STL Map and function pointers Pin
Chris Losinger26-Mar-01 9:33
professionalChris Losinger26-Mar-01 9:33 
GeneralRe: STL Map and function pointers Pin
Jamie Nordmeyer26-Mar-01 9:37
Jamie Nordmeyer26-Mar-01 9:37 
GeneralRe: STL Map and function pointers Pin
Chris Losinger26-Mar-01 9:44
professionalChris Losinger26-Mar-01 9:44 
GeneralRe: STL Map and function pointers Pin
Jamie Nordmeyer26-Mar-01 9:48
Jamie Nordmeyer26-Mar-01 9:48 
GeneralRe: STL Map and function pointers Pin
Erik Funkenbusch26-Mar-01 12:11
Erik Funkenbusch26-Mar-01 12:11 
GeneralRe: STL Map and function pointers Pin
26-Mar-01 14:57
suss26-Mar-01 14:57 
GeneralRe: STL Map and function pointers Pin
26-Mar-01 15:00
suss26-Mar-01 15:00 
Generalhmmmm.... another one Pin
l a u r e n26-Mar-01 3:03
l a u r e n26-Mar-01 3:03 
GeneralRe: hmmmm.... another one Pin
26-Mar-01 10:45
suss26-Mar-01 10:45 
GeneralRe: hmmmm.... another one Pin
26-Mar-01 10:47
suss26-Mar-01 10:47 
GeneralRe: hmmmm.... another one Pin
l a u r e n26-Mar-01 11:30
l a u r e n26-Mar-01 11:30 
GeneralRe: hmmmm.... another one Pin
Erik Funkenbusch26-Mar-01 12:39
Erik Funkenbusch26-Mar-01 12:39 
GeneralRe: hmmmm.... another one Pin
Tim Deveaux26-Mar-01 13:31
Tim Deveaux26-Mar-01 13:31 
Generalsolution... Pin
l a u r e n26-Mar-01 20:43
l a u r e n26-Mar-01 20:43 
QuestionBug with RichEdit2 and EM_FORMATRANGE? Pin
26-Mar-01 0:22
suss26-Mar-01 0:22 
Generaldumbass question... Pin
l a u r e n26-Mar-01 0:02
l a u r e n26-Mar-01 0:02 

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.