CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    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.

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: ISimpleList Facade

    That should be a CDictionary (Commerce.Dictionary), not CSimpleList, http://msdn.microsoft.com/en-us/library/ms865768.aspx.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

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
  •  





Click Here to Expand Forum to Full Width

Featured