(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-28-24 09:32 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Odd Moments with Visual BASIC 6
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
HyperHacker
Posts: 1754/5072
Hm, I suppose so. Too late now though.
Guy Perfect
Posts: 263/451
VB can do that too, HyperHacker. Just debug the compiles instead of doing its little "run mode"
HyperHacker
Posts: 1741/5072
Originally posted by Dan
Originally posted by HyperMackerel
Nah, what's fun is when you put a MessageBox statement in the wrong place and it loops endlessly, forcing you to close VB and lose your code yourself.

Why not just turn on the option that will either ask you to save your code, or automatically do it for you? That way you never lose any code.

I used that, but it always tended to be a case of deciding not to bother saving because it was just a quick little thing, then later realizing I'd put quite a bit of work into it and should have saved it.
Of course by just using C instead I avoid that, because the editor, compiler and final output are all separate programs.
Deleted User
Posts: 66/-7750
I've had problems with VB6, using DataReport and Access, a error message says: "Invalid Source Code". I had to install Service Pack 6...
Dan
Posts: 132/219
Originally posted by HyperMackerel
Nah, what's fun is when you put a MessageBox statement in the wrong place and it loops endlessly, forcing you to close VB and lose your code yourself.

Why not just turn on the option that will either ask you to save your code, or automatically do it for you? That way you never lose any code.
Guy Perfect
Posts: 260/451
Yeah, Ctrl+Break will halt execution at the current line. WONDEFUL for debugging.

interdpth:
FreeBASIC is designed to be compatible with QBASIC 4.5, not Visual Basic. Code porting is as easy as copy/paste, but the language itself is a literal alternative to C. Programming with GUIs requires the inclusion of the proper development headers and knowledge of the API for the system you're using (comes with Microsoft Windows headers and GTK 2.0 (Linux) headers by default, but you can make your own).
interdpth
Posts: 87/362
ctrl + break. It pauses the program <3
HyperHacker
Posts: 1730/5072
Nah, what's fun is when you put a MessageBox statement in the wrong place and it loops endlessly, forcing you to close VB and lose your code yourself.
interdpth
Posts: 86/362
Does FreeBASIC have a handy GUI and how easy is the code porting?
Oh and MegaDog, i've been closing VB6 by accident alot lately.
Guy Perfect
Posts: 258/451
Squash Monster, all BASIC compilers I can think of prior to .NET require each individual variable to have a data type specified. In .NET, I believe saying "Dim X, Y, Z As Double" will create three Duobles as opposed to two Variants (called Object in .NET) and one Double.

One of the most bizzare things I've done with VB is use some Windows API calls to implement, of all things, Standard I/O. How pitiful it is that a programming language doesn't support Standard I/O.

I've also had some freaky runarounds with alternatives to variable pointers, since VB doesn't support that either. The VarPtr() function and AddressOf operator can be used to RETURN a pointer, but only for use with DLL calls. Again, the solution came in the form of Windows API.

Needless to say, migrating to FreeBASIC was one of the most glorious things I've ever done... next to migrating to Linux. (-:
Mega-Dog
Posts: 35/72
Just wait till you use some API and such and acedently write a code line to close VB and lose a ton of your source lol!
Squash Monster
Posts: 197/296
My teacher and book both said that the Dim statement worked one way with multiple arguments, when it turned out to work a different way. It ended up in a bunch of variables I thought were integers actually being variants, and one of my programs broke in really crazy ways that I can't properly describe.
HyperHacker
Posts: 1678/5072
Type "do: beep: loop" into the Immediate box and hit Enter. I suggest you save first.
interdpth
Posts: 76/362
Ok this thread is to place your odd moments with Visual BASIC 6 whence it did something eally unexpected. Please do not use this thread as a reason to bash VB6 some of us actually like it.
Ok my story would be I was using a DLL in VB, and well my program froze and I guess it cause a really huge memory leak and my computer just reboot. No BSoD or anything it was really just odd. Post your stories~!
Acmlm's Board - I3 Archive - Programming - Odd Moments with Visual BASIC 6


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.012 seconds; used 357.78 kB (max 411.63 kB)