--------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEN00000 Date: 10/18/97 From: MIKE MCDONALD Time: 12:50am \/To: LILA GODEL (Read 4 times) Subj: Code snippet > I never read one, but here is something that might help. When me thanks. this is exactly what is was looking for. mike --- Msged 4.10 * Origin: AT Online - Hermitage, TN (1:116/133) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEN00001 Date: 10/18/97 From: ERIK VILELA Time: 11:58am \/To: ALL (Read 4 times) Subj: C in VB5 Anyone know of a way i could use C or C++ (but id like C better) in a VB5 app?? Maybe this isn't very clear but... I just want to be able to use C stuff in there. Anyway, i hope there IS a way... Thanx --- Maximus 3.00 * Origin: MURPHY'S LAW BBS (1:163/113) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEN00002 Date: 10/16/97 From: EILEEN LOUISE Time: 07:00am \/To: WILLIAM HURN (Read 4 times) Subj: Visual Basic Printing Hi William, Quoting William Hurn to DIK COATES on Monday October 13 1997 WH> If you can set your printer to about 80 lines per page or more WH> (use legal maybe) you can use the standard VB4 setup. If not, a WH> little editing will solve the problem. I just save the file with WH> a text editor (EdWord) and type "COPY [file] LPT1" at the DOS WH> prompt. Anybody know if VB5 allows pagination? heehee, i never thought to look. VB printing is *so* lame. most of the time I just stuff everything into an RTF box and use its printing methods, which are more reliable. --- eileen@technologist.com * Origin: We Gladly Feast On Those Who Would Subdue Us (1:326/431) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEN00003 Date: 10/16/97 From: EILEEN LOUISE Time: 07:01am \/To: DAVE HAMILTON (Read 4 times) Subj: "Out of Memory" Hi Dave, Quoting Dave Hamilton to Eileen Louise on Wednesday October 15 1997 EL>> and when you unload, set = nothing to really get rid of it. DH> Pardon my ignorance, but could you elaborate on this? An example, DH> perhaps? Thanx. welp, when you unload a form (as in Unload Me), the form unloads, but the memory structures it initialized don't. if after the form is unloaded you say (set form1 = nothing) that will free the rest of the spacejunk that the form left behind. --- eileen@technologist.com * Origin: We Gladly Feast On Those Who Would Subdue Us (1:326/431) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEN00004 Date: 10/16/97 From: EILEEN LOUISE Time: 07:03am \/To: BUCKY CARR (Read 4 times) Subj: "Out of Memory" Hi Bucky, Quoting Bucky Carr to Eileen Louise on Monday October 13 1997 BC> Gotcha. Now, I'm sort of thinking that Load/Unload ability is sort of BC> like what we used to do with "overlays" in MSDOS versions of BASIC. BC> If I think that way will I be safe? grin. i haven't thought about overlays in quite a while. i don't particularly think of this that way, but then again, I was never a basic programmer. if your project is well organized, it should be fairly obvious to you what you can unload. if your project is not well organized, it is probably worth your time to change that :) EL>> and when you unload, set = nothing to really get rid of it. BC> Thanks. Does merely .Close ing a dynaset get rid of it in the same BC> way that Nothing does? you have to forgiveme here Bucky, i do zero DAO these days. in RDO, the data memory issue is not even remotely (no pun intended) the same as it is for forms. there are other issues like where something has been compiled, if it will be running again, which connection you are on, yahdeedah etc. in general, i would treat data services and interface as apples and oranges. EL>> developers usually have better machines then users. BC> Okay, didn't think about that. Will have to really prune. don't get too carried away too quickly. there are two separate issues. first, it is reasonable to establish minimum system requirements for your application. second, a little organization and planning goes a long way. i don't know what your specific concerns are at this point. if you want to get more detailed, here or in email, feel free. BC>> PS - please discuss the issue of 'memory leak' while you are at BC>> it. BC> I had a 7th grade teacher named Mr Bliss. We used to love the BC> expression, "Ignorance is Bliss". grin. unless you are having a specific problem, it is probably best to look at memory leaks that way. --- eileen@technologist.com * Origin: We Gladly Feast On Those Who Would Subdue Us (1:326/431) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEN00005 Date: 10/18/97 From: MIKE SCIROCCO Time: 05:57pm \/To: ALL (Read 4 times) Subj: Print questions I have a program which prints out data. I have a form letting the user control font, font size, and printer. I know how to find the available fonts, but I am wondering how to find the current font, current font size, and current printer. Anyone have the code or know where to find it. Use API s? --- Squish/386 v1.11 * Origin: That's The Spirit BBS - (408) 336-5532 (1:216/511) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEP00000 Date: 10/18/97 From: PAUL WILLIAMS Time: 09:30pm \/To: ALL (Read 4 times) Subj: MS BS Subject: This Just about sums up Microsoft : ) >Windows 95: noun, > 32 bit extensions and a graphical shell for a 16 bit patch to an 8 > bit operating system originally coded for a 4 bit microprocessor, > written by a 2 bit company that can't stand 1 bit of competition. --- Squish/386 v1.11 * Origin: None (1:3629/101) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEP00001 Date: 10/18/97 From: EILEEN LOUISE Time: 04:00pm \/To: LILA GODEL (Read 4 times) Subj: Code snippet Hi Lila, Quoting Lila Godel to Mike McDonald on Wednesday October 15 1997 MM>> i would appreciate it if some one would post a snippet of code that MM>> will read a .INI file. i haven't made it to the chapter on file MM>> manipulation and don't want to hassle with trying to link VB and MM>> C++ code. LG> delete. So I wrote a Visual Basic 5.0 program to do this computation. yikes! dateadd("d",-14,date) will have done all of that for you. easy enough to read in a variable instead of -14 if needs be. the call to ini files is getprivateprofilestring(stuff...) it's very well documented. --- eileen@technologist.com * Origin: We Gladly Feast On Those Who Would Subdue Us (1:326/431) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEP00002 Date: 10/18/97 From: EILEEN LOUISE Time: 04:36pm \/To: LILA GODEL (Read 4 times) Subj: Total or Used Space on Dr Hi Lila, Quoting Lila Godel to All on Wednesday October 15 1997 LG> For I program I am writing I need to be able to find the total, used, LG> and free space for the selected drive in a drive list box. I have LG> made use of the setup1 routine for finding the free space even added LG> commas to it. Unfortunately I cannot get the other values. If you LG> can give me some APIs for either one I would be great full. I only LG> need one as used space + free space = total space and total space - LG> free space = used space. I am using Visual Basic 5.0 Professional. ouch. this is rather a disaser in the making. i can think of half a dozen ways to easily break that formula almost instantly. what you really need to do is use GetDiskFreeSpace. as you will see when you look it up, it returns reliably managable information about the drive, based on clusters and sectors. --- eileen@technologist.com * Origin: We Gladly Feast On Those Who Would Subdue Us (1:326/431) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEP00003 Date: 10/18/97 From: EILEEN LOUISE Time: 04:40pm \/To: MARTIN ROGGON (Read 4 times) Subj: Hardware data ? Hi Martin, Quoting Martin Roggon to All on Thursday October 16 1997 MR> May be thats it has been asked very often before but ... MR> Is it possible to get a read/write access data into a MR> simple VB program ? MR> Any hints ? wow, what a great question. in all honesty i have no clue. i will think about it though. --- eileen@technologist.com * Origin: We Gladly Feast On Those Who Would Subdue Us (1:326/431)