Click here to Skip to main content
15,891,812 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help with this..IE snapshot Pin
Anonymous8-Mar-04 9:40
Anonymous8-Mar-04 9:40 
GeneralRe: Need help with this..IE snapshot Pin
AWebDude8-Mar-04 10:01
AWebDude8-Mar-04 10:01 
GeneralRe: Need help with this..IE snapshot Pin
Anonymous9-Mar-04 9:37
Anonymous9-Mar-04 9:37 
GeneralMFC Dialog question Pin
Anonymous8-Mar-04 8:05
Anonymous8-Mar-04 8:05 
GeneralRe: MFC Dialog question Pin
David Crow8-Mar-04 8:51
David Crow8-Mar-04 8:51 
GeneralRe: MFC Dialog question Pin
Tom Wright8-Mar-04 9:04
Tom Wright8-Mar-04 9:04 
GeneralConcatenation of two LPSTR Pin
__Cerb8-Mar-04 6:55
__Cerb8-Mar-04 6:55 
GeneralRe: Concatenation of two LPSTR Pin
antlers8-Mar-04 7:18
antlers8-Mar-04 7:18 
You have to understand that an LPSTR is a very primitive thing: a pointer to an array of characters that is supposed to have a \0 on the end. You can do operations with LPSTR (look at the strcat function) but you have to make sure that you have allocated another array to hold the result that is large enough. Manipulating strings this way has been done for years in C and has led to innumerable buffer overflow errors. You should never do it in C++. You should use the string classes (std::string, std::wstring for wide characters) that are in the standard library, which take care of buffer allocation (and many other useful things) for you. You can concatenate std::string with the overloaded + operator and get just what you expect.

GeneralRe: Concatenation of two LPSTR Pin
Anonymous8-Mar-04 8:20
Anonymous8-Mar-04 8:20 
GeneralRe: Concatenation of two LPSTR Pin
Michael Dunn8-Mar-04 10:02
sitebuilderMichael Dunn8-Mar-04 10:02 
GeneralRe: Concatenation of two LPSTR Pin
chpsoft8-Mar-04 21:35
chpsoft8-Mar-04 21:35 
Generalvc++ help Pin
brianfm8-Mar-04 6:08
brianfm8-Mar-04 6:08 
GeneralWindow Styles Pin
monrobot138-Mar-04 4:18
monrobot138-Mar-04 4:18 
GeneralRe: Window Styles Pin
Steve S8-Mar-04 4:38
Steve S8-Mar-04 4:38 
GeneralRe: Window Styles Pin
monrobot138-Mar-04 6:07
monrobot138-Mar-04 6:07 
GeneralRe: Window Styles Pin
Anonymous8-Mar-04 5:54
Anonymous8-Mar-04 5:54 
GeneralRe: Window Styles Pin
monrobot138-Mar-04 6:08
monrobot138-Mar-04 6:08 
GeneralRe: Window Styles Pin
Michael Dunn8-Mar-04 10:04
sitebuilderMichael Dunn8-Mar-04 10:04 
Generalsize of dll vs exe Pin
GDavy8-Mar-04 3:27
GDavy8-Mar-04 3:27 
GeneralRe: size of dll vs exe Pin
Iain Clarke, Warrior Programmer8-Mar-04 3:44
Iain Clarke, Warrior Programmer8-Mar-04 3:44 
GeneralRe: size of dll vs exe Pin
Prakash Nadar8-Mar-04 4:08
Prakash Nadar8-Mar-04 4:08 
GeneralRe: size of dll vs exe Pin
GDavy8-Mar-04 19:23
GDavy8-Mar-04 19:23 
GeneralGIF decoding Pin
jk chan8-Mar-04 2:58
jk chan8-Mar-04 2:58 
QuestionRead/Write to Ms Excel and Access using MFC? Pin
Mehdi_Hosseinpour8-Mar-04 2:49
Mehdi_Hosseinpour8-Mar-04 2:49 
AnswerRe: Read/Write to Ms Excel and Access using MFC? Pin
David Crow8-Mar-04 3:56
David Crow8-Mar-04 3:56 

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.