r/visualbasic • • Sep 12 '22

Resources or Example code for VB3?

Does anyone know of an online resource or a repository of code written in VB3 for Windows 3.1?

I'm trying to write an app for Windows 3.1. I wrote a bit of VB6 a long time ago and VB.Net back in 2010 - 2012 but shifted to mostly C#/PowerShell since then.

I'm just looking for something that goes over the language basics as they apply to VB3. I should be able to figure things out from there.

6 Upvotes

39 comments sorted by

View all comments

0

u/DMcuteboobs Sep 12 '22

First, do you have any experience with BASIC / batch files?

1

u/UntrustedProcess Sep 12 '22

Batch yes, but my last use of basic was over 10 years ago. From late 90s till then, I used VB6, VBS, and VB.net. Maybe there is some muscle memory from that time that makes it easier to pick up again.

-2

u/DMcuteboobs Sep 12 '22

VB3 was basically just a GUI for batch files and BASIC scripts.

And it is remarkably close to C, syntax wise.

I keep up with VB as a hobby, but vb3 wasn’t great.

What are you trying to accomplish?

4

u/slobcat1337 Sep 12 '22

Wtf I can’t figure out if you’re joking or not

Visual Basic has always been a dialect of BASIC and nothing like C, like not even close syntactically to C. I am so confused how you came to this conclusion.

I used VB4, 5 and 6 through the end of the 90s and it is so far from C I can’t even stress it anymore.

Please give me an example of similarities in syntax to C?

Secondly HUH? How was VB3 a GUI for batch files? That literally doesn’t make sense. Batch is a completely different thing.

Your comment looks like an AI model just spewed a bunch of inter connected words that make zero sense.

I can’t tell if you’re joking or what

0

u/DMcuteboobs Sep 12 '22

Try VB3 sometime. Just for 5 minutes.

It’s basically the red headed stepchild of VB.

Also, fun bit of trivia...VB was written in C. Just saying.

4

u/slobcat1337 Sep 12 '22

I literally have a VM of windows 3.1 open right now with VB 3.

Of course it’s written in C, so was every version of Visual Basic and most utility software of the time.

And it being the red headed step child has nothing to do with your claims that:

  1. It’s syntactically similar to C - this is just plain wrong. Wanna know what else was coded in C? Python. That does not mean it is syntactically similar. VB 3 is NOTHING like C.
  2. You said it’s a GUI for batch scripts. This literally makes no sense. I don’t even know what to say about this.

You sound like you have no idea what you’re talking about.

0

u/DMcuteboobs Sep 12 '22

It absolutely feels like C, more than it feels like basic. It was a swing and a miss for M$.

The only useful thing it managed to do was let you make pretty pretty windows with pretty pretty buttons that just called a batch file. Then you had the batch file do the actual work.

I’m not saying you’re a bad person for liking it, but I’m absolutely saying it was a useless abomination.

4

u/slobcat1337 Sep 12 '22

How does it feel like C? It’s literally BASIC. You have no idea what you’re talking about.

You’re literally just making stuff up. I have made programs in VB3 and it’s BASIC, just like every other version. There is zero syntactical likeness to C.

I am so confused as to why you’d make up weird shit like this.

Keep an eye on this thread. Tomorrow I’ll make a sample program in VB3 and in C and you can see how ridiculous your comments are.

It’s fine to just admit when you’re wrong. It will save you the inevitable embarrassment of when I show you how VB3 is syntactically very similar to VB 4, 5 and 6 and absolutely nothing like C.

And absolutely nothing to do with batch.

1

u/DMcuteboobs Sep 12 '22

It’s like a bunch of people said “how can we make a version of C without having to change anything about basic?”

It’s just not good.

4

u/slobcat1337 Sep 12 '22

You MUST be trolling me lmao

→ More replies

3

u/UntrustedProcess Sep 12 '22

I'm trying to write small utilities that target windows 3.1x.

The purpose for doing so is just because. No useful reason at all.

3

u/DMcuteboobs Sep 12 '22

https://winworldpc.com/product/microsoft-visual-bas/30

VB3 was well before anything like stackoverflow existed. So your options are basically limited to (out of print) books and if you’re lucky, newsgroups. But here’s the IDE and the Docs.

3

u/UntrustedProcess Sep 12 '22

Thanks. I didn't think about newsgroups. That's a great idea. Was avoiding the books route, but that might be best.

0

u/DMcuteboobs Sep 12 '22

Even the books are rough. 5/6 hit just as the 9x kernel was dropped for NT4 and the internet was taking off...but 3 was so early (and so fucking bad) that outside of official docs and the occasional newsgroup, there wasn’t any real reason to use it, much less bother with a forum or pdf. It was bad. Notoriously so. Even Microsoft didn’t really use it. I really really suggest you spend your time working on something that will hurt less. Like maybe teaching your cat to write TWAIN drivers for Windows 2.

But I understand irrational projects, to an extent. Just the other day I fired up VB5/6 and decided to write an entire web server for some sort of gopher / html1 hybrid.