Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalavoid scientific numbers Pin
Mediate16-Feb-04 3:18
Mediate16-Feb-04 3:18 
GeneralRe: avoid scientific numbers Pin
Tim Smith16-Feb-04 4:10
Tim Smith16-Feb-04 4:10 
GeneralRe: avoid scientific numbers Pin
Sebastian Schneider16-Feb-04 23:47
Sebastian Schneider16-Feb-04 23:47 
GeneralRe: avoid scientific numbers Pin
Mediate17-Feb-04 0:21
Mediate17-Feb-04 0:21 
QuestionHow to add a custom search handler in Start Menu->Search Pin
PravinSingh16-Feb-04 2:34
PravinSingh16-Feb-04 2:34 
AnswerRe: How to add a custom search handler in Start Menu->Search Pin
Sebastian Schneider16-Feb-04 22:07
Sebastian Schneider16-Feb-04 22:07 
GeneralPrintDC to CDC Pin
Yusak16-Feb-04 2:02
Yusak16-Feb-04 2:02 
QuestionHow to get value of STL <vector> by iterator? Pin
vgrigor16-Feb-04 1:51
vgrigor16-Feb-04 1:51 
If I define STL vector, not bu pointer, but by value
as:
<br />
<br />
typedef vector<CVariableShift> type_DevStrVector;<br />
<br />
struct CVariableShift<br />
{<br />
int i;<br />
};<br />


than how to get copy of stored variable
by iterator?

Only possible bu conversion to pointer ? as :

<br />
<br />
int j = it->i; // works but only for member of struct<br />
<br />
 l_VariableShift = *(CVariableShift*)(&it); //<br />
                  //proble - not suitable, not normal, not natural<br />
<br />
  //not as usual and suitable as in map :<br />
  //l_VariableShift = it->second;<br />
 <br />




Is it possible to works without ugly conversion?

thanks.
AnswerRe: How to get value of STL &lt;vector&gt; by iterator? Pin
Mike Dimmick16-Feb-04 2:39
Mike Dimmick16-Feb-04 2:39 
GeneralRe: How to get value of STL &lt;vector&gt; by iterator? Pin
vgrigor16-Feb-04 2:50
vgrigor16-Feb-04 2:50 
GeneralExcel protection question Pin
Tzoockee16-Feb-04 0:51
Tzoockee16-Feb-04 0:51 
Generalcreatting a transparent text GIF using CXImage Pin
emmatty16-Feb-04 0:43
emmatty16-Feb-04 0:43 
QuestionHow to detect the different regions of two images Pin
Arcrest16-Feb-04 0:29
Arcrest16-Feb-04 0:29 
GeneralWeb Browser control Pin
TrungHuynh16-Feb-04 0:09
TrungHuynh16-Feb-04 0:09 
QuestionSame hotkey for different dialogs in the same MFC program ?? Pin
bjolletts16-Feb-04 0:08
bjolletts16-Feb-04 0:08 
AnswerRe: Same hotkey for different dialogs in the same MFC program ?? Pin
David Crow16-Feb-04 2:27
David Crow16-Feb-04 2:27 
GeneralRe: Same hotkey for different dialogs in the same MFC program ?? Pin
bjolletts16-Feb-04 3:15
bjolletts16-Feb-04 3:15 
GeneralRe: Same hotkey for different dialogs in the same MFC program ?? Pin
David Crow16-Feb-04 4:27
David Crow16-Feb-04 4:27 
GeneralRe: Same hotkey for different dialogs in the same MFC program ?? Pin
Maximilien16-Feb-04 8:16
Maximilien16-Feb-04 8:16 
Generallinck Pin
Anonymous15-Feb-04 23:49
Anonymous15-Feb-04 23:49 
GeneralRe: linck Pin
David Crow16-Feb-04 2:28
David Crow16-Feb-04 2:28 
GeneralRe: link Pin
Anonymous16-Feb-04 2:44
Anonymous16-Feb-04 2:44 
GeneralRe: link Pin
David Crow16-Feb-04 4:43
David Crow16-Feb-04 4:43 
GeneralRe: link Pin
Steve S16-Feb-04 4:54
Steve S16-Feb-04 4:54 
GeneralDifference between delete and delete[] Pin
Cedric Moonen15-Feb-04 23:08
Cedric Moonen15-Feb-04 23:08 

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.