|
-
Sep 30th, 2010, 08:09 PM
#1
Thread Starter
Member
Visual Basic 2008 Multiplayer Game/MySQL HELP!
Hello everyone!
Thank you for taking an interest in this thread/topic, hope you can contribute to what I need done!
(Okay, I'm done talking fancy)
So basically, I want to make a multiplayer game. Now, I understand how a multiplayer game works, and everything, blah blah.
Basically, I have 2 pictureboxes that can be moved based on the player input.
So what I'm all out saying, is how can I send data between two .exe /Visual Basic applications without having to constantly upload and download files.
How my old version worked is, both applications would be constantly downloading files of the other user's positions, and would be uploading theres. This caused a memory/buffer overflow, and timed out with lagg.
Is there a way with MySQL to transfer such data?
I have a MySQL.DATA.DLL reference installed, and I'm using the following code to connect to my database, (which is successful)
Code:
Imports MySql.Data
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conn As New MySql.Data.MySqlClient.MySqlConnection
Dim myConnectionString As String
myConnectionString = "server=127.0.0.1;" _
& "uid=root;" _
& "pwd=;" _
& "database=TEST;"
Try
conn.ConnectionString = myConnectionString
conn.Open()
Catch ex As MySql.Data.MySqlClient.MySqlException
MessageBox.Show(ex.Message)
End Try
End Sub
End Class
Now how can I input/read data from my MySQL database?
I'm very good with PHP and connecting that way, so I'm pretty fimiliar with my current structure.
Okay, so all of this may seem very consfusing in the way I put it. Sorry :P
If you can answer any of my following questions explained in detail above;
1. How can I input/read data from MySQL Database
2. How can I transfer data(preferably strings) between two VB.NET Apps
3. How can I make a user 'chat' application to get me started
THANKS EVERYONE!
*links/projects/code/examples/explanations are all helpful! THANKS*
OH!
Forgot to mention!
The .DLL reference file I'm using, is:
http://www.mediafire.com/?p67p8z3e8o3ldsn
PS: It's an installer, not the direct .dll
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|