Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server SDK > How to insert D...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 239 of 274
Post > Topic >>

How to insert Dictionary object in Orderfrom from pipeline compone

by =?Utf-8?B?RXZlciBPbGFubw==?= <EverOlano@[EMAIL PROTECTED] Jul 21, 2006 at 10:51 AM

Hello.  We have an ATL pipeline component and we would like to insert our
own 
Dictionary object within the Orderform (thinking that both ASP and ASP.NET

users can access it later).  We do not want to pollute the Orderform with
our 
own keys and so would like to have them separated out into a
sub-dictionary.  
How do I accomplish this?

The following test code did not work.  It was generating an exception (and
I 
have yet to find out how to troubleshoot):

CComPtr<IDictionary> pTest;
pTest.CoCreateInstance( IID_IDictionary );
pTest->put_Value( CComBSTR( "Test" ), CComVariant( "Value" ) );
CComQIPtr<IDispatch> pDisp( pTest );
PutDictValue( m_pdictOrder, L"_my_own_dictionary", CComVariant( pDisp ) );

where PutDictValue() simply calls:

hr = pdict->putref_Value( bstrName, var );

among other things.

Anything that jumps out?  It's been a long time since I touched this code
so 
pardon me if my usage of the ATL objects is totally off.  I would love to
be 
corrected.

Thanks,
Ever
 




 2 Posts in Topic:
How to insert Dictionary object in Orderfrom from pipeline compo
=?Utf-8?B?RXZlciBPbGFubw=  2006-07-21 10:51:01 
RE: How to insert Dictionary object in Orderfrom from pipeline c
=?Utf-8?B?RXZlciBPbGFubw=  2006-07-21 11:35:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:33:14 CST 2008.