(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-14-24 08:23 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Odd Moments with Visual BASIC 6 New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 04-12-06 09:37 PM Link | Quote
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~!
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6295 days
Last view: 6295 days
Posted on 04-12-06 10:02 PM Link | Quote
Type "do: beep: loop" into the Immediate box and hit Enter. I suggest you save first.
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 6302 days
Last view: 6295 days
Posted on 04-13-06 12:32 AM Link | Quote
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.
Mega-Dog



 





Since: 11-19-05
From: Minnesota

Last post: 6316 days
Last view: 6297 days
Posted on 04-14-06 11:49 PM Link | Quote
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!
Guy Perfect









Since: 11-18-05

Last post: 6296 days
Last view: 6294 days
Posted on 04-17-06 12:07 PM Link | Quote
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. (-:
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 04-17-06 03:52 PM Link | Quote
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.


(edited by interdpth on 04-17-06 02:54 PM)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6295 days
Last view: 6295 days
Posted on 04-17-06 08:16 PM Link | Quote
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

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 04-17-06 09:44 PM Link | Quote
ctrl + break. It pauses the program <3
Guy Perfect









Since: 11-18-05

Last post: 6296 days
Last view: 6294 days
Posted on 04-17-06 10:48 PM Link | Quote
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).
Dan

Purple Leever


 





Since: 11-18-05

Last post: 6303 days
Last view: 6294 days
Posted on 04-18-06 02:10 PM Link | Quote
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.
Deleted User
Banned


 





Since: 05-08-06

Last post: None
Last view: 6295 days
Posted on 04-18-06 08:13 PM Link | Quote
I've had problems with VB6, using DataReport and Access, a error message says: "Invalid Source Code". I had to install Service Pack 6...
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6295 days
Last view: 6295 days
Posted on 04-20-06 09:49 PM Link | Quote
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.
Guy Perfect









Since: 11-18-05

Last post: 6296 days
Last view: 6294 days
Posted on 04-20-06 10:03 PM Link | Quote
VB can do that too, HyperHacker. Just debug the compiles instead of doing its little "run mode"
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6295 days
Last view: 6295 days
Posted on 04-21-06 05:26 PM Link | Quote
Hm, I suppose so. Too late now though.
Add to favorites | Next newer thread | Next older thread
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.018 seconds; used 412.96 kB (max 517.63 kB)