Click here to Skip to main content
15,905,419 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralSys Tray Icon disappears after Explorer reload Pin
MrGlover8-Apr-03 15:53
MrGlover8-Apr-03 15:53 
GeneralRe: Sys Tray Icon disappears after Explorer reload Pin
Brian Shifrin9-Apr-03 2:08
Brian Shifrin9-Apr-03 2:08 
Generalbeginner stl basic_string question Pin
mweiss8-Apr-03 9:12
mweiss8-Apr-03 9:12 
GeneralRe: beginner stl basic_string question Pin
Joaquín M López Muñoz8-Apr-03 9:39
Joaquín M López Muñoz8-Apr-03 9:39 
GeneralRe: beginner stl basic_string question Pin
mweiss8-Apr-03 9:50
mweiss8-Apr-03 9:50 
GeneralRe: beginner stl basic_string question Pin
Joaquín M López Muñoz8-Apr-03 9:56
Joaquín M López Muñoz8-Apr-03 9:56 
GeneralRe: beginner stl basic_string question Pin
mweiss8-Apr-03 10:17
mweiss8-Apr-03 10:17 
Questionsimple... warning in STL!! Why?? Pin
Raphael Kindt7-Apr-03 23:03
Raphael Kindt7-Apr-03 23:03 
Hi all,
When I compile this very simple program I get some warnings... but I don't know why? Here is this program:
int i = 0;
std::vector<std::string> str_vect1;
std::vector<std::string> str_vect2;
std::vector<std::string>::iterator it1;
std::vector<std::string>::iterator it2;

// GET str_vect1
str_vect1.resize(5);
for(it1 = str_vect1.begin(), i = 0; it1 != str_vect1.end(); it1++, i++)
{
    cout << "str_vect1[" << i << "] = ";
    cin >> *it1;
}

// COPY str_vect1 into str_vect2
str_vect2.resize(str_vect1.size());
for(it1 = str_vect1.begin(), it2 = str_vect2.begin(); it1 != str_vect1.end(); it1++, it2++)
{
    *it2 = *it1;
}

// SHOW str_vect2
for(it2 = str_vect2.begin(), i = 0; it2 != str_vect2.end(); it2++, i++)
{
    cout << "str_vect2[" << i << "] = " << *it2 << endl;;
}

I don't understand these warnings...
Compiling...
DebugApp.cpp
C:\KINDT\My Projects VC++\Chameleon Project\GENERIC SELDES DRIVER\DebugApp\DebugApp.cpp(87) : warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,std::basic_string<char,std::char_traits<
char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,int>' : identifier was truncated to '255' characters in the debug
information
C:\KINDT\My Projects VC++\Chameleon Project\GENERIC SELDES DRIVER\DebugApp\DebugApp.cpp(87) : warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,std::basic_string<char,std::char_traits<char>,
std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,int>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\vector(39) : warning C4786: 'std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >
>::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\vector(60) : warning C4786: 'std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >
>::~vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >' : identifier was truncated to '255' characters in the debug information
Linking...

DebugApp.exe - 0 error(s), 4 warning(s)

Thanks for all who can help me...

Hello World!!! Smile | :)
from Raphaël
AnswerRe: simple... warning in STL!! Why?? Pin
Joaquín M López Muñoz8-Apr-03 2:55
Joaquín M López Muñoz8-Apr-03 2:55 
GeneralRe: simple... warning in STL!! Why?? Pin
Raphael Kindt8-Apr-03 3:04
Raphael Kindt8-Apr-03 3:04 
GeneralIE Pin
Anonymous7-Apr-03 20:19
Anonymous7-Apr-03 20:19 
GeneralUsing C++ exception handling in ATL Pin
puzzolino7-Apr-03 0:45
puzzolino7-Apr-03 0:45 
GeneralRe: Using C++ exception handling in ATL Pin
Michael Dunn7-Apr-03 7:46
sitebuilderMichael Dunn7-Apr-03 7:46 
GeneralRe: Using C++ exception handling in ATL Pin
puzzolino7-Apr-03 21:39
puzzolino7-Apr-03 21:39 
GeneralRe: Using C++ exception handling in ATL Pin
Nemanja Trifunovic10-Apr-03 6:26
Nemanja Trifunovic10-Apr-03 6:26 
GeneralRe: Using C++ exception handling in ATL Pin
puzzolino10-Apr-03 21:15
puzzolino10-Apr-03 21:15 
GeneralMinimize problem Pin
super7-Apr-03 0:27
professionalsuper7-Apr-03 0:27 
GeneralRe: Minimize problem Pin
dysxq8-Apr-03 4:18
dysxq8-Apr-03 4:18 
GeneralConfused on UISetRadio() Pin
Tommy2k6-Apr-03 23:53
Tommy2k6-Apr-03 23:53 
GeneralRe: Confused on UISetRadio() Pin
Michael Dunn7-Apr-03 7:48
sitebuilderMichael Dunn7-Apr-03 7:48 
GeneralRe: Confused on UISetRadio() Pin
Tommy2k10-Apr-03 7:03
Tommy2k10-Apr-03 7:03 
GeneralRe: Confused on UISetRadio() Pin
Michael Dunn3-May-03 12:54
sitebuilderMichael Dunn3-May-03 12:54 
Generalfor_each / accumulate Pin
Chris Losinger5-Apr-03 10:03
professionalChris Losinger5-Apr-03 10:03 
GeneralRe: for_each / accumulate Pin
valikac6-Apr-03 6:47
valikac6-Apr-03 6:47 
GeneralRe: for_each / accumulate Pin
Zdeslav Vojkovic7-Apr-03 23:36
Zdeslav Vojkovic7-Apr-03 23:36 

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.