Resume:

I'm trying to understand how to do DPMI programming. My problem is that i can't understand how to switch to DPMI. The readon i am so interested in this is because when i run my programms from within the IDE ( Borland C++ 3.1 ) everything works fine, but when i run the executable from outside the compiler some things don't work ( Like reading from certain files ).
I also tried to understand how to use Dos4gw but had no success.

anyone out there with some source code or TSR to help a poor programmer...?