ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWORD into TCHAR

2 REPLIES 2
Reply
Message 1 of 3
XXL1966
1022 Views, 2 Replies

DWORD into TCHAR

hello,

 

i need to read the HID of a dongle. This is a DWORD, how do i turn the value into my TCHAR HID_string ?

 

DWORD uid, hid;

TCHAR HID_string[32];

 

retcode = SDX_Open(1, uid, &hid);
        if (retcode < 0)
        {
            ads_printf(_T("Error OPENING dongle: %08x\n"), retcode);
        }
        ads_printf(_T("DWORD: %08x\n"), hid);

 

the printed result is ok but i need it to be stored into HID_string

 

thx !

2 REPLIES 2
Message 2 of 3
Nick1983
in reply to: XXL1966

what about

_stprintf(HID_string, _T("%08x\n"), hid);

---
#define QUESTION(b) (2*b)||(!(2*b)) © William Shakespeare
Message 3 of 3
XXL66
in reply to: Nick1983

thx !

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost