Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNeed help with console character interface Pin
jp-mocs28-Oct-07 9:20
jp-mocs28-Oct-07 9:20 
QuestionReading excel worksheet from clipboard Pin
Andy H28-Oct-07 6:37
Andy H28-Oct-07 6:37 
QuestionUnreacheable subitem prepaint stage. Pin
paper6728-Oct-07 5:36
paper6728-Oct-07 5:36 
QuestionHow to recored and play mp3 files Pin
Mohsen Saad28-Oct-07 0:26
Mohsen Saad28-Oct-07 0:26 
AnswerRe: How to recored and play mp3 files Pin
Mark Salsbery28-Oct-07 7:39
Mark Salsbery28-Oct-07 7:39 
AnswerRe: How to recored and play mp3 files Pin
Hamid_RT28-Oct-07 19:12
Hamid_RT28-Oct-07 19:12 
QuestionPadRight Pin
teejayem27-Oct-07 11:39
teejayem27-Oct-07 11:39 
AnswerRe: PadRight Pin
Mark Salsbery27-Oct-07 12:29
Mark Salsbery27-Oct-07 12:29 
Something like this maybe (not tested!)...
LPTSTR MyPadRight(LPCTSTR pSrcStr, int nNewLen, TCHAR padchar)
{
   int nNewStrLen = max(_tcslen(pSrcStr) + 1, nNewLen + 1);

   TCHAR *pNewStr = new TCHAR[nNewStrLen];

   _tcscpy(pNewStr, pSrcStr)

   for (int i = _tcslen(pSrcStr); i < nNewStrLen - 1; ++i)
      pNewStr[i] = padchar;

   pNewStr[nNewStrLen - 1] = _T('\0');

   return pNewStr;
}




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: PadRight Pin
teejayem27-Oct-07 15:21
teejayem27-Oct-07 15:21 
GeneralRe: PadRight Pin
Mark Salsbery28-Oct-07 7:18
Mark Salsbery28-Oct-07 7:18 
GeneralRe: PadRight Pin
teejayem28-Oct-07 7:44
teejayem28-Oct-07 7:44 
GeneralRe: PadRight Pin
Mark Salsbery28-Oct-07 7:48
Mark Salsbery28-Oct-07 7:48 
GeneralRe: PadRight Pin
teejayem28-Oct-07 9:46
teejayem28-Oct-07 9:46 
GeneralRe: PadRight Pin
Mattias G28-Oct-07 10:37
Mattias G28-Oct-07 10:37 
GeneralRe: PadRight Pin
teejayem28-Oct-07 12:51
teejayem28-Oct-07 12:51 
GeneralRe: PadRight Pin
Mark Salsbery29-Oct-07 5:50
Mark Salsbery29-Oct-07 5:50 
GeneralRe: PadRight Pin
teejayem29-Oct-07 7:53
teejayem29-Oct-07 7:53 
GeneralRe: PadRight Pin
Mark Salsbery29-Oct-07 8:07
Mark Salsbery29-Oct-07 8:07 
GeneralRe: PadRight Pin
teejayem29-Oct-07 8:17
teejayem29-Oct-07 8:17 
GeneralRe: PadRight Pin
Mark Salsbery29-Oct-07 8:23
Mark Salsbery29-Oct-07 8:23 
GeneralRe: PadRight Pin
teejayem29-Oct-07 8:34
teejayem29-Oct-07 8:34 
AnswerRe: PadRight Pin
David Crow29-Oct-07 4:13
David Crow29-Oct-07 4:13 
QuestionIs it possible to have the .dll outside the system32? Pin
has98127-Oct-07 11:24
has98127-Oct-07 11:24 
AnswerRe: Is it possible to have the .dll outside the system32? Pin
Mark Salsbery27-Oct-07 12:14
Mark Salsbery27-Oct-07 12:14 
AnswerRe: Is it possible to have the .dll outside the system32? Pin
Nelek28-Oct-07 23:33
protectorNelek28-Oct-07 23: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.