I like to keep my code with no warning, check this out.
It is caused by this new function I wrote...Code:Compiling... DataEngine.cpp C:\PROGRAMMING\GAMEDEVPROJECT\Core Game Build\code\DataEngine.cpp(150) : warning C4786: 'std::reverse_bidirectional_iterator<std::list<std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,std::allocator<std::basic_string<char,std:: char_traits<char>,std::allocator<char> > *> >::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> > * *,int>' : identifier was truncated to '255' characters in the debug information C:\PROGRAMMING\GAMEDEVPROJECT\Core Game Build\code\DataEngine.cpp(150) : warning C4786: 'std::reverse_bidirectional_iterator<std::list<std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,std::allocator<std::basic_string<char,std:: char_traits<char>,std::allocator<char> > *> >::const_iterator,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_trai ts<char>,std::allocator<char> > * const *,int>' : identifier was truncated to '255' characters in the debug information WindowManager.cpp C:\PROGRAMMING\GAMEDEVPROJECT\Core Game Build\code\DataEngine.cpp(150) : warning C4786: '__ehhandler$?FindFiles@cDataEngine@@AAEXPAV?$list@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@PAV?$basic_string@DU?$char_traits @D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z' : identifier was truncated to '255' characters in the debug information C:\PROGRAMMING\GAMEDEVPROJECT\Core Game Build\code\DataEngine.cpp(150) : warning C4786: '__unwindfunclet$?FindFiles@cDataEngine@@AAEXPAV?$list@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@PAV?$basic_string@DU?$char_tr aits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z$2' : identifier was truncated to '255' characters in the debug information C:\PROGRAMMING\GAMEDEVPROJECT\Core Game Build\code\DataEngine.cpp(150) : warning C4786: '__unwindfunclet$?FindFiles@cDataEngine@@AAEXPAV?$list@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@PAV?$basic_string@DU?$char_tr aits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z$1' : identifier was truncated to '255' characters in the debug information C:\PROGRAMMING\GAMEDEVPROJECT\Core Game Build\code\DataEngine.cpp(150) : warning C4786: '__unwindfunclet$?FindFiles@cDataEngine@@AAEXPAV?$list@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@PAV?$basic_string@DU?$char_tr aits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z$0' : identifier was truncated to '255' characters in the debug information RenderEngine.cpp Skipping... (no relevant changes detected) GameClient.cpp Linking... EndAge.exe - 0 error(s), 6 warning(s)
I just wanted a function that I can pass a string like "/subfolder/*.ter", and the function will return a list of all the files with that extension in that subfolder. If anyone has any better ways of doing this im open to your ideas.Code:void cDataEngine::FindFiles(list<string*>* filelist, string file) { WIN32_FIND_DATA findData; HANDLE h = FindFirstFile(file.data(),&findData); filelist->push_front(new string(findData.cFileName)); while(FindNextFile(h,&findData)) filelist->push_front(new string(findData.cFileName)); }
On a side note, since the list is declared dynamically, do the strings need to also be declared dynamically? So instead of making it a list of String pointers, just make it a list of strings...



LinkBack URL
About LinkBacks


