dmurdoch@watstat.waterloo.edu (Duncan Murdoch) (05/08/91)
TP for Windows comes with a WinCrt unit that provides much of the functionality of the CRT unit from regular TP, but doesn't give a WinGraph unit to replace the Graph unit. Has anyone written one? I'd like to use it to port some graphics programs from TP 6.0 to TPW 1.0. Duncan Murdoch dmurdoch@watstat.waterloo.edu
F0O@psuvm.psu.edu (05/08/91)
In article <1991May7.193859.5525@maytag.waterloo.edu>, dmurdoch@watstat.waterloo.edu (Duncan Murdoch) says: >TP for Windows comes with a WinCrt unit that provides much of the >functionality of the CRT unit from regular TP, but doesn't give a >WinGraph unit to replace the Graph unit. Has anyone written one? I don't know much about TPW(just order mine this week), but since you're using Windows, why don't you use the function calls Windows provides? At least my guess is that using WinCrt for text mode pascal programs keeps you from having to do this. I think my first *real* Windows app I'll try to write is a Monopoly game. BTW, what do you think of TPW???? [Tim]
dmurdoch@watstat.waterloo.edu (Duncan Murdoch) (05/09/91)
In article <91128.085447F0O@psuvm.psu.edu> F0O@psuvm.psu.edu writes: > I don't know much about TPW(just order mine this week), but since >you're using Windows, why don't you use the function calls Windows provides? >At least my guess is that using WinCrt for text mode pascal programs >keeps you from having to do this. There's a fair bit of overhead in creating a window, changing pen colours, etc., using the Windows function calls. It would require major changes to a program to work that way if it was already written for the TP Graph unit - I'm trying to avoid those changes, for now. I've decided to go ahead and program WinGraph myself. It's not so bad, using the ObjectWindows library from TPW. My strategy is to duplicate the Graph interface almost exactly (I started with GRAPH.INT to be sure), and implement the calls in Windows. So far it's been pretty easy to come up with a one colour window with a black pen. Some of the other parts will be harder, because colours are handled very differently, fonts are handled very differently, and I don't really understand Windows yet. > BTW, what do you think of TPW???? So far I really like it. The documentation is a little light - I imagine Swan's book on it (due out this August) will be very helpful. There are lots of little irritants (like the fact that run-time errors never seem to be findable), and it's pretty unstable to run the debugger on top of Windows on top of Desqview (big surprise!), but so far nothing (permanently) fatal. Duncan Murdoch dmurdoch@watstat.waterloo.edu
<F0O@psuvm.psu.edu> (05/09/91)
>> BTW, what do you think of TPW???? >So far I really like it. The documentation is a little light - I imagine >Swan's book on it (due out this August) will be very helpful. There are >lots of little irritants (like the fact that run-time errors never seem >to be findable), and it's pretty unstable to run the debugger on top >of Windows on top of Desqview (big surprise!), but so far nothing >(permanently) fatal. Don't wait for Swan's book; buy 'Programming Windows', by Charles Petzold, available at all fine bookstores :-) The code in written in C, but if you know C, it isn't that hard to convert to Pascal, and the book is filled with ALOT of info. Good stuff. [Tim]