Welcome to Dream.In.Code
Become a VB Expert!

Join 137,234 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,706 people online right now. Registration is fast and FREE... Join Now!




visual basic 2005, receiving server infomation

 
Reply to this topicStart new topic

visual basic 2005, receiving server infomation

insane1
21 Feb, 2007 - 03:17 PM
Post #1

New D.I.C Head
*

Joined: 21 Feb, 2007
Posts: 3


My Contributions
Ok, so I am new to coding in Vb2005 and I need help making a program that can receive server information like www.gametiger.com The game is Counter strike source and I want to be able to see who is playing, what map the game is currently on, etc. I have been told it has to do with the packets being sent and received but I got lost when I tried to figure this out.

EDIT: What I am trying to figure out is how to use the winsock type controls to recieve infomation, so far I have no clue as to what I need to do first.

This post has been edited by insane1: 21 Feb, 2007 - 03:37 PM
User is offlineProfile CardPM
+Quote Post

KeyWiz
RE: Visual Basic 2005, Receiving Server Infomation
21 Feb, 2007 - 05:30 PM
Post #2

D.I.C Regular
Group Icon

Joined: 26 Oct, 2006
Posts: 428


Dream Kudos: 125
My Contributions
Take a class on computer programming. Get VB2005 Express FREE it has excelent FREE learning resources. We will assist you with understanding specific functions and processes but you first have to begin the program and POST here the parts you are having trouble with. Again, we assist with specific questions about programming methods.
User is offlineProfile CardPM
+Quote Post

insane1
RE: Visual Basic 2005, Receiving Server Infomation
22 Feb, 2007 - 12:23 PM
Post #3

New D.I.C Head
*

Joined: 21 Feb, 2007
Posts: 3


My Contributions
I CHANGED BACK TO VISUAL BASIC 6

Alright I started working on this and so far alright but I ran into a problem..

CODE

Public Const gameServerIP As String = "64.237.54.237"
Public Const gameServerPort As String = "27015"


From what I was told that should work but for some reason its coming up with the error

Compile error:

Constants, fixed-length strings, arrays, user-defined types and Declare statements not allowed as Public members of object modules.

Here is the whole code

CODE
Option Explicit

Const ControlChar = "ÿÿÿÿ"
Dim T As Long
Dim Pinging As Boolean
Dim Done As Boolean
Dim Players As Boolean

Public Const gameServerIP As String = "64.237.54.237"
Public Const gameServerPort As String = "27015"



Public Type tpServerSettings
Name As String
Players As Integer
MaxPlayers As Integer
Map As String
Type As String
PlayerList As String
Ping As Long
End Type


This post has been edited by insane1: 22 Feb, 2007 - 05:38 PM
User is offlineProfile CardPM
+Quote Post

insane1
RE: Visual Basic 2005, Receiving Server Infomation
22 Feb, 2007 - 05:40 PM
Post #4

New D.I.C Head
*

Joined: 21 Feb, 2007
Posts: 3


My Contributions
Anyone?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:51PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month