Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: MS Windows 3.0 Message-ID: <2779.UUL1.3#5129@willett.pgh.pa.us> Date: 17 May 91 11:36:47 GMT Organization: (n.) to be organized. But that's not important right now. Lines: 48 Category 1, Topic 19 Message 33 Thu May 16, 1991 D.RUFFER [Dennis] at 00:57 EDT Re: RAY DUNCAN > I see that you are doing a bunch of mode switching stuff in your > DPMI-based Forth. The DPMI version does do "translations" when it does DPMI simulated DOS calls, but otherwise it is fairly "sane". I didn't do that one though, and I'm not sure I still totally understand it. The mode switching when it loads (protected to real to protected) is too much for what I'm after. Stephen was aware of the 32-bit app bit from one of your articles (BTW) and the system runs pretty good. However, I'm trying to do it all without DPMI, using just windows calls, and I think I'm getting closer. Today, I was actaully able to let Windows "free" from the shackles I have it in. My first (working) PeekGetTranslateDispatchMessage loop ran (!YEA!). I'm finally into the Forth edit/debug cycle instead of the MASM/MAKE one I've been spending most of my time in. I still crash, but I'm starting to even understand why. I'm using the WINMEM32.DLL stuff that comes with the SDK. Do you know anything about it? I suspect I may have found a bug in it (or insufficient documentation) when it comes to what GetMessage can use. I managed to get around the problem by moving the message in and out of a GlobalAlloc structure because it didn't like the Global16PointerAlloc that I had been trying to use. So, now I can use either method. However, I also found out that Microsoft has no one to answer questions unless you subscribe to Microsoft Online. I'm not ready to do that yet. Do you subscribe to it, or are you one of the ones who answers the questions? Do you know anywhere else that I can find answers to the "really tough" problems? We should talk! DaR BTW, for those "watching" these birth pains, the call that I was trying to make a few messages ago is compiled by MASM using the following: CALL dword ptr Routines[BX] Almost even makes sense: :) ----- This message came from GEnie via willett. You *cannot* reply to the author using e-mail. Please post a follow-up article, or use any instructions the author may have included (USMail addresses, telephone #, etc.). Report problems to: dwp@willett.pgh.pa.us _or_ uunet!willett!dwp