--------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: E2F00000 Date: 02/09/97 From: LAWRENCE GORDON Time: 10:02pm \/To: CHARLES GODARD (Read 3 times) Subj: Wordy reply On 02-07-97, Charles Godard wrote to Lawrence Gordon: LG>I think your QUIK_BAS echo is still crosslinked with POWER_BAS, Charles. CG> My apologies again, Lawrence. This time I'm reasonably sure it was my CG> fault. I'll try to keep a close eye on it from now on. Much appreciated, Charles. ___ Blue Wave/QWK v2.12 --- InterEcho 1.19 * Origin: Toast House * (314) 994-0312 * (1:100/560) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: E2F00001 Date: 02/10/97 From: LAWRENCE GORDON Time: 11:47am \/To: TIM HUTZLER (Read 3 times) Subj: CHDRIVE command not work On 02-09-97, Tim Hutzler wrote to All: TH> Has anyone encountered a program hang when CHDRIVE is used? TH> I used it in the following way: TH> File = "B:\*.*" TH> CHDRIVE File That won't work, Tim. CHDRIVE takes a one character argument: the drive letter. DIM FILENAME AS STRING FILENAME = "B:\*.*" NEWDRIVE$ = LEFT$(FILENAME,1) CHDRIVE NEWDRIVE$ TH> Now, CHDRIVE is not listed in the Reference guide under "Command TH> Summary" in the front of the book, but it is in the reference TH> directory. It states that the first character of a string is used TH> as the drive letter, implying that it will take a string the same TH> way ASC("ABC") does. However, I noticed that programs if I try to TH> use it, even though it IS NOT actually executed. That seems to TH> indicate that the compiler is not calculating the correct jump TH> addresses. It's been my experience that you need to move the first letter of the sting into a variable before calling CHDRIVE. --- GEcho 1.20/Pro * Origin: Toast House Remote (1:100/560.1) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: E2F00002 Date: 02/10/97 From: TIM HUTZLER Time: 03:28pm \/To: HANS LUNSING (Read 3 times) Subj: Re: SHELLing to a memory HL>I adapted Marty del Vecchio's swap procedure for PowerBasic, and HL>it works fine. HL>The package (swap) includes a MS-DOS assembly-language routine HL>that can be called from a PowerBasic 3.1 program. It will swap HL>most of the current program to extended memory (supplied by an XMS HL>driver, such as HIMEM.SYS), expanded memory (EMS version 4.0), or HL>disk, thus freeing up more memory for DOS. It will then execute HL>another program in its place, and re-load the original program to HL>its original state. This allows large DOS programs to execute HL>other programs without the original program taking up DOS memory. HL>Interested? Oh, yea, sure! I looked at PBSWAP, but I'm in need of something simpler to operate. Tell me more... --- Maximus/2 3.01 * Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: E2G00000 Date: 02/10/97 From: THOMAS GOHEL Time: 12:00am \/To: JOSE MEJUTO (Read 3 times) Subj: Re: SHELLing to a memory hog In article "SHELLing to a memory hog" (on 25.01.97), Jose Mejuto@2:348/102.99 says: Hello Jose !! > Yes!, you can use PBSWAP (c) Me :-) If you have internet access write this > in your netscape/MS internet browser: > > http://www.geocities.com/SiliconValley/4551/pbswap11.zip > On the other hand you can contact me ;) Why Internet? ;))) Area : PBSOURCE Beschreibung : PowerBASIC: Sourcen (allgemein) ---------------------------------------------------------------------------- PBSWAP11.ZIP 15,696 PBSWAP 1.16 ShellSwap for PowerBasic 3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This routine try to swap a PowerBasic program to EMS or disk when you need to shell to DOS to execute an external program. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (c) 1995,96 Jose Mejuto ---------------------------------------------------------------------------- 15,696 Bytes in 1 File(s) ... and an other SWAP solution you can find at: http://www.snafu.de/~pbsound/sppower.html or for Fido users: SPPOWGER.ZIP & SPPOWENG.ZIP in my BBS > Saludotes, > ,,, JOS (2:348/102) Regards, ---------------- / / h o m a s email : author@pbsound.snafu.de www : http://www.snafu.de/~pbsound/ (PowerBASIC's Home in Germany) --- CrossPoint v3.11 R * Origin: PBSOUND, PBFILES (20MB), PBFAQ, PBRULES, PBHIVGA at: 2:2410/330.1) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: E2G00001 Date: 02/06/97 From: JOSE MEJUTO Time: 12:17pm \/To: TIM HUTZLER (Read 4 times) Subj: SHELLing to a memory 03/02/97 12:14, Tim Hutzler escriba a Jose Mejuto: Hola Tim! JM>> Yes!, you can use PBSWAP (c) Me :-) If you have internet access JM>> write this in your netscape/MS internet browser: TH> I have this file, but it was not organized in such a way that I was TH> able to quickly use it. I need to go back and study it more. What's the problem. Lines before this may be before your code: ------------------------------------------------------------------------------ - TrySwap=%EMS.DISK 'Modalidad del swap 'Ems primero, si falla disco. PrgExec=Command$ 'Programa a ejecutar, no se mira en el path S.Raw=ShellSwap(PrgExec,"C:\TEMP",TrySwap) 'Datos para el Swap, Programa 'Path de ficheros temporales 'y modalidad de swap ~[end]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ This lines could be in any section of your program. Lines after this may be at the end of your program. If you want to change a shell like this: 'Shell "C:\myprogram.exe"' With PBSwap you can write this: TrySwap=%EMS.DISK PrgEXEC="C:\MYPROGRAM.EXE" S.Raw=ShellSwap (PrgEXEC,"C:\",TrySwap) If S.Raw<>Chr$(0,0,0,0) Then Error 51 (51?, Shell error) TH> I'll let you know. Good luck. Saludotes, ,,, JOS (2:348/102) `0-0' jmejuto@pobox.com /-(_)-\ SysOp de EDIBBS http://www.pobox.com/~jmejuto --- * Origin: When I Need Data Output Without Speed 3.1 (2:348/102.99) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: E2I00000 Date: 02/13/97 From: OLIVIER DAGENAIS Time: 04:48pm \/To: DAVID ROPER (Read 3 times) Subj: ASSY ACCESS OF STRIN TH> true compiler and produces machine code. As for how effient it is, I TH> have not performed any analysis. OD>What, there are "fake" compilers? DR> The old CLIPPER COMPILER for Dbase simply grabbed everything up and DR> wrapped it with the interpreter and called it an EXE file. Sounds like an idea by you-know-who.. :) DR> Then, remember the $495 "uncompilers" that would give back the DR> SOURCE CODE for any CLIPPER compiled EXE files? That's how they DR> did it so easily Ah, duh! At 495, it's a REAL bargain! :) DR> A true compiler produces machine code. They question is how DR> efficient is that code, and PowerBasic does a damned fine job. ;-) I hear it supports inline assembler.. but not 386+ code.... See ya around! Omega@inorbit.com --- Maximus/2 3.01 * Origin: Hyper BBS (613)257-7636 (1:163/557.2)