Click here to Skip to main content
15,907,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionRe: converting LPCWSTR to char[] Pin
David Crow17-Mar-08 4:06
David Crow17-Mar-08 4:06 
vineeshV wrote:
wprintf(L"\t-- %s\n", pTmpBuf->usri3_name);

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


Have you tried:

printf("\n equivalent string is [%S]\n ",(char*)pTmpBuf->usri3_name);
They don't necessarily hurt anything, but you might also consider removing those unnecessary #include statements.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


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 
GeneralNetwork Performance Pin
od@ananzi.co.za17-Mar-08 2:48
od@ananzi.co.za17-Mar-08 2:48 

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.