Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stopping an application... Pin
Tomasz Sowinski14-May-01 3:03
Tomasz Sowinski14-May-01 3:03 
GeneralRe: Stopping an application... Pin
Roger14-May-01 6:45
Roger14-May-01 6:45 
QuestionCFileDialog converting??? Pin
14-May-01 0:22
suss14-May-01 0:22 
AnswerRe: CFileDialog converting??? Pin
Tomasz Sowinski14-May-01 0:34
Tomasz Sowinski14-May-01 0:34 
GeneralRe: CFileDialog converting??? Pin
14-May-01 0:39
suss14-May-01 0:39 
GeneralRe: CFileDialog converting??? Pin
Tomasz Sowinski14-May-01 1:21
Tomasz Sowinski14-May-01 1:21 
GeneralRe: CFileDialog converting??? Pin
14-May-01 2:40
suss14-May-01 2:40 
GeneralPeculiar compiling differences. Pin
David Fleming13-May-01 14:57
David Fleming13-May-01 14:57 
I'm pretty new to C++, but this seems weird.

I have written a program just to practice working with CListCtrl. All it does is load the list with a few lines
of stuff (in 3 columns). Then I set some extended styles (select whole line and track select). Then when
the column header is clicked, it sorts the list on that column and puts a little bitmap in the header
to show which column is sorted and whether ascending or descending.

The weird part is this: in one version of the program, it works perfectly in the Release version, but in
the Debug version everytime it gets to the .GetItem line for the CHeaderCtrl it gives me an
"Unhandled exception... Access violation..." error. I couldn't figure out how to fix that, so I started
from scratch on a new project and made the same program (cut and paste some code that seems OK).
In that version of the program the Debug compile works perfectly, but the Release version does not. In the
Release version of the second try, when I click on the column header, the headers actually disappear,
the column widths are screwed up (very wide) and the line items are all jumbled and some parts missing.

The "sort" seems to work OK in all versions, so I don't think that is the snag. It seems to be in the
"getting" and "setting" of the CHeaderCtrl items.

I know this is pretty vague, but any ideas? What the heck is going on? More to the point, what can
I do to figure it out and fix it?

Thanks for any suggestions. David.
GeneralRe: Peculiar compiling differences. Pin
Michael Dunn13-May-01 16:40
sitebuilderMichael Dunn13-May-01 16:40 
GeneralRe: Peculiar compiling differences. Pin
David Fleming14-May-01 11:50
David Fleming14-May-01 11:50 
GeneralRe: Peculiar compiling differences. Pin
Michael Dunn14-May-01 16:01
sitebuilderMichael Dunn14-May-01 16:01 
GeneralRe: Peculiar compiling differences. Pin
David Fleming17-May-01 18:46
David Fleming17-May-01 18:46 
GeneralRe: Peculiar compiling differences. Pin
Michael Dunn17-May-01 18:59
sitebuilderMichael Dunn17-May-01 18:59 
GeneralRe: Peculiar compiling differences. Pin
David Fleming17-May-01 19:58
David Fleming17-May-01 19:58 
GeneralRe: Peculiar compiling differences. Pin
13-May-01 22:13
suss13-May-01 22:13 
QuestionCLongBinary --> CBitmap? Pin
13-May-01 4:44
suss13-May-01 4:44 
GeneralIn ActiveX Component MS Winsock Ver 6I can't senddata from server to client by client use getdata function but it can't receive data. Pin
12-May-01 19:09
suss12-May-01 19:09 
GeneralNeed code for Address Book... Pin
Ting12-May-01 12:08
Ting12-May-01 12:08 
GeneralA window into a big world Pin
Bilal Naveed12-May-01 8:36
Bilal Naveed12-May-01 8:36 
GeneralRe: A window into a big world Pin
Christian Graus12-May-01 11:42
protectorChristian Graus12-May-01 11:42 
GeneralRe: A window into a big world Pin
Pros Chum12-May-01 12:20
Pros Chum12-May-01 12:20 
GeneralRe: A window into a big world Pin
Christian Graus12-May-01 13:29
protectorChristian Graus12-May-01 13:29 
GeneralRe: A window into a big world Pin
Ting16-May-01 11:16
Ting16-May-01 11:16 
GeneralRe: A window into a big world Pin
Christian Graus16-May-01 12:17
protectorChristian Graus16-May-01 12:17 
GeneralRe: A window into a big world Pin
David Fleming14-May-01 15:34
David Fleming14-May-01 15: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.