- Edited
What are you installing? Visual C++.net? If you want something smaller and for educational purposes check out http://www.bloodshed.net/devcpp.html Good luck :)
yeah did you read about it? If you like it you can download it from the same website.i download Dev-C++ 4 from the link you gave me ?
yeah it is similar, you van use that too.isn't code blocks the same ?
Private Sub form_keydown(keycode As Integer, shift As Integer)
Select Case keycode
Case vbKeyW
Shape1.Top = Shape1.Top - 30
Case vbKeyA
Shape1.Left = Shape1.Left - 30
Case vbKeyS
Shape1.Top = Shape1.Top + 30
Case vbKeyD
Shape1.Left = Shape1.Left + 30
End Select
End Sub
Private Sub Timer1_Timer()
If Shape1.Top = Shape2.Top Then
Shape1.Top = Shape1.Top + 30
End If
If Shape1.Left = Shape2.Left Then
Shape1.Left = Shape1.Left + 30
End If
If Shape1.Top + Shape1.Height = Shape2.Top + Shape2.Height Then
Shape1.Top = Shape1.Top - 30
End If
If Shape1.Left + Shape1.Width = Shape2.Left + Shape2.Width Then
Shape1.Left = Shape1.Left - 30
End If
End Sub
but it didn't work someone have an idea ?