0

hello guys...i have a LPTSTR variable and I want to show that on console how do I do that..Here is what I have but, off course it does't work..if it is tooo simple question, plz excuse me...thanx

lpszDevName = (LPTSTR)((LPBYTE)lineDevCaps + lineDevCaps->dwLineNameOffset);
printf("%s",lpszDevName);
2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by muze
0

Use _tprintf( TEXT("%s"), lpszDevName ); instead. You'll also have to #include <tchar.h> .

0

thanx...it really worked....now the last question is ...i want to show the DWORD variable in console, am I doing the right thing??

DWORD devID = 0;
printf("The number is: %d", devID);
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.