Click here to Skip to main content
15,897,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Window flickering in Taskbar Pin
Richard Green10-Dec-02 1:56
Richard Green10-Dec-02 1:56 
GeneralRe: Window flickering in Taskbar Pin
Ricky_TheBard10-Dec-02 6:26
Ricky_TheBard10-Dec-02 6:26 
GeneralCListCtrl Column width Pin
Paolo Vernazza10-Dec-02 1:13
Paolo Vernazza10-Dec-02 1:13 
GeneralRe: CListCtrl Column width Pin
Dominik Reichl10-Dec-02 2:47
Dominik Reichl10-Dec-02 2:47 
GeneralRe: CListCtrl Column width Pin
Paolo Vernazza10-Dec-02 4:33
Paolo Vernazza10-Dec-02 4:33 
GeneralRe: CListCtrl Column width Pin
Rage10-Dec-02 5:15
professionalRage10-Dec-02 5:15 
GeneralRe: CListCtrl Column width Pin
Paolo Vernazza10-Dec-02 5:39
Paolo Vernazza10-Dec-02 5:39 
GeneralI'm going crazy here ( trying to hook into session object ) Pin
Christian Graus10-Dec-02 0:43
protectorChristian Graus10-Dec-02 0:43 
I am trying to pull the current session variables out in an ATL project, called from the asp. The code looks like this:

CContext cxt;
if ( FAILED( cxt.Init( CContext::get_All ) ) )
{
    return E_FAIL;
}

cxt.Response()->Write(_variant_t("This is a test of the veracity of my system <br/>"));

IVariantDictionary* pVD;

cxt.Session()->get_Contents(&pVD);

if (pVD)
{
    int nCount = 0;

    pVD->get_Count(&nCount);

    for (int i = 0; i < nCount; ++i)
    {
        _variant_t vItem;
        _variant_t vIndex(i);
        _variant_t vKey;
        pVD->get_Key(vIndex, &vKey);
        pVD->get_Item(vKey, &vItem);

        cxt.Response()->Write(vKey);
        cxt.Response()->Write(_variant_t(" = "));
        cxt.Response()->Write(vItem);
        cxt.Response()->Write(_variant_t("<br/>"));
    }
}

IRequestDictionary * pDic;

_variant_t v;
cxt.Session()->get_Value( L"Juju", &v);
cxt.Response()->Write(v);


cxt.Request()->get_ServerVariables(&pDic);

if (pDic)
{
    int nCount = 0;

    pDic->get_Count(&nCount);

    for (int i = 0; i < nCount; ++i)
    {
        _variant_t vItem;
        _variant_t vIndex("Juju");
        _variant_t vKey;
        pDic->get_Key(vIndex, &vKey);
        pDic->get_Item(vIndex, &vItem);

        cxt.Response()->Write(vKey);
        cxt.Response()->Write(_variant_t(" = "));
        cxt.Response()->Write(vItem);
        cxt.Response()->Write(_variant_t("<br/>"));
    }
}


and while it can pull out a session ID if I ask it to, and the response stuff works fine, I simply cannot get my hands on the variables I have shoved into the session. Does anyone have any ideas ?


Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002

Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
GeneralRe: I'm going crazy here ( trying to hook into session object ) Pin
Alvaro Mendez10-Dec-02 5:11
Alvaro Mendez10-Dec-02 5:11 
GeneralRe: I'm going crazy here ( trying to hook into session object ) Pin
Christian Graus10-Dec-02 15:14
protectorChristian Graus10-Dec-02 15:14 
Generalget__NewEnum problem. Pin
Christian Graus10-Dec-02 0:28
protectorChristian Graus10-Dec-02 0:28 
GeneralRe: get__NewEnum problem. Pin
Michael P Butler10-Dec-02 1:03
Michael P Butler10-Dec-02 1:03 
GeneralLarge ToolbarButtons Pin
Mr Bose Dayala10-Dec-02 0:13
Mr Bose Dayala10-Dec-02 0:13 
GeneralLarge ToolbarButtons Pin
Mr Bose Dayala10-Dec-02 0:12
Mr Bose Dayala10-Dec-02 0:12 
GeneralRe: Large ToolbarButtons Pin
KaЯl10-Dec-02 3:03
KaЯl10-Dec-02 3:03 
GeneralPlease take a look if this is ok! Pin
Daniel Strigl9-Dec-02 23:12
Daniel Strigl9-Dec-02 23:12 
GeneralRe: Please take a look if this is ok! Pin
Iain Clarke, Warrior Programmer9-Dec-02 23:48
Iain Clarke, Warrior Programmer9-Dec-02 23:48 
GeneralRe: Please take a look if this is ok! Pin
Daniel Strigl10-Dec-02 1:02
Daniel Strigl10-Dec-02 1:02 
QuestionDoes this work? Pin
Daniel Strigl9-Dec-02 23:01
Daniel Strigl9-Dec-02 23:01 
GeneralQe. regarding NM_RETURN in CTreeView Pin
alex_the_guy9-Dec-02 22:18
alex_the_guy9-Dec-02 22:18 
GeneralBitmaps Pin
SatyaDY9-Dec-02 21:58
SatyaDY9-Dec-02 21:58 
GeneralRe: Bitmaps Pin
Christian Graus9-Dec-02 22:01
protectorChristian Graus9-Dec-02 22:01 
GeneralRe: Bitmaps Pin
Kannan Kalyanaraman9-Dec-02 23:29
Kannan Kalyanaraman9-Dec-02 23:29 
GeneralRe: Bitmaps Pin
Scott H. Settlemier10-Dec-02 7:08
Scott H. Settlemier10-Dec-02 7:08 
GeneralDr Watson problems with vc++ Pin
Aviv Halperin9-Dec-02 21:40
Aviv Halperin9-Dec-02 21: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.