I wanted to use the a far pointer in my program the declaration was like this char far* ptr; but when I compile the program the compiler gives error message that far undeclared, can any one help me in this regard how to use near, far, and huge pointers in Dev C++, secondly If I want to assign a value to a pointer such as ptr = 0xb800 the compiler again gives error so is this possible to initialize a pointer as shown above in Dev C++ envoirnment.
md_salman
0
Newbie Poster
Recommended Answers
Jump to PostThe 'far' keywork only makes sense under DOS, and is useless with minGW.
if you are trying to port code from djgpp, you may neutralize it. For example, add '-Dfar' to the compiler commandline (Project/project options/ parameters).
The win32 api defines the far macro (and replaces it by …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.