I have a DWORD variable and want to convert to a CString.

Likewise, I would like to convert a CString to a DWORD.

I know how to do it for other variables using functions like

[code]
number = atoi(str); //string to number
str.Format("%d", number); //number to string
[/ccode]

I would appreciate any suggestions and example code.