Click here to Skip to main content
15,909,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVC++ ActiveX Pin
Wender Oliveira18-Jun-04 7:38
Wender Oliveira18-Jun-04 7:38 
GeneralRe: VC++ ActiveX Pin
TimWallace18-Jun-04 9:14
TimWallace18-Jun-04 9:14 
GeneralRe: VC++ ActiveX Pin
Wender Oliveira18-Jun-04 9:19
Wender Oliveira18-Jun-04 9:19 
GeneralRe: VC++ ActiveX Pin
Nick Parker18-Jun-04 11:56
protectorNick Parker18-Jun-04 11:56 
GeneralDirectx and non-rectangular dialogs Pin
Xavi Temporal18-Jun-04 7:09
Xavi Temporal18-Jun-04 7:09 
Generalstd::string strange error Pin
Scozturk18-Jun-04 6:49
professionalScozturk18-Jun-04 6:49 
GeneralRe: std::string strange error Pin
Scozturk18-Jun-04 6:56
professionalScozturk18-Jun-04 6:56 
GeneralRe: std::string strange error Pin
James R. Twine18-Jun-04 11:06
James R. Twine18-Jun-04 11:06 
>    if(len > 0)<br />
>    {<br />
>      GetDlgItemText(hwnd, IDC_VALUE, values, len + 1);<br />
>    } <br />

   Be sure that len does not exceed the capacity of the buffer you are copying into; in this case, values, which is of MAX_PATH length.

   I would change the code to something like this:

      GetDlgItemText( hwnd, IDC_VALUE, values, MAX_PATH );

   It is OK to ask for "too much text" in this case, the function will copy only what is available in the window or how much your buffer can handle, which ever is less.

   Peace!

-=- James
Tip for SUV winter driving survival: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"!
Articles -- Products: Delete FXP Files & Check Favorites

GeneralSetting the print title column Pin
mcgahanfl18-Jun-04 5:43
mcgahanfl18-Jun-04 5:43 
GeneralRe: Setting the print title column Pin
Johan Rosengren18-Jun-04 5:53
Johan Rosengren18-Jun-04 5:53 
Generalstd::string and reserve question ... Pin
Maximilien18-Jun-04 5:24
Maximilien18-Jun-04 5:24 
GeneralRe: std::string and reserve question ... Pin
palbano18-Jun-04 6:00
palbano18-Jun-04 6:00 
GeneralRe: std::string and reserve question ... Pin
Maximilien18-Jun-04 8:24
Maximilien18-Jun-04 8:24 
GeneralRe: std::string and reserve question ... Pin
James R. Twine18-Jun-04 11:20
James R. Twine18-Jun-04 11:20 
GeneralExperts help with Threads with Notifications Pin
18-Jun-04 4:50
suss18-Jun-04 4:50 
GeneralRe: Experts help with Threads with Notifications Pin
Blake Miller18-Jun-04 5:47
Blake Miller18-Jun-04 5:47 
GeneralRe: Experts help with Threads with Notifications Pin
Member 115017621-Jun-04 1:29
Member 115017621-Jun-04 1:29 
QuestionHow can I create GraphicsPath vector and its iterator ? Pin
Gem18-Jun-04 4:41
Gem18-Jun-04 4:41 
AnswerRe: How can I create GraphicsPath vector and its iterator ? Pin
Gem18-Jun-04 4:45
Gem18-Jun-04 4:45 
GeneralMAPI and outlook Pin
kanetheterrible118-Jun-04 4:35
kanetheterrible118-Jun-04 4:35 
GeneralRe: MAPI and outlook Pin
Michael P Butler18-Jun-04 4:52
Michael P Butler18-Jun-04 4:52 
GeneralRe: MAPI and outlook Pin
kanetheterrible118-Jun-04 6:39
kanetheterrible118-Jun-04 6:39 
GeneralDoModal and window position Pin
Anonymous18-Jun-04 4:22
Anonymous18-Jun-04 4:22 
GeneralRe: DoModal and window position Pin
jmkhael18-Jun-04 4:25
jmkhael18-Jun-04 4:25 
GeneralPlease help - Fast Table Format Pin
swerajan18-Jun-04 3:34
swerajan18-Jun-04 3:34 

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.