hello , i had a code for loading the bmp file in c and my compiler is turbo c++ when i compile my code it has a unhandled exception : general protection exception, 0x215F:0x01BB Processor Fault, and my code is :
In the meantime some new operating systems were developed, such as Windows and Linux. You might want to catch up on these latest developments, as DOS is considered outdated by some people. Not to mention that no official C++ standard existed back then.
You should use a debugger to check which line causes the protection fault.
If something like that exists for your system.
char far *ptr= (char far *)0xB8000000;
I suppose there's no such thing as OS memory management?
the problem is with the line 26 (compiler highlight it) , and about the line you mentioned it actually save the 0xB8000000 (address of starting colorful screen memory ) and tell the compiler that we are saving it as a pointer