Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalindex of selected item in listctrl Pin
danag12-Sep-02 8:56
danag12-Sep-02 8:56 
GeneralRe: index of selected item in listctrl Pin
Tomasz Sowinski12-Sep-02 9:05
Tomasz Sowinski12-Sep-02 9:05 
GeneralRe: index of selected item in listctrl Pin
danag12-Sep-02 9:17
danag12-Sep-02 9:17 
GeneralRe: index of selected item in listctrl Pin
Tomasz Sowinski12-Sep-02 9:23
Tomasz Sowinski12-Sep-02 9:23 
GeneralRe: index of selected item in listctrl Pin
danag12-Sep-02 9:24
danag12-Sep-02 9:24 
GeneralUnhandled exception when writing to allocated memory. Pin
12-Sep-02 8:26
suss12-Sep-02 8:26 
GeneralRe: Unhandled exception when writing to allocated memory. Pin
Tomasz Sowinski12-Sep-02 8:43
Tomasz Sowinski12-Sep-02 8:43 
GeneralRe: Unhandled exception when writing to allocated memory. Pin
Redeemer-dk12-Sep-02 8:53
Redeemer-dk12-Sep-02 8:53 
The function returns a valid handle to a piece of memory and not NULL, so it should have succeeded, BUT, i've found out that the when i allocate two pieces of memory after each other (which is what i do in my program) the second allocation is only 8 bytes away from the first one.

sSourceBuffer = (BYTE *)LocalAlloc(LMEM_MOVEABLE | LMEM_ZEROINIT, dwSourceBufferSize);
sDestBuffer = (BYTE *)LocalAlloc(LMEM_MOVEABLE | LMEM_ZEROINIT, dwDestBufferSize);


The first one gets the address 0x0091000c and the seconds gets 0x00910014. What could be wrong here?

BTW, at runetime the dwDestBufferSize is 73599, and the dwSourceBufferSize is 176400.

Thanks.
GeneralRe: Unhandled exception when writing to allocated memory. Pin
TyMatthews12-Sep-02 8:52
TyMatthews12-Sep-02 8:52 
GeneralRe: Unhandled exception when writing to allocated memory. Pin
Joaquín M López Muñoz12-Sep-02 8:53
Joaquín M López Muñoz12-Sep-02 8:53 
GeneralThanks all, now i see :) Pin
Anonymous12-Sep-02 9:01
Anonymous12-Sep-02 9:01 
GeneralWin2K and Multilink Pin
Tili12-Sep-02 8:20
Tili12-Sep-02 8:20 
GeneralStill Dialog menu problems Pin
DarrollWalsh12-Sep-02 8:10
DarrollWalsh12-Sep-02 8:10 
GeneralRe: Still Dialog menu problems Pin
Tomasz Sowinski12-Sep-02 8:22
Tomasz Sowinski12-Sep-02 8:22 
GeneralRe: Still Dialog menu problems Pin
DarrollWalsh12-Sep-02 8:42
DarrollWalsh12-Sep-02 8:42 
GeneralRe: Still Dialog menu problems Pin
Tomasz Sowinski12-Sep-02 8:47
Tomasz Sowinski12-Sep-02 8:47 
GeneralRe: Still Dialog menu problems Pin
DarrollWalsh12-Sep-02 8:56
DarrollWalsh12-Sep-02 8:56 
GeneralRe: Still Dialog menu problems Pin
Tomasz Sowinski12-Sep-02 9:06
Tomasz Sowinski12-Sep-02 9:06 
GeneralRe: Still Dialog menu problems Pin
DarrollWalsh12-Sep-02 9:24
DarrollWalsh12-Sep-02 9:24 
GeneralRe: Still Dialog menu problems Pin
Tomasz Sowinski12-Sep-02 9:28
Tomasz Sowinski12-Sep-02 9:28 
Generalheight of title bar of modeless CDialog Pin
ns12-Sep-02 8:09
ns12-Sep-02 8:09 
GeneralRe: height of title bar of modeless CDialog Pin
Tomasz Sowinski12-Sep-02 8:19
Tomasz Sowinski12-Sep-02 8:19 
GeneralHandle WM in CDialog derived class Pin
Ludovic Balogh12-Sep-02 7:56
sussLudovic Balogh12-Sep-02 7:56 
GeneralRe: Handle WM in CDialog derived class Pin
Tomasz Sowinski12-Sep-02 8:17
Tomasz Sowinski12-Sep-02 8:17 
GeneralHighliting items in list control Pin
Shay Harel12-Sep-02 7:28
Shay Harel12-Sep-02 7:28 

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.