Mega Code Archive

 
Categories / Delphi / Examples
 

Using far pointers

Question: How can I instruct the compiler that I require a far pointer instead of a near pointer? Answer: In 16 bit versions of Delphi, all pointers are far pointers. When running in a 32 bit environment, all pointers are considered to be huge near pointers as there is no concept of far pointer that cross process address space without thunking.