Click here to Skip to main content
16,010,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I work with the '\' Pin
Jose Cruz11-Sep-02 10:09
Jose Cruz11-Sep-02 10:09 
GeneralRe: How do I work with the '\' Pin
Ernest Laurentin11-Sep-02 11:11
Ernest Laurentin11-Sep-02 11:11 
Generalan XOR problem!!! Pin
ns11-Sep-02 9:39
ns11-Sep-02 9:39 
GeneralRe: an XOR problem!!! Pin
Tim Smith11-Sep-02 9:56
Tim Smith11-Sep-02 9:56 
GeneralRe: an XOR problem!!! Pin
ns11-Sep-02 9:59
ns11-Sep-02 9:59 
GeneralRe: an XOR problem!!! Pin
Tim Smith11-Sep-02 10:14
Tim Smith11-Sep-02 10:14 
GeneralRe: an XOR problem!!! Pin
ns11-Sep-02 10:15
ns11-Sep-02 10:15 
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 10:21
professionalRavi Bhavnani11-Sep-02 10:21 
#define dontCare "dontcare";
char szDontCare [64];
strcpy (szDontCare, dontCare);
for (char* pc = szDontCare; (*pc != '\0'); pc++) {
    *pc ^= 0x30;
}
Please don't write code like this:
while (*pc) {
  ...
}
It makes me weep. Cry | :(( Do this instead:
while (*pc != '\0') {
  ...
}
Why? Because it's easier to maintain. And maintenance costs about 4x development.

/ravi

Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
GeneralRe: an XOR problem!!! Pin
ns11-Sep-02 10:34
ns11-Sep-02 10:34 
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 10:39
professionalRavi Bhavnani11-Sep-02 10:39 
GeneralRe: an XOR problem!!! Pin
ns11-Sep-02 10:46
ns11-Sep-02 10:46 
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 10:51
professionalRavi Bhavnani11-Sep-02 10:51 
GeneralRe: an XOR problem!!! Pin
ns11-Sep-02 10:49
ns11-Sep-02 10:49 
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 10:55
professionalRavi Bhavnani11-Sep-02 10:55 
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 11:04
professionalRavi Bhavnani11-Sep-02 11:04 
GeneralRe: an XOR problem!!!Update Pin
ns12-Sep-02 2:57
ns12-Sep-02 2:57 
GeneralRe: an XOR problem!!! Pin
Michael Dunn11-Sep-02 13:36
sitebuilderMichael Dunn11-Sep-02 13:36 
GeneralWeird DLL dependencies Pin
Jim Crafton11-Sep-02 9:38
Jim Crafton11-Sep-02 9:38 
GeneralRe: Weird DLL dependencies Pin
Renjith Ramachandran11-Sep-02 9:49
Renjith Ramachandran11-Sep-02 9:49 
GeneralRe: Weird DLL dependencies Pin
Rama Krishna Vavilala11-Sep-02 9:49
Rama Krishna Vavilala11-Sep-02 9:49 
GeneralRe: Weird DLL dependencies Pin
Jim Crafton11-Sep-02 9:57
Jim Crafton11-Sep-02 9:57 
GeneralRe: Weird DLL dependencies Pin
Jim Crafton11-Sep-02 10:01
Jim Crafton11-Sep-02 10:01 
GeneralDisplaying a string in a CStatic control Pin
Luis E. Cuadrado11-Sep-02 9:23
Luis E. Cuadrado11-Sep-02 9:23 
GeneralRe: Displaying a string in a CStatic control Pin
Renjith Ramachandran11-Sep-02 9:47
Renjith Ramachandran11-Sep-02 9:47 
GeneralRe: Displaying a string in a CStatic control Pin
Carlos Antollini11-Sep-02 9:47
Carlos Antollini11-Sep-02 9:47 

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.