Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalwhy BOOL and bool coexist? Simply! Pin
twing8-Oct-03 20:08
twing8-Oct-03 20:08 
GeneralRe: why BOOL and bool coexist? Simply! Pin
Anand Paranjpe8-Oct-03 20:26
Anand Paranjpe8-Oct-03 20:26 
GeneralRe: why BOOL and bool coexist? Simply! Pin
twing8-Oct-03 21:32
twing8-Oct-03 21:32 
GeneralRe: why BOOL and bool coexist? Simply! Pin
jhwurmbach8-Oct-03 22:52
jhwurmbach8-Oct-03 22:52 
Generalprevent Windows from paging my executables Pin
Eddie7008-Oct-03 19:15
Eddie7008-Oct-03 19:15 
GeneralRe: prevent Windows from paging my executables Pin
Blake Coverett8-Oct-03 20:56
Blake Coverett8-Oct-03 20:56 
GeneralRe: prevent Windows from paging my executables Pin
David Crow9-Oct-03 15:55
David Crow9-Oct-03 15:55 
GeneralRe: prevent Windows from paging my executables Pin
Blake Coverett9-Oct-03 16:45
Blake Coverett9-Oct-03 16:45 
Not at all, you've over generalized. I said that about VirtualLock in particular not about API's in general.

Page locking memory is one of those things that is very seldom a good idea. The appropriate times for doing it usually occur in device drivers, and they use a different, kernel mode, API to accomplish this. Mostly people think they'll page lock parts of their application to 'improve performance' and that almost never works. Trust the memory manager to trim the working-set appropriately.

Off hand, the only legitimate reason I can think of for locking pages in a user-mode app is to prevent plaintext from being written to the pagefile in a crypto scenario, and I'm not positive it even guarentees that as expected.

Hence, unless you already know a _lot_ about how the Windows VM system works, you shouldn't be tampering with it, and if you don't know about VirtualLock then clearly you don't know enough about the VMM.

--
-Blake (com/bcdev/blake)
Generalcall menu item from program Pin
vancouver7778-Oct-03 18:12
vancouver7778-Oct-03 18:12 
GeneralRe: call menu item from program Pin
Terry O'Nolley8-Oct-03 19:03
Terry O'Nolley8-Oct-03 19:03 
GeneralRe: call menu item from program Pin
KaЯl9-Oct-03 3:12
KaЯl9-Oct-03 3:12 
GeneralRe: call menu item from program Pin
sdfdsfa9-Oct-03 6:05
sdfdsfa9-Oct-03 6:05 
GeneralRe: call menu item from program Pin
KaЯl9-Oct-03 6:27
KaЯl9-Oct-03 6:27 
GeneralMsFlexGrid editable Pin
act_x8-Oct-03 17:02
act_x8-Oct-03 17:02 
GeneralRe: MsFlexGrid editable Pin
Toni788-Oct-03 17:50
Toni788-Oct-03 17:50 
GeneralRe: MsFlexGrid editable Pin
tidhar8-Oct-03 23:06
tidhar8-Oct-03 23:06 
GeneralRe: MsFlexGrid editable Pin
act_x9-Oct-03 4:37
act_x9-Oct-03 4:37 
GeneralRe: MsFlexGrid editable Pin
tidhar9-Oct-03 4:44
tidhar9-Oct-03 4:44 
GeneralNeed help in simple game Pin
Snyp8-Oct-03 14:55
Snyp8-Oct-03 14:55 
GeneralRe: Need help in simple game Pin
parths8-Oct-03 16:09
parths8-Oct-03 16:09 
GeneralRe: Need help in simple game Pin
Terry O'Nolley8-Oct-03 19:23
Terry O'Nolley8-Oct-03 19:23 
GeneralRe: Need help in simple game Pin
YaronNir9-Oct-03 0:05
YaronNir9-Oct-03 0:05 
GeneralRe: Need help in simple game Pin
Member 139425924-Dec-04 20:05
Member 139425924-Dec-04 20:05 
Generalbuttons and word doc's Pin
N.Byarley8-Oct-03 14:37
N.Byarley8-Oct-03 14:37 
GeneralRe: buttons and word doc's Pin
Terry O'Nolley8-Oct-03 18:45
Terry O'Nolley8-Oct-03 18:45 

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.