Click here to Skip to main content
15,902,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how monitor the keyboard message at one application Pin
Christian Graus21-Oct-02 1:40
protectorChristian Graus21-Oct-02 1:40 
GeneralRe: how monitor the keyboard message at one application Pin
misty21-Oct-02 16:39
misty21-Oct-02 16:39 
GeneralRe: how monitor the keyboard message at one application Pin
Christian Graus21-Oct-02 16:43
protectorChristian Graus21-Oct-02 16:43 
GeneralRe: how monitor the keyboard message at one application Pin
misty21-Oct-02 17:22
misty21-Oct-02 17:22 
GeneralRe: how monitor the keyboard message at one application Pin
Christian Graus21-Oct-02 17:28
protectorChristian Graus21-Oct-02 17:28 
GeneralRe: how monitor the keyboard message at one application Pin
misty21-Oct-02 19:19
misty21-Oct-02 19:19 
GeneralRe: how monitor the keyboard message at one application Pin
Christian Graus21-Oct-02 20:34
protectorChristian Graus21-Oct-02 20:34 
QuestionAllocate more than 2GB with VirtualAlloc? Pin
tsk21-Oct-02 1:24
tsk21-Oct-02 1:24 
Hi,

I am using MSVC 6.0. I activated the /3GB switch in Windows XP Professional and also used a linker flag /LARGEADDRESSAWARE in the application in order to enable the application to address more than 2GB of memory.

The GlobalMemoryStatus reported dwTotalVirtual = 3221094400 and dwAvailVirtual = 3203072000. It seems that the above configuration works.

However, when I do a VirtualAlloc(NULL, 2*1024*1024*1024, MEM_COMMIT, PAGE_READWRITE) to allocate 2GB of memory, I always get a "ERROR_NOT_ENOUGH_MEMORY"?

How can I allocate those available virtual memory?

Thank you.
AnswerRe: Allocate more than 2GB with VirtualAlloc? Pin
Stephane Rodriguez.21-Oct-02 1:38
Stephane Rodriguez.21-Oct-02 1:38 
GeneralRe: Allocate more than 2GB with VirtualAlloc? Pin
tsk21-Oct-02 15:24
tsk21-Oct-02 15:24 
GeneralRe: Allocate more than 2GB with VirtualAlloc? Pin
Stephane Rodriguez.21-Oct-02 19:29
Stephane Rodriguez.21-Oct-02 19:29 
GeneralRe: Allocate more than 2GB with VirtualAlloc? Pin
tsk21-Oct-02 21:36
tsk21-Oct-02 21:36 
GeneralWicked HWND question... Pin
Braulio Dez21-Oct-02 0:47
Braulio Dez21-Oct-02 0:47 
GeneralRe: Wicked HWND question... Pin
Tomasz Sowinski21-Oct-02 0:55
Tomasz Sowinski21-Oct-02 0:55 
GeneralRe: Wicked HWND question... Pin
Daniel Turini21-Oct-02 1:05
Daniel Turini21-Oct-02 1:05 
GeneralRe: Wicked HWND question... Pin
Stephane Rodriguez.21-Oct-02 1:46
Stephane Rodriguez.21-Oct-02 1:46 
GeneralRe: Wicked HWND question... Pin
Braulio Dez21-Oct-02 2:53
Braulio Dez21-Oct-02 2:53 
Generalwinsock q#2 Pin
Hugo Hallman21-Oct-02 0:40
Hugo Hallman21-Oct-02 0:40 
GeneralRe: winsock q#2 Pin
Anonymous21-Oct-02 3:55
Anonymous21-Oct-02 3:55 
GeneralTBNRF_HIDEHELP and RBBS_USECHEVRON Pin
nilaysoft21-Oct-02 0:37
nilaysoft21-Oct-02 0:37 
GeneralEmergency Plz Pin
stevenson21-Oct-02 0:33
stevenson21-Oct-02 0:33 
GeneralRe: Emergency Plz Pin
Hugo Hallman21-Oct-02 1:24
Hugo Hallman21-Oct-02 1:24 
GeneralCTabCtrl in a Dialog Bar Pin
stevenoliver21-Oct-02 0:18
stevenoliver21-Oct-02 0:18 
GeneralVisual source safe object model Pin
Michael P Butler21-Oct-02 0:09
Michael P Butler21-Oct-02 0:09 
GeneralRe: Visual source safe object model Pin
Stephane Rodriguez.21-Oct-02 1:42
Stephane Rodriguez.21-Oct-02 1:42 

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.