Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSplitting a CString Pin
ROK_RShadow22-Feb-03 21:38
ROK_RShadow22-Feb-03 21:38 
GeneralRe: Splitting a CString Pin
Pavel Klocek23-Feb-03 1:25
Pavel Klocek23-Feb-03 1:25 
GeneralRe: Splitting a CString Pin
Big Art23-Feb-03 10:48
Big Art23-Feb-03 10:48 
GeneralRe: Splitting a CString Pin
ROK_RShadow23-Feb-03 12:36
ROK_RShadow23-Feb-03 12:36 
GeneralRe: Splitting a CString Pin
Big Art24-Feb-03 5:21
Big Art24-Feb-03 5:21 
GeneralNeed help on some weird errors Pin
Abin22-Feb-03 20:23
Abin22-Feb-03 20:23 
GeneralRe: Need help on some weird errors Pin
Michael Dunn22-Feb-03 20:35
sitebuilderMichael Dunn22-Feb-03 20:35 
Generalstoring and accessing file names from FindNextFile() Pin
kiken22-Feb-03 18:11
kiken22-Feb-03 18:11 
I'm using STL vector to store file names as I retrieve them from FindNextFile() but when I try to access different locations in the vector, they all return the last file added. Am I storing or accessing incorrectly?

<br />
vector<char *> file_names;<br />
<br />
        HANDLE Hnd;<br />
	WIN32_FIND_DATA WFD;<br />
<br />
	Hnd = FindFirstFile( "*.175", &WFD);<br />
	file_names.push_back(WFD.cFileName);<br />
	int i=0;<br />
	while ( FindNextFile( Hnd, &WFD) ) {<br />
		file_names.push_back(WFD.cFileName);<br />
               cout << file_names[i] < endl;  //this seems to work ok<br />
		i++;<br />
	}<br />
        for(int i=0; i <=file_names.size(); i++) {<br />
        cout << file_names[i] << endl;<br />
        cout << file_names.at(i) << endl;<br />
        }<br />
<br />
vector <char *>::iterator f;<br />
	for ( f = file_names.begin(); f != file_names.end(); f++)<br />
	    cout << *f << endl;<br />

GeneralRe: storing and accessing file names from FindNextFile() Pin
valikac22-Feb-03 18:19
valikac22-Feb-03 18:19 
GeneralRe: storing and accessing file names from FindNextFile() Pin
Michael Dunn22-Feb-03 18:24
sitebuilderMichael Dunn22-Feb-03 18:24 
GeneralToolbars Pin
boon kian22-Feb-03 17:14
boon kian22-Feb-03 17:14 
GeneralRe: Toolbars Pin
ROK_RShadow22-Feb-03 17:41
ROK_RShadow22-Feb-03 17:41 
GeneralRe: Toolbars Pin
boon kian22-Feb-03 18:43
boon kian22-Feb-03 18:43 
GeneralRe: Toolbars Pin
ROK_RShadow22-Feb-03 19:12
ROK_RShadow22-Feb-03 19:12 
GeneralCommand Routing Pin
ROK_RShadow22-Feb-03 16:21
ROK_RShadow22-Feb-03 16:21 
GeneralRe: Command Routing Pin
Taka Muraoka23-Feb-03 0:43
Taka Muraoka23-Feb-03 0:43 
GeneralHelp me please,Urgent!! Pin
ucc80122-Feb-03 15:25
ucc80122-Feb-03 15:25 
GeneralRe: Help me please,Urgent!! Pin
Roger Allen24-Feb-03 1:20
Roger Allen24-Feb-03 1:20 
GeneralWin32 Wrapper Class - Problem with window creation Pin
Skute22-Feb-03 14:01
Skute22-Feb-03 14:01 
GeneralRe: Win32 Wrapper Class - Problem with window creation Pin
Jambolo22-Feb-03 20:25
Jambolo22-Feb-03 20:25 
GeneralOnwer Draw spin control only Pin
Wolfram Steinke22-Feb-03 12:53
Wolfram Steinke22-Feb-03 12:53 
GeneralProblem with Developer Studio (VC++ ver 4.0) Pin
Still learning how to code22-Feb-03 11:43
Still learning how to code22-Feb-03 11:43 
GeneralRe: Problem with Developer Studio (VC++ ver 4.0) Pin
Still learning how to code22-Feb-03 12:17
Still learning how to code22-Feb-03 12:17 
GeneralDynamic CListView Column Sizes Pin
Jonah Bishop22-Feb-03 11:27
Jonah Bishop22-Feb-03 11:27 
GeneralRe: How do you write a program to block a port using mfc/c++? Pin
Taka Muraoka23-Feb-03 0:45
Taka Muraoka23-Feb-03 0:45 

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.