I've tried everything, and I just can't get my program to compile in visual basic. Someone tell me what I'm doing wrong?

see attached image, are the includes in the wrong spot or WAT!??!?!

Attachments c++vbfail.jpg 374.28 KB

You're kidding right?

Thats not VB classic source code to begin with.

Thats .net or C # and it sure will not compile in VB 5 or 6

ok but wait, wat's the diff? o i no, it's that vb can't use classes rite? not OOP? ic

ps. look at the filename of the attachment, of course it's a joke :)

Ah right i didnt get it because when i downloaded it in IE it gets called

"c%2B%2Bvbfail.jpg"

which confused me

ok but wait, wat's the diff? o i no, it's that vb can't use classes rite? not OOP? ic

ps. look at the filename of the attachment, of course it's a joke :)

Man oh man where do I start?

First off, its the syntax that is different between C++ and VB. For example in C it is the parens() that define or contain an if or class where as in VB its a whole differt declaration...

Private MySub()
If ThisIsTrue = True Then
End If
End Sub

Public MyFunction(Arguement1 As String, Arguement2 As Integer) As Byte()
End Function

Now, VB can use classes especially since to add a class it is as simple as a couple of mouse clicks but "Classic VB" or versions 4/5/6 do not support true inheritance and VB is or can be OOP if you know what you are doing and you know what OOP is.

As for your joke, your file has been renamed to http://www.daniweb.com/forums/attachment.php?attachmentid=9400&d=1236124107 so some if not all of us probably don't get it.

oh, when I look at it, it says "c++vbfail.jpg".

and yeah, I know, I'm pretty fluent in VB but new in C++, I just wanted to see how people responded. Pretty awesomely, if you ask me.

This question has already been answered. Start a new discussion instead.