<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma,new york,times,serif;font-size:10pt;color:#000000;"><div>Hello<br><br>I have code a bit like this:<br><br>strText = GetSMLabel(IDS_STR_XXXX,"IDS_STR_XXXX");<br><br>Etc ...<br><br>The GetSMLabel(n,"n") call always has the id (integer) and then the same value as a string as above. It returns a CString.<br><br>Can I do a macro:<br><br>SMLABEL(IDS_STR_XXXX) that expands to the above, to save me typing in the same value twice, and it automatically put quotes around?<br><br>I tried:<br><br>#define SMLABEL(a) GetSMLabel(a,"a")<br><br>but it didn't work.<br><br>Andrew<br></div></div></body></html>