Click here to Skip to main content
15,897,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple lines edit box Pin
RomTibi31-Jul-07 8:16
RomTibi31-Jul-07 8:16 
QuestionA question about the sleep() function Pin
KaKa'31-Jul-07 5:10
KaKa'31-Jul-07 5:10 
AnswerRe: A question about the sleep() function Pin
led mike31-Jul-07 5:12
led mike31-Jul-07 5:12 
AnswerRe: A question about the sleep() function Pin
#realJSOP31-Jul-07 5:14
professional#realJSOP31-Jul-07 5:14 
AnswerRe: A question about the sleep() function Pin
Anurag Gandhi31-Jul-07 20:18
professionalAnurag Gandhi31-Jul-07 20:18 
QuestionAppend String to character buffer Pin
Programm3r31-Jul-07 4:41
Programm3r31-Jul-07 4:41 
AnswerRe: Append String to character buffer Pin
jhwurmbach31-Jul-07 5:09
jhwurmbach31-Jul-07 5:09 
AnswerRe: Append String to character buffer Pin
CPallini31-Jul-07 5:14
mveCPallini31-Jul-07 5:14 
What about
void copyat(char * strBuffer, char * strSource, int iStart, int iEnd)
{
  int iLen = strlen(strSource)
  for ( i=0; i< iEnd - iStart + 1; i++)
  {
      strBuffer[iStart+i] = i < iLen ? strSource[i] : ' ';
  }
}

?

of course, same preconditions must be satisfied (for instance, strlen(strBuffer)>iEnd, ...).
Smile | :)



If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

QuestionRe: Append String to character buffer Pin
Programm3r31-Jul-07 19:43
Programm3r31-Jul-07 19:43 
AnswerRe: Append String to character buffer Pin
CPallini31-Jul-07 20:59
mveCPallini31-Jul-07 20:59 
GeneralRe: Append String to character buffer Pin
Programm3r31-Jul-07 21:26
Programm3r31-Jul-07 21:26 
AnswerRe: Append String to character buffer Pin
Randor 31-Jul-07 5:26
professional Randor 31-Jul-07 5:26 
GeneralRe: Append String to character buffer Pin
Randor 31-Jul-07 5:28
professional Randor 31-Jul-07 5:28 
GeneralRe: Append String to character buffer Pin
David Crow31-Jul-07 5:58
David Crow31-Jul-07 5:58 
GeneralRe: Append String to character buffer Pin
Randor 31-Jul-07 6:53
professional Randor 31-Jul-07 6:53 
GeneralRe: Append String to character buffer Pin
David Crow31-Jul-07 6:55
David Crow31-Jul-07 6:55 
GeneralRe: Append String to character buffer Pin
Randor 31-Jul-07 7:06
professional Randor 31-Jul-07 7:06 
QuestionAccessing an edit box from multiple windows???? Pin
pblais31-Jul-07 4:36
pblais31-Jul-07 4:36 
AnswerRe: Accessing an edit box from multiple windows???? Pin
CPallini31-Jul-07 4:42
mveCPallini31-Jul-07 4:42 
GeneralRe: Accessing an edit box from multiple windows???? Pin
pblais31-Jul-07 4:47
pblais31-Jul-07 4:47 
GeneralRe: Accessing an edit box from multiple windows???? Pin
CPallini31-Jul-07 5:03
mveCPallini31-Jul-07 5:03 
GeneralRe: Accessing an edit box from multiple windows???? Pin
pblais1-Aug-07 4:19
pblais1-Aug-07 4:19 
GeneralRe: Accessing an edit box from multiple windows???? Pin
led mike31-Jul-07 5:19
led mike31-Jul-07 5:19 
GeneralRe: Accessing an edit box from multiple windows???? Pin
pblais1-Aug-07 4:27
pblais1-Aug-07 4:27 
GeneralRe: Accessing an edit box from multiple windows???? Pin
led mike2-Aug-07 4:26
led mike2-Aug-07 4:26 

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.