Thread: Memory allocation greater than 64KB in TC 3.0 Again....

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    1

    Angry Memory allocation greater than 64KB in TC 3.0 Again....

    dos memory segment (65536 Bytes) :(

    Please tell me that how can i allocate a link-list type structure pointer to a size greater than a dos memory segment (65536 bytes) in TC 3.0.

    I want to use this in my own graphics function like getimage(),
    putimage(), in true color 24 bit VESA mode.Also tell me about the fastest getimage(),putimage() procedure.

    Please help me.

  2. #2
    Unregistered
    Guest
    using far pointers an farmalloc
    Code:
    char far *buf=(char far*)malloc(size);

  3. #3
    Unregistered
    Guest
    farmalloc...not malloc. sorry...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C memory allocation to c++
    By markucd in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2005, 05:56 AM
  2. Understanding Memory Allocation
    By Ragsdale85 in forum C Programming
    Replies: 7
    Last Post: 10-31-2005, 08:36 AM
  3. Memory allocation and Var Scope
    By penney in forum C Programming
    Replies: 1
    Last Post: 03-31-2003, 12:38 PM
  4. Memory allocation greater than 64KB in TC 3.0
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 01-27-2002, 10:28 AM
  5. memory allocation newbie problem
    By larry in forum C++ Programming
    Replies: 11
    Last Post: 10-08-2001, 08:58 AM