Hi, I have a small problem. Following a pointer to point to a particular segment: offset (for example 0041Ch) How can I now put a pointer to this address?
Segment and offset the smell of DOS programming, so all that follows is not a standard C + +, but Borland / Turbo C + + specific (DJGPP perhaps?) Code: # Include <dos.h> char Far * my_far_pointer MK_FP = (0, 0x41C) / * make pointer Far 0000:041 c * /
Once I add a variable I can no prob to access the address range. Can someone tell me why it does not go without a variable? Achso, I get the following error: expression must be a pointer or a zero constant. So far, no solution works ... : ( who has other solutions ... just tell me
Well, my current program does not have anything with the code you need to do now. I would just say exactly, I always read the values of exactly this location. With pure assembler can I do that ... But everything must go without asm. Can I ever passed from one hand to the pointer location?
Hi, I have such a result that works on Linux, should be enumerated under other systems. Code: int mem_addr = 0x0041; int * ptr_of_int; long * ptr_of_long; char * ptr_of_char; ptr_of_int = (int *) mem_addr; ptr_of_long = (long *) mem_addr; ptr_of_char = (char *) mem_addr;