Click here to Skip to main content
15,908,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: USB Port Identification Pin
Cedric Moonen17-Mar-08 5:36
Cedric Moonen17-Mar-08 5:36 
Generalerror LNK2005: & warning LNK4006: Pin
ptr_Electron17-Mar-08 3:51
ptr_Electron17-Mar-08 3:51 
GeneralRe: error LNK2005: & warning LNK4006: Pin
toxcct17-Mar-08 4:18
toxcct17-Mar-08 4:18 
GeneralRe: error LNK2005: & warning LNK4006: Pin
ptr_Electron17-Mar-08 4:34
ptr_Electron17-Mar-08 4:34 
GeneralRe: error LNK2005: & warning LNK4006: Pin
David Crow17-Mar-08 4:24
David Crow17-Mar-08 4:24 
Generalconverting LPCWSTR to char[] [modified] Pin
vineeshV17-Mar-08 3:36
vineeshV17-Mar-08 3:36 
AnswerRe: converting LPCWSTR to char[] Pin
Rajesh R Subramanian17-Mar-08 3:45
professionalRajesh R Subramanian17-Mar-08 3:45 
GeneralRe: converting LPCWSTR to char[] Pin
CPallini17-Mar-08 3:59
mveCPallini17-Mar-08 3:59 
vineeshV wrote:
wprintf(L"\t-- %s\n", pTmpBuf->usri3_name);

printf("\n equlilent string is [%s]\n ",(char*)pTmpBuf->usri3_name);


a simple cast is not enough, you need a string conversion, for instance using WideCharToMultiByte, see this sample.

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


QuestionRe: converting LPCWSTR to char[] Pin
David Crow17-Mar-08 4:06
David Crow17-Mar-08 4:06 
GeneralRe: converting LPCWSTR to char[] Pin
Randor 17-Mar-08 4:15
professional Randor 17-Mar-08 4:15 
GeneralRe: converting LPCWSTR to char[] Pin
vineeshV17-Mar-08 6:53
vineeshV17-Mar-08 6:53 
GeneralMemory Usage in ExecWB Pin
Shivarudrayya H17-Mar-08 3:17
Shivarudrayya H17-Mar-08 3:17 
GeneralRe: Memory Usage in ExecWB Pin
David Crow17-Mar-08 3:20
David Crow17-Mar-08 3:20 
GeneralRe: Memory Usage in ExecWB Pin
Shivarudrayya H17-Mar-08 17:51
Shivarudrayya H17-Mar-08 17:51 
GeneralRe: Memory Usage in ExecWB Pin
Shivarudrayya H17-Mar-08 18:09
Shivarudrayya H17-Mar-08 18:09 
QuestionRe: Memory Usage in ExecWB Pin
Rajesh R Subramanian17-Mar-08 3:26
professionalRajesh R Subramanian17-Mar-08 3:26 
GeneralRe: Memory Usage in ExecWB Pin
Shivarudrayya H17-Mar-08 3:34
Shivarudrayya H17-Mar-08 3:34 
GeneralRe: Memory Usage in ExecWB Pin
Rajesh R Subramanian17-Mar-08 3:43
professionalRajesh R Subramanian17-Mar-08 3:43 
QuestionRe: Memory Usage in ExecWB Pin
CPallini17-Mar-08 3:29
mveCPallini17-Mar-08 3:29 
GeneralRe: Memory Usage in ExecWB Pin
David Crow17-Mar-08 4:15
David Crow17-Mar-08 4:15 
GeneralThanks Pin
CPallini17-Mar-08 4:50
mveCPallini17-Mar-08 4:50 
GeneralCWebBrowser2- Print problem!!!!!! Pin
Shivarudrayya H18-Mar-08 0:56
Shivarudrayya H18-Mar-08 0:56 
GeneralRe: CWebBrowser2- Print problem!!!!!! Pin
CPallini18-Mar-08 1:12
mveCPallini18-Mar-08 1:12 
GeneralRe: Memory Usage in ExecWB Pin
Shivarudrayya H18-Mar-08 19:14
Shivarudrayya H18-Mar-08 19:14 
QuestionRe: Memory Usage in ExecWB Pin
David Crow19-Mar-08 3:10
David Crow19-Mar-08 3:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.