Click here to Skip to main content
15,905,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File Size Limits Pin
PJ Arends31-Aug-05 10:10
professionalPJ Arends31-Aug-05 10:10 
GeneralRe: File Size Limits Pin
Bob Stanneveld31-Aug-05 11:00
Bob Stanneveld31-Aug-05 11:00 
GeneralRe: File Size Limits Pin
Blake Miller31-Aug-05 13:00
Blake Miller31-Aug-05 13:00 
GeneralRe: File Size Limits Pin
Toby Opferman31-Aug-05 14:35
Toby Opferman31-Aug-05 14:35 
AnswerRe: File Size Limits Pin
John R. Shaw31-Aug-05 21:09
John R. Shaw31-Aug-05 21:09 
Questionxmldocument Pin
picazo31-Aug-05 5:35
picazo31-Aug-05 5:35 
QuestionRegCreateKeyEx returns 87 "ERROR_INVALID_PARAMETER" Pin
win_newbie31-Aug-05 5:15
win_newbie31-Aug-05 5:15 
AnswerRe: RegCreateKeyEx returns 87 "ERROR_INVALID_PARAMETER" Pin
PJ Arends31-Aug-05 6:30
professionalPJ Arends31-Aug-05 6:30 
win_newbie wrote:
wsprintf(szBuf, (LPCWSTR)"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\vsreq2");

The first thing that jumps out at me is the cast of an 8-bit string to a 16-bit string.

Drop the cast, and wrap your string literals in the _T("") t-char macro.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
GeneralRe: RegCreateKeyEx returns 87 "ERROR_INVALID_PARAMETER" Pin
win_newbie31-Aug-05 9:35
win_newbie31-Aug-05 9:35 
AnswerRe: RegCreateKeyEx returns 87 "ERROR_INVALID_PARAMETER" Pin
PJ Arends31-Aug-05 10:20
professionalPJ Arends31-Aug-05 10:20 
Questioncarriage return line feed not working in a string Pin
LCI31-Aug-05 4:48
LCI31-Aug-05 4:48 
AnswerRe: carriage return line feed not working in a string Pin
toxcct31-Aug-05 4:51
toxcct31-Aug-05 4:51 
GeneralRe: carriage return line feed not working in a string Pin
LCI31-Aug-05 4:55
LCI31-Aug-05 4:55 
GeneralRe: carriage return line feed not working in a string Pin
Chris Losinger31-Aug-05 5:11
professionalChris Losinger31-Aug-05 5:11 
GeneralRe: carriage return line feed not working in a string [edited] Pin
toxcct31-Aug-05 5:21
toxcct31-Aug-05 5:21 
AnswerRe: carriage return line feed not working in a string Pin
Blake Miller31-Aug-05 4:52
Blake Miller31-Aug-05 4:52 
GeneralRe: carriage return line feed not working in a string Pin
LCI31-Aug-05 4:59
LCI31-Aug-05 4:59 
GeneralRe: carriage return line feed not working in a string Pin
LCI31-Aug-05 5:04
LCI31-Aug-05 5:04 
GeneralRe: carriage return line feed not working in a string Pin
PJ Arends31-Aug-05 6:39
professionalPJ Arends31-Aug-05 6:39 
GeneralRe: carriage return line feed not working in a string Pin
toxcct31-Aug-05 5:38
toxcct31-Aug-05 5:38 
QuestionCannot enumerate with EnumWindows Pin
caykahve31-Aug-05 4:20
caykahve31-Aug-05 4:20 
AnswerRe: Cannot enumerate with EnumWindows Pin
Blake Miller31-Aug-05 4:56
Blake Miller31-Aug-05 4:56 
GeneralRe: Cannot enumerate with EnumWindows Pin
caykahve31-Aug-05 5:10
caykahve31-Aug-05 5:10 
GeneralRe: Cannot enumerate with EnumWindows Pin
Blake Miller31-Aug-05 8:41
Blake Miller31-Aug-05 8:41 
QuestionOnUpdateFrameTitle and maximized child window Pin
Joris van der Pol31-Aug-05 4:04
Joris van der Pol31-Aug-05 4:04 

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.