Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

working with DWORD

Status
Not open for further replies.

Leroy1981

Programmer
Jul 22, 2002
46
US
i was wondering if anyone has any tips on comparing data of type DWORD with data of type char? i also need to set a DWORD to what a char is holding but memcpy doesn't seem to work.
 
I would think that you would have to use some kind of conversion, you would have to convert DWORD to char then copy it. I never have tried it or do not know how to convert it, but I would bet there is a function in C++ that will convert it.

DWORD MyWord;
char *s;
MyWord = "Testing";
s = MyWord;

That is a conversion I just dreamed up, but it will give you the idea.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top