Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: using far segments ? Message-ID: <106580053@hpcvlx.HP.COM> Date: 14 Jul 89 17:11:26 GMT References: <2081@erix.ericsson.se> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 26 > I try to write a Windows application that could present two files simultanously > on the screen. The problem is that the files are rather large (30-60K), so they > don't fit in the default data segment (not both of them anyway). But when you > send a message 'EM_SETHANDLE' you must supply a *local* handle. > > Is there a way to get around this problem ? Not if you want to use EDIT children to do editing. > I noticed that even Microsoft's Write opens only one file at a time. Could it > be the same reason ? No, Write doesn't do its editing with the EDIT children. They have their own window class definition. If you write the code for the window yourself, you can make it do anything you want (including using GLOBAL heap for data storage, or [a better solution] virtualizing the file and reading in only part at a time). > And, finally, is it possible for a Windows application to start another > instance of itself, or to start another application ? Yes, you can use the DOS INT 21h function 4Hh (EXEC) call. I don't have details on it, but Microsoft has a tech note on its use (including an example program). --Bill Turner (bturner@hp-pcd.hp.com) HP Corvallis Information Systems