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

This is a discussion on Memory allocation greater than 64KB in TC 3.0 Again.... within the C Programming forums, part of the General Programming Boards category; dos memory segment (65536 Bytes) :( Please tell me that how can i allocate a link-list type structure pointer to ...

  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, 04:56 AM
  2. Understanding Memory Allocation
    By Ragsdale85 in forum C Programming
    Replies: 7
    Last Post: 10-31-2005, 07:36 AM
  3. Memory allocation and Var Scope
    By penney in forum C Programming
    Replies: 1
    Last Post: 03-31-2003, 11:38 AM
  4. Memory allocation greater than 64KB in TC 3.0
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 01-27-2002, 09:28 AM
  5. memory allocation newbie problem
    By larry in forum C++ Programming
    Replies: 11
    Last Post: 10-08-2001, 08:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21