v067qklp@ubvmsb.cc.buffalo.edu (Danielle T Mazzotta) (11/13/90)
Hi. I wrote a utility in Shareware First Modula-2 Compiler to capture the screen and either dump it to a file or retrieve from the file a saved screen and then redraw the screen. However, I'd like to convert this EXE to a binary file which I could keep loaded while in DBASE-III+. EXE2BIN always seems to return the message "Can't convert file." Does anyone know what EXE2BIN is looking for? Thanks in advance.. --Danielle
timur@seas.gwu.edu (The Time Traveler) (11/13/90)
In article <45890@eerie.acsu.Buffalo.EDU> v067qklp@ubvmsb.cc.buffalo.edu writes: >Hi. I wrote a utility in Shareware First Modula-2 Compiler to capture the >screen and either dump it to a file or retrieve from the file a saved screen >and then redraw the screen. However, I'd like to convert this EXE to a binary >file which I could keep loaded while in DBASE-III+. > >EXE2BIN always seems to return the message "Can't convert file." Does anyone >know what EXE2BIN is looking for? EXE2BIN can only be used on .EXE files which were meant to be .COM. Typically, this only applies to assembly programs which follow strict memory-model rules (the tiny model). TT ------------------------------------------------------------ The Time Traveler Your daddy works in porno Now that mommy's not around timur@seas.gwu.edu She used to love her heroin HE891C@GWUVM.GWU.EDU But now she's underground - Guns N' Roses
roelofs@nas.nasa.gov (Cave Newt) (11/13/90)
In article <45890@eerie.acsu.Buffalo.EDU> v067qklp@ubvmsb.cc.buffalo.edu writes: >Hi. I wrote a utility in Shareware First Modula-2 Compiler to capture the >screen and either dump it to a file or retrieve from the file a saved screen >and then redraw the screen. However, I'd like to convert this EXE to a binary >file which I could keep loaded while in DBASE-III+. > >EXE2BIN always seems to return the message "Can't convert file." Does anyone >know what EXE2BIN is looking for? EXE2BIN wants an executable which lives entirely within a single segment. Compilers, in general, don't produce such executables--aside from assemblers, the only compilers (that I know of) which do are Microsoft's and Borland's C compilers, and only in the "tiny" model. As for the rest, it sounds as though you're trying to create a memory- resident program which accesses the disk. This is, as they say, highly non-trivial, and it will almost certainly result in the destruction of the data on your disk, unless you know EXACTLY what you're doing. Has to do with non-reentrancy of DOS and similar uglinesses. It *can* be done, of course--screen-capturing TSRs exist--but I've never seen source code to do so. Your best bet would be to check Simtel for a couple of PC Magazine utilities called XDIR and SNIPPER (both assembly language)--I think the latter was posted here about a year ago, but I could be mistaken. Neither does precisely what you want, but they both fool with the disk while another application is active, which should give you some idea of what you're getting into. SNIPPER is in pd1:[msdos.screen]snippr22.zip; XDIR is in pd2:[msdos2.pcmag] vol6n07.arc. With regard to doing this in Modula-2...heh heh heh. Greg
sonny@charybdis.harris-atd.com (Bob Davis) (11/13/90)
In article <45890@eerie.acsu.Buffalo.EDU> v067qklp@ubvmsb.cc.buffalo.edu writes: >Hi. I wrote a utility in Shareware First Modula-2 Compiler to capture the >screen and either dump it to a file or retrieve from the file a saved screen >and then redraw the screen. However, I'd like to convert this EXE to a binary >file which I could keep loaded while in DBASE-III+. > >EXE2BIN always seems to return the message "Can't convert file." Does anyone >know what EXE2BIN is looking for? > One cannot convert an arbitrary .EXE file to a .COM file. A .EXE file which is convertible to .COM by EXE2BIN will have been compiled with a common code and data segment and no stack segment. Further, such a .EXE file is not even executable WITHOUT conversion to .COM by EXE2BIN. You evidently have a bonafide executable .EXE file -- one that CANNOT be converted. YOU CAN'T CONVERT AN ARBITRARY .EXE FILE TO A .COM FILE. Best, ______________________________________________________________________________ Bob Davis, UofALA'66 \\ INTERNET : sonny@trantor.harris-atd.com | _ _ | Harris Corporation, ESS \\ UUCP : ...!uunet!x102a!trantor!sonny |_| |_| | | Advanced Technology Dept.\\ AETHER : K4VNO |==============|_/\/\/\|_| PO Box 37, MS 3A/1912 \\ VOICE : (407) 727-5886 | I SPEAK ONLY | |_| |_| | Melbourne, FL 32902 \\ FAX : (407) 729-2537 | FOR MYSELF. |_________|
wfp5p@euclid.acc.Virginia.EDU (William F. Pemberton) (11/13/90)
In article <4855@trantor.harris-atd.com> sonny@trantor.harris-atd.com (Bob Davis) writes: >In article <45890@eerie.acsu.Buffalo.EDU> v067qklp@ubvmsb.cc.buffalo.edu writes: >>Hi. I wrote a utility in Shareware First Modula-2 Compiler to capture the >>screen and either dump it to a file or retrieve from the file a saved screen >>and then redraw the screen. However, I'd like to convert this EXE to a binary >>file which I could keep loaded while in DBASE-III+. >> >>EXE2BIN always seems to return the message "Can't convert file." Does anyone >>know what EXE2BIN is looking for? >> > One cannot convert an arbitrary .EXE file to a .COM file. A .EXE >file which is convertible to .COM by EXE2BIN will have been compiled with >a common code and data segment and no stack segment. Further, such a > .EXE file is not even executable WITHOUT conversion to .COM by EXE2BIN. Close to correct, but not quite. An .EXE that could be converted to .COM does not HAVE to be converted to run, it will run just fine. Such an .EXE is any program written with Turbo's (or MS) tiny memory model. No conversion to .COM is required!!!! +-----------------------------------------------------------------------------+ | Bill Pemberton | flash@virginia.edu -OR- wfp5p@virginia.edu | | University of Virginia | | | (804) 971-1894 | "Itch me, but please don't scratch me." | +-----------------------------------------------------------------------------+
sonny@charybdis.harris-atd.com (Bob Davis) (11/14/90)
In article <1990Nov13.152028.26874@murdoch.acc.Virginia.EDU> wfp5p@euclid.acc.Virginia.EDU (William F. Pemberton) writes: >In article <4855@trantor.harris-atd.com> sonny@trantor.harris-atd.com (Bob Davis) writes: [DELETIONS] >> One cannot convert an arbitrary .EXE file to a .COM file. A .EXE >>file which is convertible to .COM by EXE2BIN will have been compiled with >>a common code and data segment and no stack segment. Further, such a >> .EXE file is not even executable WITHOUT conversion to .COM by EXE2BIN. > >Close to correct, but not quite. An .EXE that could be converted to .COM >does not HAVE to be converted to run, it will run just fine. Such an .EXE >is any program written with Turbo's (or MS) tiny memory model. No >conversion to .COM is required!!!! > Certainly, I hang my machine when I try to run the .EXE file that results from assembling and linking an assembly language program destined to be a .COM program (Single segment, no stack segment). I have to perform the EXE2BIN before I obtain a functional command. Any further discussion on this should be moved to comp.os.msdos.programmer. Peace, ______________________________________________________________________________ Bob Davis, UofALA'66 \\ INTERNET : sonny@trantor.harris-atd.com | _ _ | Harris Corporation, ESS \\ UUCP : ...!uunet!x102a!trantor!sonny |_| |_| | | Advanced Technology Dept.\\ AETHER : K4VNO |==============|_/\/\/\|_| PO Box 37, MS 3A/1912 \\ VOICE : (407) 727-5886 | I SPEAK ONLY | |_| |_| | Melbourne, FL 32902 \\ FAX : (407) 729-2537 | FOR MYSELF. |_________|
del@fnx.UUCP (Dag Erik Lindberg) (11/15/90)
In article <1990Nov13.092030.10586@nas.nasa.gov> roelofs@nas.nasa.gov (Cave Newt) writes: > >EXE2BIN wants an executable which lives entirely within a single segment. >Compilers, in general, don't produce such executables--aside from assemblers, >the only compilers (that I know of) which do are Microsoft's and Borland's >C compilers, and only in the "tiny" model. > Zortech C also can produce this "tiny" model. -- del AKA Erik Lindberg uunet!pilchuck!fnx!del Who is John Galt?
del@fnx.UUCP (Dag Erik Lindberg) (11/15/90)
In article <4855@trantor.harris-atd.com> sonny@trantor.harris-atd.com (Bob Davis) writes: >a common code and data segment and no stack segment. Further, such a > .EXE file is not even executable WITHOUT conversion to .COM by EXE2BIN. This is not correct. You must be doing something wrong in generating your EXE's such that they cannot run without being converted to COM files. Here is a simple EXE that will run by itself, or can be converted to a COM file and then run. Of course, this is not limited to *simple* EXE's, during debug I have run EXE's almost as large as 64k that could also be converted to COM files. begin 664 hello.exe M35I$ D " ( __\ 0 ' M M M M M M ZP&0^KAZ#04/ +D$ -/HC,D#P8[8C 9: 2:+ M'BP B1Y' 8O8*QY: 8D>K0 FBQX" "O8@?L $'(#N_\/B] #TT*Q!-/CCM"+ MXX'KP@* _P)S!KK" .G> ?NT,,TAHUP!/ )S!KKU .G, 08?%@>^@ #\K#+D MB\B_P@+SI#+ JHS0CMA'@^?^B3ZE ,<%JE6^P@*[ @"L/#UU"H,^; $ = /H M+P$*P'0_NB )/"!TYCP)=.(\(G0$/"=U!8K0BO!&@_M =@:Z$ 'I:P%.B;=A M (/# JP*P'0/.L)T!#K&=?,RP(A$_^NNT>N)'F$!QP9C 6$ BQYL 0O;=0.[ M ""!^P "<P.[ *)'FP! QZE '(J@\,1<B6 X_")'JD B1ZK +$$T^N)'J< M QZM (X&6@'ZM$K-(1X'<P?[N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