Click here to Skip to main content
15,887,434 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How to associate CMap key value to CComboBox Pin
Cool_Dev27-Sep-10 22:36
Cool_Dev27-Sep-10 22:36 
GeneralRe: How to associate CMap key value to CComboBox Pin
ptr_Electron28-Sep-10 0:31
ptr_Electron28-Sep-10 0:31 
GeneralRe: How to associate CMap key value to CComboBox Pin
ptr_Electron28-Sep-10 1:53
ptr_Electron28-Sep-10 1:53 
GeneralRe: How to associate CMap key value to CComboBox Pin
Cool_Dev28-Sep-10 2:12
Cool_Dev28-Sep-10 2:12 
GeneralRe: How to associate CMap key value to CComboBox Pin
ptr_Electron28-Sep-10 2:24
ptr_Electron28-Sep-10 2:24 
QuestionCFile Insert not Write... Pin
loid grey manuel26-Sep-10 22:17
loid grey manuel26-Sep-10 22:17 
AnswerRe: CFile Insert not Write... Pin
Richard MacCutchan26-Sep-10 22:59
mveRichard MacCutchan26-Sep-10 22:59 
GeneralRe: CFile Insert not Write... [RESOLVED] Pin
loid grey manuel27-Sep-10 15:56
loid grey manuel27-Sep-10 15:56 
resolution:

READ from whatever starting pointing from your file, save to buffer, then add whatever character you want at the beginning of the buffer. then WRITE the buffer to your file, this way you can insert...

//points to index where to start reading
	cfile_object.Seek( insIndex, CFile::begin );
	
	//Reads the content of file starting at the SEEK index, in my case its index [2]..
	int flen = cfile_object.GetLength();
	char *fBuf= new char[flen];

	UINT file = cfile_object.Read(fBuf,flen);
	fBuf[file] = '\0';
	//Joins the user input and the file read..
	txtInsert = txtInsert + fBuf;

	//Points to index where to insert, in my case its index [2]..
	cfile_object.Seek( insIndex, CFile::begin );

	//writes to file where index pointer is..
        cfile_object.Write(txtInsert, szSize + file);

	//close file
	cfile_object.Close();


modified on Tuesday, September 28, 2010 2:53 AM

GeneralRe: CFile Insert not Write... [RESOLVED] Pin
Richard MacCutchan27-Sep-10 21:48
mveRichard MacCutchan27-Sep-10 21:48 
GeneralRe: CFile Insert and realtime Sorting ... Pin
loid grey manuel27-Sep-10 22:32
loid grey manuel27-Sep-10 22:32 
GeneralRe: CFile Insert and realtime Sorting ... Pin
Richard MacCutchan28-Sep-10 2:16
mveRichard MacCutchan28-Sep-10 2:16 
QuestionHttpOpenRequest failed in IE9 Pin
am 200922-Sep-10 20:25
am 200922-Sep-10 20:25 
AnswerRe: HttpOpenRequest failed in IE9 Pin
Garth J Lancaster22-Sep-10 20:49
professionalGarth J Lancaster22-Sep-10 20:49 
GeneralRe: HttpOpenRequest failed in IE9 Pin
am 200922-Sep-10 21:01
am 200922-Sep-10 21:01 
GeneralRe: HttpOpenRequest failed in IE9 Pin
Garth J Lancaster22-Sep-10 23:59
professionalGarth J Lancaster22-Sep-10 23:59 
GeneralRe: HttpOpenRequest failed in IE9 Pin
am 200923-Sep-10 17:44
am 200923-Sep-10 17:44 
GeneralRe: HttpOpenRequest failed in IE9 Pin
Garth J Lancaster23-Sep-10 17:46
professionalGarth J Lancaster23-Sep-10 17:46 
GeneralRe: HttpOpenRequest failed in IE9 Pin
am 200923-Sep-10 18:45
am 200923-Sep-10 18:45 
QuestionAny news for native c++ delegates? Pin
federico.strati22-Sep-10 4:52
federico.strati22-Sep-10 4:52 
AnswerRe: Any news for native c++ delegates? Pin
«_Superman_»22-Sep-10 20:21
professional«_Superman_»22-Sep-10 20:21 
GeneralRe: Any news for native c++ delegates? Pin
federico.strati22-Sep-10 22:50
federico.strati22-Sep-10 22:50 
QuestionResizing a window Pin
Craig Longman21-Sep-10 11:04
Craig Longman21-Sep-10 11:04 
AnswerRe: Resizing a window Pin
Craig Longman22-Sep-10 18:02
Craig Longman22-Sep-10 18:02 
AnswerRe: Resizing a window Pin
Craig Longman23-Sep-10 16:03
Craig Longman23-Sep-10 16:03 
GeneralRe: Resizing a window Pin
Blake Miller4-Oct-10 11:33
Blake Miller4-Oct-10 11:33 

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.