Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Memory allocation help.

Memory allocation help.

Scheduled Pinned Locked Moved C / C++ / MFC
performancehelpquestion
9 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chandu004
    wrote on last edited by
    #1

    hi masters, i want to allocate memory (64k) at the desired location (address). i remember that it is possible. can any one give me some idea regarding this? thanks in advance.

    T K 2 Replies Last reply
    0
    • C chandu004

      hi masters, i want to allocate memory (64k) at the desired location (address). i remember that it is possible. can any one give me some idea regarding this? thanks in advance.

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      before giving you more directions, i'd like to know your goals please. why are you needing to allocate such a huge amount of memory at a given location which windows will probably overwrite or already handles some...?

      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      M C M 3 Replies Last reply
      0
      • T toxcct

        before giving you more directions, i'd like to know your goals please. why are you needing to allocate such a huge amount of memory at a given location which windows will probably overwrite or already handles some...?

        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        M Offline
        M Offline
        Michael Schubert
        wrote on last edited by
        #3

        toxcct wrote:

        huge amount of memory

        64K? Seriously?

        1 Reply Last reply
        0
        • T toxcct

          before giving you more directions, i'd like to know your goals please. why are you needing to allocate such a huge amount of memory at a given location which windows will probably overwrite or already handles some...?

          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

          C Offline
          C Offline
          chandu004
          wrote on last edited by
          #4

          Hi thanks for your response. here is the task please guide me. i want to interact with an ISA device in the system, and to access its registers, it demands to access the memory available at some X location. this we came to understand by studying an obsolete console application written for that device. any ideas? thank you.

          J 1 Reply Last reply
          0
          • C chandu004

            Hi thanks for your response. here is the task please guide me. i want to interact with an ISA device in the system, and to access its registers, it demands to access the memory available at some X location. this we came to understand by studying an obsolete console application written for that device. any ideas? thank you.

            J Offline
            J Offline
            JudyL_MD
            wrote on last edited by
            #5

            On NT4 and higher, you cannot directly access the devices registers. The OS will not permit it. You need to have a driver and your app then interacts with the driver. Judy

            C 1 Reply Last reply
            0
            • J JudyL_MD

              On NT4 and higher, you cannot directly access the devices registers. The OS will not permit it. You need to have a driver and your app then interacts with the driver. Judy

              C Offline
              C Offline
              chandu004
              wrote on last edited by
              #6

              the OS that iam using is windows 98. so it should support right?

              J 1 Reply Last reply
              0
              • C chandu004

                the OS that iam using is windows 98. so it should support right?

                J Offline
                J Offline
                JudyL_MD
                wrote on last edited by
                #7

                Yes it should but I don't remember how to specifiy the memory mapping. Judy

                1 Reply Last reply
                0
                • C chandu004

                  hi masters, i want to allocate memory (64k) at the desired location (address). i remember that it is possible. can any one give me some idea regarding this? thanks in advance.

                  K Offline
                  K Offline
                  kingori
                  wrote on last edited by
                  #8

                  try HeapAlloc

                  1 Reply Last reply
                  0
                  • T toxcct

                    before giving you more directions, i'd like to know your goals please. why are you needing to allocate such a huge amount of memory at a given location which windows will probably overwrite or already handles some...?

                    [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                    M Offline
                    M Offline
                    Mark Salsbery
                    wrote on last edited by
                    #9

                    toxcct wrote:

                    why are you needing to allocate such a huge amount of memory

                    hehe

                    Mark Salsbery Microsoft MVP - Visual C++ :java:

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups