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

C / C++ / MFC

 
QuestionInternet Explorer Toolbar Pin
Mircea Grelus28-Oct-05 3:03
Mircea Grelus28-Oct-05 3:03 
QuestionForcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
ja100128-Oct-05 2:48
ja100128-Oct-05 2:48 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
David Crow28-Oct-05 3:04
David Crow28-Oct-05 3:04 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
Cedric Moonen28-Oct-05 3:13
Cedric Moonen28-Oct-05 3:13 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
Michael Dunn28-Oct-05 3:24
sitebuilderMichael Dunn28-Oct-05 3:24 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
Blake Miller28-Oct-05 7:32
Blake Miller28-Oct-05 7:32 
QuestionRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
ja100129-Oct-05 4:49
ja100129-Oct-05 4:49 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
Blake Miller31-Oct-05 3:21
Blake Miller31-Oct-05 3:21 
The heap create makes a 'region' of memory available thorugh the API. To determine where the memory is actually located, you must use the pointer returned from HeapAlloc. Allocate a small block of memory, say 8 bytes, using HeapAlloc and then pass that pointer into the VirtualQueryEx function.

LPVOID lpMyMem = HeapAlloc(hHeap, 0, 8);

Also, VirtualQueryEx size is sizeof() not the size of the memory you think you got.

VirtualQueryEx( hProcess, lpMyMem, &MemInfo, sizeof(MemInfo) );

This should let you know how much memory the Heap has comitted and reserved, and its true starting address, so you can call VirtualLock.

QuestionHow to debug an api call that generates an unknown error Pin
Dan Neely28-Oct-05 2:09
Dan Neely28-Oct-05 2:09 
Questionneed help in TrimStart() Pin
sheshidar28-Oct-05 1:58
sheshidar28-Oct-05 1:58 
AnswerRe: need help in TrimStart() Pin
willy_total28-Oct-05 2:23
willy_total28-Oct-05 2:23 
GeneralRe: need help in TrimStart() Pin
sheshidar28-Oct-05 3:22
sheshidar28-Oct-05 3:22 
GeneralRe: need help in TrimStart() Pin
willy_total31-Oct-05 2:58
willy_total31-Oct-05 2:58 
AnswerRe: need help in TrimStart() Pin
shivditya28-Oct-05 2:52
shivditya28-Oct-05 2:52 
QuestionMessage Pumps in MFC Pin
Eytukan28-Oct-05 1:02
Eytukan28-Oct-05 1:02 
AnswerRe: Message Pumps in MFC Pin
David Crow28-Oct-05 2:54
David Crow28-Oct-05 2:54 
GeneralRe: Message Pumps in MFC Pin
Eytukan28-Oct-05 4:21
Eytukan28-Oct-05 4:21 
GeneralRe: Message Pumps in MFC Pin
Eytukan28-Oct-05 4:23
Eytukan28-Oct-05 4:23 
GeneralRe: Message Pumps in MFC Pin
David Crow28-Oct-05 4:48
David Crow28-Oct-05 4:48 
GeneralRe: Message Pumps in MFC Pin
Eytukan28-Oct-05 5:51
Eytukan28-Oct-05 5:51 
GeneralRe: Message Pumps in MFC Pin
David Crow28-Oct-05 6:16
David Crow28-Oct-05 6:16 
Questioncaret position from ms word Pin
sudeesh28-Oct-05 0:23
sudeesh28-Oct-05 0:23 
QuestionWritePrinter Code to Test Pin
AsimUmair28-Oct-05 0:13
AsimUmair28-Oct-05 0:13 
QuestionUsing CDO in VC6 how to send email Pin
naeemnimi27-Oct-05 23:46
naeemnimi27-Oct-05 23:46 
AnswerRe: Using CDO in VC6 how to send email Pin
ThatsAlok28-Oct-05 0:09
ThatsAlok28-Oct-05 0:09 

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.