-
July 15th, 2009, 04:32 PM
#1
ISimpleList Facade
I would like to make/use/remake something that uses the same interface as CSimpleList that is included with Microsoft Commerce Server 2000. I have lots of existing code and I do not want to change the code, I'm OK with changing the back end and making a facade.
Currently the application I am working on uses the CSimpleList like a Recordset.
rstUser = datasource.execute("SELECT user_name FROM Users")
Calls like: rstUser.user_name
Where rstUser is a CSimpleList
datasource is an IDatasource
and user_name is a column name in a table
I have a snip-it from the header of CSimpleList operator overloading:
operator TYPE()
{ return (TYPE)CSimpleList::GetHead(); }
I'm wondering how CSimpleList works because it has no idea of the variable "user_name" until run-time.
-
July 16th, 2009, 01:21 AM
#2
Re: ISimpleList Facade
That should be a CDictionary (Commerce.Dictionary), not CSimpleList, http://msdn.microsoft.com/en-us/library/ms865768.aspx.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|