Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding items to the title bar Pin
Emilio Garavaglia24-Apr-10 10:40
Emilio Garavaglia24-Apr-10 10:40 
GeneralRe: Adding items to the title bar Pin
hans.sch24-Apr-10 15:10
hans.sch24-Apr-10 15:10 
AnswerRe: Adding items to the title bar (solved) [modified] Pin
hans.sch17-Jun-10 21:30
hans.sch17-Jun-10 21:30 
QuestionHow to avoid Buffer Overrun?! Pin
Fareed Rizkalla24-Apr-10 7:38
Fareed Rizkalla24-Apr-10 7:38 
AnswerRe: How to avoid Buffer Overrun?! Pin
Rajesh R Subramanian24-Apr-10 7:41
professionalRajesh R Subramanian24-Apr-10 7:41 
AnswerRe: How to avoid Buffer Overrun?! Pin
Moak24-Apr-10 9:06
Moak24-Apr-10 9:06 
AnswerRe: How to avoid Buffer Overrun?! Pin
Saurabh.Garg24-Apr-10 17:55
Saurabh.Garg24-Apr-10 17:55 
AnswerRe: How to avoid Buffer Overrun?! Pin
RedZombie12527-Apr-10 16:45
RedZombie12527-Apr-10 16:45 
I don't actually know what you're trying to do with this, but a pretty common mistake is miscounting the number of elements you're trying to allocate, so while you might think you've allocated accurately, you could be one off, which causes lots of problems. Frown | :(

For example:

"Phil Collins"
Has a total of 13 elements, even though there's actually 12 characters in "Phil Collins". A common mistake is to forget the '\0' character at the end of every C-style string, so the whole thing is thrown off. (BTW, I used "Phil Collins" because I named a tree after him in a video game I'm working on... Does Phil Collins work as a good name for a tree..?Confused | :confused: )

I hope that helps; bits of source code would probably help though.

*I can haz a cookie?*
QuestionCan I get a FILE* from a HANDLE? Pin
sashoalm24-Apr-10 5:59
sashoalm24-Apr-10 5:59 
AnswerRe: Can I get a FILE* from a HANDLE? Pin
sashoalm24-Apr-10 6:16
sashoalm24-Apr-10 6:16 
AnswerRe: Can I get a FILE* from a HANDLE? Pin
«_Superman_»24-Apr-10 8:04
professional«_Superman_»24-Apr-10 8:04 
QuestionWin32's HttpSendRequest : ERROR_INTERNET_INCORRECT_HANDLE_STATE Pin
VictorSotnikov24-Apr-10 4:12
VictorSotnikov24-Apr-10 4:12 
AnswerRe: Win32's HttpSendRequest : ERROR_INTERNET_INCORRECT_HANDLE_STATE Pin
Luc Pattyn24-Apr-10 4:19
sitebuilderLuc Pattyn24-Apr-10 4:19 
QuestionHelp for RAPI functions. Pin
Le@rner23-Apr-10 22:33
Le@rner23-Apr-10 22:33 
AnswerRe: Help for RAPI functions. Pin
Gary R. Wheeler23-Apr-10 23:49
Gary R. Wheeler23-Apr-10 23:49 
GeneralRe: Help for RAPI functions. Pin
Le@rner24-Apr-10 0:01
Le@rner24-Apr-10 0:01 
GeneralRe: Help for RAPI functions. Pin
Chris Losinger24-Apr-10 9:17
professionalChris Losinger24-Apr-10 9:17 
GeneralRe: Help for RAPI functions. Pin
Tim Craig24-Apr-10 17:06
Tim Craig24-Apr-10 17:06 
QuestionCString to Unsigned short and unsigned short to CString in vc++ Pin
Member 365375123-Apr-10 21:20
Member 365375123-Apr-10 21:20 
AnswerRe: CString to Unsigned short and unsigned short to CString in vc++ Pin
Richard MacCutchan23-Apr-10 21:39
mveRichard MacCutchan23-Apr-10 21:39 
GeneralRe: CString to Unsigned short and unsigned short to CString in vc++ Pin
Rajesh R Subramanian24-Apr-10 6:15
professionalRajesh R Subramanian24-Apr-10 6:15 
GeneralRe: CString to Unsigned short and unsigned short to CString in vc++ Pin
Richard MacCutchan24-Apr-10 6:39
mveRichard MacCutchan24-Apr-10 6:39 
QuestionC++ DLL compiled under VS 2005 does not work for program compiled under VS 2010 Pin
Vilasrk123-Apr-10 11:42
Vilasrk123-Apr-10 11:42 
AnswerRe: C++ DLL compiled under VS 2005 does not work for program compiled under VS 2010 Pin
Chris Losinger23-Apr-10 12:37
professionalChris Losinger23-Apr-10 12:37 
GeneralRe: C++ DLL compiled under VS 2005 does not work for program compiled under VS 2010 Pin
Vilasrk126-Apr-10 4:02
Vilasrk126-Apr-10 4:02 

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.