Click here to Skip to main content
15,899,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReturning data from VC++(DLL) to VB Client Pin
techratna25-Jan-06 13:52
techratna25-Jan-06 13:52 
AnswerRe: Returning data from VC++(DLL) to VB Client Pin
Stephen Hewitt25-Jan-06 20:51
Stephen Hewitt25-Jan-06 20:51 
AnswerRe: Returning data from VC++(DLL) to VB Client Pin
Phil J Pearson25-Jan-06 23:29
Phil J Pearson25-Jan-06 23:29 
Questionchild frame fills main frame? Pin
LeeeNN25-Jan-06 13:38
LeeeNN25-Jan-06 13:38 
AnswerRe: child frame fills main frame? Pin
Owner drawn26-Jan-06 17:04
Owner drawn26-Jan-06 17:04 
QuestionMember Get/Set methods? Pin
Rob Caldecott25-Jan-06 11:55
Rob Caldecott25-Jan-06 11:55 
AnswerRe: Member Get/Set methods? Pin
Maximilien25-Jan-06 16:45
Maximilien25-Jan-06 16:45 
AnswerRe: Member Get/Set methods? Pin
Bob Stanneveld25-Jan-06 21:07
Bob Stanneveld25-Jan-06 21:07 
Hello,

As some other user suggested, creating another iterator over the container is the ideal solution. You can change the container and nobody has to know it.

If you don't mind that the class exposes the data structure (container), you can override the index operator: operator[](int nIndex) to make life simple and easy.

I also suggest that you hide the STL completely from your class to make it more reusable and hide implementation details from users. I assume that you use the std::wstring as return values and such. It's better to return const wchar_t* instead of a string class. This way, you don't foce your users to use STL or an other library.

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
Questionhow to define the customer paper type Pin
yujia12025-Jan-06 8:15
yujia12025-Jan-06 8:15 
AnswerRe: how to define the customer paper type Pin
Phil J Pearson25-Jan-06 23:32
Phil J Pearson25-Jan-06 23:32 
QuestionRe: how to define the customer paper type Pin
yujia12026-Jan-06 5:38
yujia12026-Jan-06 5:38 
QuestionHow to obtain the current directory pidl of a windows explorer window? Pin
z530025-Jan-06 6:21
z530025-Jan-06 6:21 
QuestionRe: How to obtain the current directory pidl of a windows explorer window? Pin
David Crow25-Jan-06 6:27
David Crow25-Jan-06 6:27 
AnswerRe: How to obtain the current directory pidl of a windows explorer window? Pin
z530025-Jan-06 14:20
z530025-Jan-06 14:20 
QuestionSerial number of USB Flash drive Pin
mrothermund25-Jan-06 6:16
mrothermund25-Jan-06 6:16 
AnswerRe: Serial number of USB Flash drive Pin
Phil J Pearson25-Jan-06 6:40
Phil J Pearson25-Jan-06 6:40 
AnswerRe: Serial number of USB Flash drive Pin
Taka Muraoka25-Jan-06 6:56
Taka Muraoka25-Jan-06 6:56 
GeneralRe: Serial number of USB Flash drive Pin
mrothermund25-Jan-06 7:46
mrothermund25-Jan-06 7:46 
AnswerRe: Serial number of USB Flash drive Pin
kakan25-Jan-06 20:13
professionalkakan25-Jan-06 20:13 
QuestionException (Access violation reading location) Pin
llp00na25-Jan-06 5:50
llp00na25-Jan-06 5:50 
AnswerRe: Exception (Access violation reading location) Pin
Blake Miller25-Jan-06 6:58
Blake Miller25-Jan-06 6:58 
GeneralRe: Exception (Access violation reading location) Pin
llp00na25-Jan-06 7:32
llp00na25-Jan-06 7:32 
AnswerRe: Exception (Access violation reading location) Pin
Michael Dunn25-Jan-06 10:26
sitebuilderMichael Dunn25-Jan-06 10:26 
AnswerRe: Exception (Access violation reading location) Pin
Stephen Hewitt25-Jan-06 21:09
Stephen Hewitt25-Jan-06 21:09 
Questiononmousemove Pin
misugi25-Jan-06 5:41
misugi25-Jan-06 5:41 

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.