Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do i catch when the user selects an item in a listview control with the RIGHT mouse button? Pin
redeemer30-May-02 13:03
redeemer30-May-02 13:03 
AnswerRe: How do i catch when the user selects an item in a listview control with the RIGHT mouse button? Pin
Tomasz Sowinski30-May-02 13:05
Tomasz Sowinski30-May-02 13:05 
GeneralRe: How do i catch when the user selects an item in a listview control with the RIGHT mouse button? Pin
redeemer30-May-02 13:28
redeemer30-May-02 13:28 
GeneralOveriding mouse events Pin
30-May-02 11:51
suss30-May-02 11:51 
GeneralVariable issues Pin
Stew30-May-02 11:37
Stew30-May-02 11:37 
GeneralRe: Variable issues Pin
Bill Wilson30-May-02 11:43
Bill Wilson30-May-02 11:43 
GeneralRe: Variable issues Pin
Stew30-May-02 12:01
Stew30-May-02 12:01 
GeneralRe: Variable issues Pin
Bill Wilson30-May-02 12:18
Bill Wilson30-May-02 12:18 
This doesn't look right to me.

PlaybookFileStream.getline(PlaybookFile.GetBuffer(0), 128, '\n');

the argument in GetBuffer causes CString to allocate at least that many characters to the buffer. If your CString object starts out with an empty string and you do a GetBuffer(0) you still have no memory allocated. Try this instead.

PlaybookFileStream.getline(PlaybookFile.GetBuffer(0128), 128, '\n');

You must allso call ReleaseBuffer after modifying the string.

GeneralRe: Variable issues Pin
James R. Twine31-May-02 10:48
James R. Twine31-May-02 10:48 
GeneralCleaning up from Visual Studio 6 Pin
dazinith30-May-02 9:47
dazinith30-May-02 9:47 
GeneralRe: Cleaning up from Visual Studio 6 Pin
Ed Gadziemski30-May-02 11:06
professionalEd Gadziemski30-May-02 11:06 
GeneralRe: Cleaning up from Visual Studio 6 Pin
Jonathan Craig30-May-02 11:56
Jonathan Craig30-May-02 11:56 
GeneralRe: Cleaning up from Visual Studio 6 Pin
Tomasz Sowinski30-May-02 12:59
Tomasz Sowinski30-May-02 12:59 
GeneralRe: Cleaning up from Visual Studio 6 Pin
dazinith31-May-02 3:20
dazinith31-May-02 3:20 
GeneralRe: Cleaning up from Visual Studio 6 Pin
James R. Twine31-May-02 10:53
James R. Twine31-May-02 10:53 
GeneralRe: Cleaning up from Visual Studio 6 Pin
mocotrah31-Aug-02 3:01
mocotrah31-Aug-02 3:01 
QuestionHow to use Unicode to std::ostrstream Pin
JohnnyG30-May-02 9:26
JohnnyG30-May-02 9:26 
AnswerRe: How to use Unicode to std::ostrstream Pin
Rama Krishna Vavilala30-May-02 9:35
Rama Krishna Vavilala30-May-02 9:35 
GeneralRe: How to use Unicode to std::ostrstream Pin
JohnnyG30-May-02 10:58
JohnnyG30-May-02 10:58 
GeneralRe: How to use Unicode to std::ostrstream Pin
Rama Krishna Vavilala30-May-02 11:04
Rama Krishna Vavilala30-May-02 11:04 
GeneralRe: How to use Unicode to std::ostrstream Pin
JohnnyG31-May-02 3:44
JohnnyG31-May-02 3:44 
GeneralRe: How to use Unicode to std::ostrstream Pin
Rama Krishna Vavilala31-May-02 3:43
Rama Krishna Vavilala31-May-02 3:43 
GeneralRe: How to use Unicode to std::ostrstream Pin
JohnnyG31-May-02 3:54
JohnnyG31-May-02 3:54 
GeneralCurrent time Pin
esapp42030-May-02 8:49
esapp42030-May-02 8:49 
GeneralRe: Current time Pin
Ravi Bhavnani30-May-02 9:18
professionalRavi Bhavnani30-May-02 9:18 

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.