Click here to Skip to main content
15,889,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Format("...") problem in UNICODE Pin
Tim Deveaux26-Jan-02 4:21
Tim Deveaux26-Jan-02 4:21 
GeneralResizing a control. Pin
NullStream26-Jan-02 0:55
NullStream26-Jan-02 0:55 
GeneralRe: Resizing a control. Pin
Christian Graus26-Jan-02 0:56
protectorChristian Graus26-Jan-02 0:56 
GeneralRe: Resizing a control. Pin
NullStream26-Jan-02 1:52
NullStream26-Jan-02 1:52 
GeneralRe: Resizing a control. Pin
Christian Graus26-Jan-02 9:37
protectorChristian Graus26-Jan-02 9:37 
GeneralRe: Resizing a control. Pin
Ravi Bhavnani26-Jan-02 10:17
professionalRavi Bhavnani26-Jan-02 10:17 
GeneralRe: Resizing a control. Pin
alex.barylski26-Jan-02 11:48
alex.barylski26-Jan-02 11:48 
GeneralMacro expansion porting from UNIX Pin
Martijn26-Jan-02 0:49
Martijn26-Jan-02 0:49 
How do I go about porting a macro with the following definition:
<br />
#define addText(format, args...) \<br />
{ \<br />
  nLenRest = nMaxLen - strlen(szDest); \<br />
  snprintf(szTemp, sizeof(szTemp), format, ##args); \<br />
  strncat(szDest, szTemp, nLenRest); \<br />
}<br />

It can be invoked like this:
<br />
void xyz(char *szDest, int nMaxLen)<br />
{<br />
  int nLenRest;<br />
  char szTemp[8192];<br />
<br />
  memset(szDest, 0, nMaxLen);<br />
  addText("==== Partition Image: compilation options used ====\n");<br />
}<br />

Thanks for the help!
GeneralRe: Macro expansion porting from UNIX Pin
Michael Dunn26-Jan-02 6:44
sitebuilderMichael Dunn26-Jan-02 6:44 
GeneralRe: Macro expansion porting from UNIX Pin
Martijn26-Jan-02 12:15
Martijn26-Jan-02 12:15 
GeneralRe: Macro expansion porting from UNIX Pin
Rick York26-Jan-02 12:38
mveRick York26-Jan-02 12:38 
GeneralRe: Macro expansion porting from UNIX Pin
Martijn27-Jan-02 0:46
Martijn27-Jan-02 0:46 
GeneralRe: Macro expansion porting from UNIX Pin
Michael Dunn26-Jan-02 15:22
sitebuilderMichael Dunn26-Jan-02 15:22 
GeneralRe: Macro expansion porting from UNIX Pin
Matt Gullett26-Jan-02 15:56
Matt Gullett26-Jan-02 15:56 
GeneralRe: Macro expansion porting from UNIX Pin
Martijn27-Jan-02 0:46
Martijn27-Jan-02 0:46 
GeneralCompiler optimizations and evaluation order Pin
valtrig26-Jan-02 0:01
valtrig26-Jan-02 0:01 
GeneralRe: Compiler optimizations and evaluation order Pin
Tim Deveaux26-Jan-02 4:29
Tim Deveaux26-Jan-02 4:29 
GeneralRe: Compiler optimizations and evaluation order Pin
Michael Dunn26-Jan-02 6:48
sitebuilderMichael Dunn26-Jan-02 6:48 
GeneralJust look at this. Pin
EdBond25-Jan-02 23:02
EdBond25-Jan-02 23:02 
GeneralRe: Just look at this. Pin
Nish Nishant25-Jan-02 23:07
sitebuilderNish Nishant25-Jan-02 23:07 
Generaluser login Pin
aleyah25-Jan-02 21:05
aleyah25-Jan-02 21:05 
GeneralRe: user login Pin
Nish Nishant25-Jan-02 22:02
sitebuilderNish Nishant25-Jan-02 22:02 
GeneralRe: user login Pin
Simon Walton26-Jan-02 0:17
Simon Walton26-Jan-02 0:17 
GeneralRe: user login Pin
aleyah26-Jan-02 4:31
aleyah26-Jan-02 4:31 
GeneralPrinter <i>Properties</i> Dialog Pin
Shog925-Jan-02 17:33
sitebuilderShog925-Jan-02 17: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.