Click here to Skip to main content
15,884,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can I embed java applet in the VC++ App Pin
RamL14-Feb-06 1:48
RamL14-Feb-06 1:48 
Questionhow to add html page in SDI Pin
sourabh27231814-Feb-06 1:34
sourabh27231814-Feb-06 1:34 
AnswerRe: how to add html page in SDI Pin
Rage14-Feb-06 1:39
professionalRage14-Feb-06 1:39 
QuestionVisual Studio .NET question Pin
IlanTal14-Feb-06 1:26
IlanTal14-Feb-06 1:26 
QuestionGetWindowTextA() function not working in Visual Studio 2005? Pin
Amarelia14-Feb-06 1:20
Amarelia14-Feb-06 1:20 
AnswerRe: GetWindowTextA() function not working in Visual Studio 2005? Pin
Rage14-Feb-06 1:37
professionalRage14-Feb-06 1:37 
AnswerRe: GetWindowTextA() function not working in Visual Studio 2005? Pin
James R. Twine14-Feb-06 4:32
James R. Twine14-Feb-06 4:32 
AnswerRe: GetWindowTextA() function not working in Visual Studio 2005? Pin
James R. Twine14-Feb-06 4:28
James R. Twine14-Feb-06 4:28 
   It is likely ASSERTing because the you are passing the return from strlen(...) as the length of the buffer.  These are two different things.

   You should be calling the function like: m_Pswd.GetWindowTextA(sCurPswd,512).

   Peace!

   ---   Modified at 10:34 Tuesday 14th February, 2006

   Actually, the second parameter is the max number of characters to copy into the buffer.  This is important, because it does not mean the size of the buffer.  That is why using sizeof(...) as was also suggested would be incorrect in a UNICODE build.

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

-- modified at 10:34 Tuesday 14th February, 2006

   Actually, the second parameter is the max number of characters to copy into the buffer.  This is important, because it does not mean the size of the buffer.  That is why using sizeof(...) as was also suggested would be incorrect in a UNICODE build.
AnswerRe: GetWindowTextA() function not working in Visual Studio 2005? Pin
David Crow14-Feb-06 4:31
David Crow14-Feb-06 4:31 
GeneralRe: GetWindowTextA() function not working in Visual Studio 2005? Pin
ThatsAlok14-Feb-06 22:07
ThatsAlok14-Feb-06 22:07 
GeneralRe: GetWindowTextA() function not working in Visual Studio 2005? Pin
David Crow15-Feb-06 3:27
David Crow15-Feb-06 3:27 
QuestionIntegrating Crystal Reports Pin
Niro198314-Feb-06 0:36
Niro198314-Feb-06 0:36 
QuestionHow to disable 'restart service' button for a service? Pin
melwyn14-Feb-06 0:22
melwyn14-Feb-06 0:22 
QuestionWinword.exe and WaitForSingleObject Pin
vikramlinux14-Feb-06 0:12
vikramlinux14-Feb-06 0:12 
AnswerRe: Winword.exe and WaitForSingleObject Pin
_anil_14-Feb-06 0:52
_anil_14-Feb-06 0:52 
GeneralRe: Winword.exe and WaitForSingleObject Pin
vikramlinux14-Feb-06 1:16
vikramlinux14-Feb-06 1:16 
AnswerRe: Winword.exe and WaitForSingleObject Pin
kakan14-Feb-06 0:57
professionalkakan14-Feb-06 0:57 
GeneralRe: Winword.exe and WaitForSingleObject Pin
_anil_14-Feb-06 1:41
_anil_14-Feb-06 1:41 
GeneralRe: Winword.exe and WaitForSingleObject Pin
kakan14-Feb-06 2:03
professionalkakan14-Feb-06 2:03 
AnswerRe: Winword.exe and WaitForSingleObject Pin
kakan14-Feb-06 2:36
professionalkakan14-Feb-06 2:36 
QuestionRe: Winword.exe and WaitForSingleObject Pin
David Crow14-Feb-06 4:34
David Crow14-Feb-06 4:34 
AnswerRe: Winword.exe and WaitForSingleObject Pin
vikramlinux15-Feb-06 18:12
vikramlinux15-Feb-06 18:12 
GeneralRe: Winword.exe and WaitForSingleObject Pin
David Crow16-Feb-06 2:48
David Crow16-Feb-06 2:48 
GeneralRe: Winword.exe and WaitForSingleObject Pin
vikramlinux16-Feb-06 3:18
vikramlinux16-Feb-06 3:18 
GeneralRe: Winword.exe and WaitForSingleObject Pin
vikramlinux16-Feb-06 3:20
vikramlinux16-Feb-06 3:20 

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.