CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Allocating RAM

  1. #1
    Join Date
    Apr 1999
    Posts
    1

    Allocating RAM

    I am a beginner with programming win32 systems, and I have a question that may (or may not) be very easy:
    How can I allocate memory that I can be sure is in RAM all of the time (that is, I do not just want virtual memory that can be swapped out, I need it to be in RAM all of the time). I need this as a buffer in a measurement system, where I will loose data if the buffer is not available in RAM all of the time.

    If possible, I would like to know how it can be done also generally in win32 C or C++, not just in Visual C++.

    Thank you

    /Staffan


  2. #2
    Guest

    Re: Allocating RAM

    On NT you can use the Win32 routine VirtualLock.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured