Your solution is similar to what I ended up doing.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jason Teagle
> Sent: Monday, July 12, 2004 1:54 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [msvc] SetItemData to member function ptr

> In my contrived second sample I used a dynamic array, which meets your
> varying list size needs, and the index obtained by adding a 
> pointer there
> was used as the dwGetItemDataValue... so calling the function 
> is as easy as
> 
> funcPtr = my_dynamic_list.get_item(dwGetItemDataValue);
> 
> (get function name faked for imaginary container / map)

_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to