Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Visual Basic 2008 Express Edition

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  

How Many will help?
This is dumb
0%
 0%  [ 0 ]
Will help
100%
 100%  [ 2 ]
Total Votes : 2

Author Message
yaaver2468
Advanced Cheater
Reputation: 0

Joined: 31 Jul 2007
Posts: 61
Location: Canada

PostPosted: Sun Sep 23, 2007 11:06 am    Post subject: Visual Basic 2008 Express Edition Reply with quote

yeah i just downloaded VB 2008 but i need some help on how to use it and make some trainers so like if any of u could help me u can talk to me on msn
my email is [email protected] so please can any of u help me
Back to top
View user's profile Send private message MSN Messenger
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Sun Sep 23, 2007 11:25 am    Post subject: Reply with quote

Go read some tuts on Google
Back to top
View user's profile Send private message
yaaver2468
Advanced Cheater
Reputation: 0

Joined: 31 Jul 2007
Posts: 61
Location: Canada

PostPosted: Sun Sep 23, 2007 1:01 pm    Post subject: right Reply with quote

ok man ill check it out
Back to top
View user's profile Send private message MSN Messenger
SuicidalFruit
Master Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 300

PostPosted: Thu Sep 27, 2007 5:03 am    Post subject: Reply with quote

I have also recently decided to increase my knowledge and learn VB but when i have gone to search for tutorials, all i have found are ones for VB 6.0.
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Thu Sep 27, 2007 7:46 am    Post subject: Reply with quote

If you know vb6 then you should know 80%+ of vb.net right? i mean to get started, dim A as long = 1...
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
Mussy69
Grandmaster Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 842
Location: Sydney

PostPosted: Thu Sep 27, 2007 7:28 pm    Post subject: Reply with quote

uhm i wat do u need help wif
email adress is [email protected]

_________________
Back to top
View user's profile Send private message AIM Address
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Thu Sep 27, 2007 7:32 pm    Post subject: Reply with quote

SuicidalFruit wrote:
I have also recently decided to increase my knowledge and learn VB but when i have gone to search for tutorials, all i have found are ones for VB 6.0.

VB.NET is almost exactly like VB 6.0.

_________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.

so all things in windows you have like the start menu is a windows form too.
Back to top
View user's profile Send private message
Mussy69
Grandmaster Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 842
Location: Sydney

PostPosted: Thu Sep 27, 2007 10:46 pm    Post subject: Reply with quote

the coding is diff
_________________
Back to top
View user's profile Send private message AIM Address
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Sep 28, 2007 9:10 am    Post subject: Reply with quote

it isn't that different. plus you get to use all the .net classes
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Sep 29, 2007 12:10 pm    Post subject: Reply with quote

Actually, the coding syntax is different. Not by much, but there are noticeable changes from 6 to .NET

A basic Form_Load in .NET:

Code:
Public Class Form1
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(496, 493)
Me.Name = "Form1"
Me.Text = "Form1"

End Sub

#End Region

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub
End Class


Where as back in VB6 it was simply:
Code:
Private Sub Form1_Load()
End Sub


The syntax overall is the same, just some tweaks to change VB to be more like C# in my opinion. Overall not a huge difference and easy to learn, but not worth the time to learn VB.NET if you don't already know VB6. Just go right into C/C++ if anything.

There are various changes to .NET that a typical VB6 user would see and ask questions, the main one being the addition of embracing everything in class types and such which is new to VB.

Some other changes would be to the valid variable types which were improved in VB.NET to handle data more efficiently.

Code:
VB6           VB.NET
---------------------------
Integer       Short
Long          Integer
Variant       Object
Currency      Decimal


VB.NET dropped support for Variant and Currency datatypes that were used in VB6. Instead, both are now used as Decimal in .NET which is a 64bit integer that is scaled by 10,000 to give 15 place values to the left of the decimal and 4 to the right.

VB.NET also removed the ByRef argument when passing a param to a function. Instead, .NET passes all params as ByVal.

Also with params, .NET dropped the IsMissing() function used for optional params in a function. Instead, when defining the param as optional, you must give it a default value of 0 if it isn't in use.

Following the changes, .NET also doesn't support API calls like VB6 did. Instead, VB6 used the Long type for any numeric input that would expect 32bit values. .NET, as I said above sees Long as 64bit integers and will not work correctly with the API calls. But, thats not a huge deal as most have been replaced by object imports.

For memory purposes, .NET also dropped support for VarPtr, ObjPtr, and StrPtr which were used a ton in VB6 for memory management and such. Along with that, LSet, the command in VB6 to convert a variable from one type to another was also dropped.

The method to set an object was also changed as the keyword 'Set' was dropped. So you no longer use:
Code:
Set MyObj = ObjectName

Instead, you now just use:
Code:
MyObj = ObjectName


Arrays also got shifted on the jump from 6 to .NET. When declaring an array, you must define the amount+1 that you wish to have inside the array, meaning:

Code:
Dim MyArray(6) as Byte

Will not be the same in VB .NET was it was in 6. Instead, the results would be:

VB6: MyArray(0) to MyArray(6)
VB.NET: MyArray(0) to MyArray(5)

Which will result in 'Index Out Of Bounds' errors when converting code and not noticing this difference. Which is rather annoying. (They seem to enjoy changing the way arrays work everytime they update VB.)

Objects such as textboxes, labels, command buttons, and so on no longer have default params that obtain a value when simply using the object name. Instead, you MUST define the full object.param when setting a value. Meaning:

Code:
Textbox1 = "Hello world!"

Will not work in VB.NET. Instead, you MUST use:
Code:
Textbox1.Text = "Hello world!"


Along with forms and controls, in .NET form controls are no longer public and able to be called directly from other forms. In VB6 the method to go about fixing something like this would be to use Let and Set, but, .NET dropped support for Let so you will need to use Get/Set instead. So in 6, it would be something like:

Code:
Property Get SomeProperty() As String
   m_PropertyValue = SomeProperty
End Property

Property Let SomeProperty(Value As String)
   m_PropertyValue = Value
End Property


Where as .NET would have to be setup like this:
Code:
Property SomeProperty() As String
   Get
      m_Property = SomeProperty
   End Get
   Set
      m_Property = Value
   End Set
End Property


Theres tons of little changes, removed functions, changed types, etc. Enough to make it a pretty big jump from VB6 to .NET. It's enough change to make a usual VB6 coder have to relearn the language to be fluent again in it. I stopped coding in VB after 6. Never learned .NET as the language changed too much to be like others it was pointless to learn. Instead, I went to C++.

Anyway, just some changes to point out Mad
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites