Click here to Skip to main content
15,906,333 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralCOM Server created with ATL can't find the new Interface Pin
Nirav Thakkar23-Dec-03 14:54
Nirav Thakkar23-Dec-03 14:54 
GeneralRe: COM Server created with ATL can't find the new Interface Pin
Igor Vigdorchik23-Dec-03 16:34
Igor Vigdorchik23-Dec-03 16:34 
Generalwstring to string and vice versa Pin
Prakash Nadar23-Dec-03 5:10
Prakash Nadar23-Dec-03 5:10 
GeneralRe: wstring to string and vice versa Pin
Stuart Dootson23-Dec-03 5:39
professionalStuart Dootson23-Dec-03 5:39 
GeneralRe: wstring to string and vice versa Pin
Nemanja Trifunovic23-Dec-03 10:03
Nemanja Trifunovic23-Dec-03 10:03 
GeneralRe: wstring to string and vice versa Pin
Michael Dunn23-Dec-03 15:41
sitebuilderMichael Dunn23-Dec-03 15:41 
QuestionHow to access element in a vector of set Pin
Anthony_Yio22-Dec-03 21:45
Anthony_Yio22-Dec-03 21:45 
AnswerRe: How to access element in a vector of set Pin
Ivor S. Sargoytchev27-Dec-03 11:28
Ivor S. Sargoytchev27-Dec-03 11:28 
Anthony,

Unlike the vector class the set class does not have operator[]. A set is a sorted non-repeating collection, so you have to use the set's find() method.

In you particular case if you want to access the 7 of your set in the first vector you can use:

<br />
int iTest = *objSetVt[2].find(7);<br />


However if there is no 7 in the set the value of iTest will me meaningless. So You must always check:

<br />
set<int>::iterator it = objSetVt[0].find(7);<br />
if (it != objSetVt[0].end())<br />
	int iTest = *objSetVt[0].find(7);<br />


Ivor S. Sargoytchev
Dundas Software
GeneralDoes STL support unicode. Pin
Prakash Nadar22-Dec-03 17:39
Prakash Nadar22-Dec-03 17:39 
GeneralRe: Does STL support unicode. Pin
Stuart Dootson22-Dec-03 21:04
professionalStuart Dootson22-Dec-03 21:04 
GeneralRe: Does STL support unicode. Pin
Jörgen Sigvardsson23-Dec-03 7:08
Jörgen Sigvardsson23-Dec-03 7:08 
GeneralRe: Does STL support unicode. Pin
Stuart Dootson23-Dec-03 8:38
professionalStuart Dootson23-Dec-03 8:38 
GeneralRe: Does STL support unicode. Pin
Jörgen Sigvardsson30-Dec-03 6:44
Jörgen Sigvardsson30-Dec-03 6:44 
GeneralRe: Does STL support unicode. Pin
Nemanja Trifunovic23-Dec-03 7:59
Nemanja Trifunovic23-Dec-03 7:59 
GeneralRe: Does STL support unicode. Pin
Stuart Dootson23-Dec-03 8:45
professionalStuart Dootson23-Dec-03 8:45 
Questionhow to realize input/output of file? Pin
freehawk21-Dec-03 17:36
freehawk21-Dec-03 17:36 
AnswerRe: how to realize input/output of file? Pin
Igor Vigdorchik23-Dec-03 4:58
Igor Vigdorchik23-Dec-03 4:58 
GeneralRe: how to realize input/output of file? Pin
freehawk23-Dec-03 13:38
freehawk23-Dec-03 13:38 
Questionhow to send a broadcast message? Pin
freehawk21-Dec-03 17:33
freehawk21-Dec-03 17:33 
AnswerRe: how to send a broadcast message? Pin
Abhishek Srivastava21-Dec-03 19:17
Abhishek Srivastava21-Dec-03 19:17 
GeneralRe: how to send a broadcast message? Pin
freehawk21-Dec-03 21:38
freehawk21-Dec-03 21:38 
GeneralRe: OLE DB problem Pin
Steve S21-Dec-03 22:39
Steve S21-Dec-03 22:39 
GeneralRe: OLE DB problem Pin
Steve S22-Dec-03 22:56
Steve S22-Dec-03 22:56 
GeneralSubclassing Pin
GeraldoLuiz20-Dec-03 9:42
GeraldoLuiz20-Dec-03 9:42 
GeneralRe: Subclassing Pin
Jörgen Sigvardsson30-Dec-03 6:54
Jörgen Sigvardsson30-Dec-03 6:54 

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.