Subj : GALAXY 5 XPORT LIB IN C++ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Thoughts?? Just to take a poll, how many people would be interested in two Galax Libraries for C\C++? The C library just has basic functions like Load() and () for the user, but the C++ one is a class library which contains not just () and Save(), but a few others. =) Free, and with the structures. If you are interested, send me some mail! Reply! Sure. Lets see what a decent C library for G5 would look like :) I use Pascal by prefrence but still play a little with C here and there so it would be intresting to see what you can come up with. Since I use Tp I use Tom Smith's XPort unit, lets see what happens . Maybe (if you're up to it) translate the TP source to a TC format like some units/libs out there. L8r! --- Subj : Door Code ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Comments: > Well, the only down-side to writing in WCCode is that your software > becomes BBS specific. I'm going to try to use OpenDoors & Watcom C++. Tried That!!! Well, I just tried the new version of Opendoors 6.+ which supports Microsoft Visual C, but unfortunately had problems with Codebase compatibility. Evidentally the new Codebase 6.0 is not compatible with the Codebase 5.0 so I would have to do an entire rewrite of my code. So I went back to Codebase 5.0 and Opendoors 6.0. Then my computer kept giving me D4Group errors. So I got rid of my text. Then it compiled but on run it would lock up. So back to Opendoors 5.0 I go. I feel like I've wasted an entire month just trying to upgrade! Now I'm back where I started to begin with! Anyway, what's your next project? Mine is Leviathon's Reef. Text based adventure game with a LOT of quests and choice of whether you want to be a Fighter (better offense), Jester (better defense), or Magi (get more quests and less battles). Needless to say, the quests require some thought. Puzzling eh? Gonna be greek mythological characters. Subj : dos4gw & qbx ? ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Greetings All! Is there a way to get qbx to work with the dos extender or such to free up greater programming memory? After I link a pcx graphics library to qbx my programming environment drops down to just over 100k. I need quite abit more space for a programming project I had in mind. Any input pointing me in the right direction would be much appreciated. Try? Load dos LOW, not High (QBX makes more efficient use of the MHA than DOS does), and make expanded memory available (I use & prefer QEMM, because EMM386 is so SLOW by comparison) I'd try this? No. QB and its derivatives (PDS, VB/DOS) are real mode only. A DOS extender requires the program run in protected mode, which is different to real mode -- sometimes slightly, sometimes much more than slightly. (FWIW, DOS4GW is intended specifically for the Watcom C compiler, hence the "W" at the end) Other Options! Your only options are to: a) Find a smaller PCX library (?! it must be massive if it eats up that much) b) Hassle the author to prune it, perhaps into smaller separate OBJ files so you can only link in what you need c) Increase conventional memory. Normally I'd suggest you use one of those utilities which uses video RAM to add an extra 64k or 96k of conventional (EMM386 and QEMM can do this with remapping), but since you say PCX you'll be using that graphics memory. d) Compile from the commandline. There are some options in VB/DOS which can reduce conventional memory requirements, are these also available in PDS? /Ea Allows arrays to be moved into expanded memory /E:n,m Limits expanded memory usage for code and overlay caching to n and m kilobytes (K), respectively /Es Shares expanded memory with mixed-language routines /S:n Sets programming envionment in-memory size to n kilobytes (K). Smaller values of n will result in more conventional memory for your program. Larger values of n will result in less memory, but greater speed while working within the programming environment. /X:n Limits extended memory usage for overlay caching to n kilobytes (K) What about? BLINKER claims to allow any program to run in protected mode (with programming modifications) but the documentation gives no clue how to do this with PDS. Subj : displaying text in VB ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Help! >I'm trying to read a text file to the screen in Visual Basic. >After trying everything I could think of I can't get the file to display >inside a TextBox. The file loads but it doesn't display. Try! Set the Text property of the text box to be the contents of the file. You can do this as shown below. The example is for a text box called txtEdit. I tested this as a Form Load procedure in a Form that contained only a text box called txtEdit. Make sure you set the multi-line property for the text box to True, and the Scroll bars property to be vertical. Dim iFileHandle As Integer iFileHandle = FreeFile Dim strFileName As String strFileName = "C:\CONFIG.SYS" Open strFileName For Input As #(iFileHandle) txtEdit.Text = Input$(LOF(iFileHandle), iFileHandle) Close #(iFileHandle) But... >After trying some old basic code I got the file to display but it >displays on the form rather than inside the textbox and then only after >typing a character inside the textbox. Please! What am I doing wrong? Wait.... Don't PRINT to the form. Set the text property for the text box. You're limited to about 32k by doing this, or 2048 bytes if the multiline property is set to no. If you need more than this, I'm not sure I'm able to help you. There is a pretty good example provided with VB 3.0. Look at TEXTEDIT.MAK in the \VB\SAMPLES\MENUS\ directory, assuming you installed all the sample code. Best of luck Daniel. Subj : Tiny Programme Needed ASAP! ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ -> I need a tiny programme as soon as possible and would be very -> grateful if someone could pass me an exe to handle what I need. -> Specs are: - get a 7 integer string from the last line in a file -> named "FILE1" (only one such string will ever be present on the -> bottom line) - Search "FILE2" for that number -> - Return an exit code of 1 if search is successful -> - Return an exit code of 0 if search is unsuccessful -> I can't afford to pay any money for this help "however" I would be -> able to arrange a dinner for two restaurant certificate. Well, let's see: OPEN "FILE1" FOR INPUT AS #1 DO WHILE NOT EOF(1) LINE INPUT #1, S$ LOOP 'on exit from above loop, S$ will contain last string in file CLOSE 1 ' OPEN "FILE2" FOR INPUT AS #1 CODE% = 0 'initialize "exit code" DO WHILE CODE% = 0 AND NOT EOF(1) LINE INPUT #1, X$ IF X$ = S$ THEN CODE% = 1 'string found! END IF LOOP 'loop quits if string found or at end of file CLOSE 1 The above thingy should set CODE% to 1 if any line is found in FILE2 which is identical to the last line in FILE1; otherwise CODE% is 0. Is this what you want? I'm not sure about your requirement for 7-digit integers. Sorry, it's not an .EXE file. Can't make one of those on the Mac! However, any BASIC compiler should be able to turn the above source code into an .EXE. However, I'm still not sure about what you wanted, and therefore whether the code I posted will do the job. You said something about seven integer numbers being in the last line of FILE1 and searching for the same thing in any line of FILE2. So what I wrote (because it was very easy) was something that would search for a line in FILE2 that was identical to the last line in FILE1 - that is, identical in all respects. In other words, it would work if there are seven numbers, or thirty-two words, or whatever, in the lines, so long as they are identical. But maybe you want the numbers to be extracted from a more complex line. Or maybe you want the program to spot them even if they occur in different orders in the lines in the two files. And so on, and so on. Of course, these things can be done, but the program I sent you won't do them. All I could do was guess.... Incidentally, it would probably be worth your while getting some sort of implementation of BASIC. Then you wouldn't have to rely on other people to compile code! Subj : Re: Visual BASIC 3.0 ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Comment! > Just thought I'd point out that exactly 3 years ago today, Microsoft > released Visual BASIC 3.0 for Windows. I have been thinking of getting VB, but I was wondering, does the Windows version only write programs that require Windows or can you write DOS based programs too/only. Also about how much does it go for. Cost? I've no idea how much VB3.0 costs these days. If you're lucky, you may find a used copy fairly cheaply. There are two editions of VB3.0, a standard edition, and a professional edition. Used to be about $140 and $420, respectively. I managed to find a shrink-wrapped standard edition once for $79. VB3.0 is for Windows 3.x only, and supports only Windows applications. There is also a competitive upgrade available for other Borland or Microsoft language products. VB4.0 was released shortly after Win'95, and there are 3 different editions for it. The standard edition of VB4.0 only supports Win'95 application generation, and only runs on Win'95. The Professional edition supports Win'95 and Windows 3.x application generation, but only if you're running Win'95. Apparently it does run under Windows 3.1. Someone else may have more first-hand information. VB4.0 also comes in an Enterprise Developer edition, which includes better hooks to high-end database tools. Check with A-Plus software for current pricing on VB4.0. As I recall, Standard is about $140, Pro is again about $400, and the Enterprise Developer is about $800. But A-Plus could tell you more accurately. There are also upgrade packages, though no competitive upgrades, or so it seems. There was a version of Visual BASIC for DOS, but Microsoft has abandoned it, along with QuickBASIC and Microsoft PDS, in favour of their Windows development tools. If it's DOS development you're interested in, I highly recommend PowerBASIC. As far as I know, it's the only BASIC compiler for DOS still being enhanced. For information, send e-mail to sales@powerbasic.com. They have a web site also, where you can download a test drive version if your local BBS doesn't have it. The file is called TRYPB3.ZIP. PowerBASIC is the product that Borland's old TurboBASIC became. It too is about $130US or so. PowerBASIC now has a .DLL compiler for Windows also. I've seen mixed reviews on how well this one works, no first hand experience I'm afraid. Subj : DECIMAL TO BINARY CONVERTS ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Help! > Anyone out there have a decent BASIC routine for converting any positive or negative integer into its binary equivalent? One easy way I can think of is using HEX$() to convert an integer Possible Solution! There are dozens of ways to do it. The AND operator can provide a key, something like: IF N%<0 THEN 'N% is the number to be converted N$="-" N%=-N% ELSE N$="" 'N$ will be the binary representation END IF FOR X%=LOG(N%+0.5)/LOG(2) TO 0 STEP -1 IF (2^X% AND N%)=0 THEN N$=N$+"0" ELSE N$=N$+"1" END IF NEXT X% I haven't tested it, but I think it should work. For negative numbers, it uses the negative sign, so -5 becomes "-101". Maybe this isn't what you want. If you want "signed integer" representation, then the FOR line should be changed a bit, and the part at the beginning should be omitted. þ