Voodoo Chat Game Framework for Visual Basic
-------------------------------------------

This software is free, open, and made for the sole
purpose of aiding Visual Basic programmers in creating
games for the Voodoo Chat client.

The basic framework contains two public functions,
and one public event. In the Form_Load() event of
your game, you will need to split the parameters
passed by Voodoo using Visual Basic 6's Split()
function. Example:

Private Sub Form_Load()
    Dim Vars() As String
    
    If Command <> "" Then
        Vars = Split(Command, " ", 5)
        
        ' Vars(0) = (1 OR 0) Whether or not this game is the owner
        ' Vars(1) = Window handle of the Voodoo Chat client
        ' Vars(2) = Private channel name
        ' Vars(3) = Local chat name
        ' Vars(4) = Chat name of game creator
        
        If vcGame1.hookHWND(Me.hWnd, CLng(Vars(1))) = False Then
            MsgBox "There was an error initializing the game.", vbCritical, "Error"
            Unload Me
        Else
            ' //TODO - Successful hook; game initialization routines go here
        End If
    End If
End Sub

Then SendData(ByVal Data As String) function explains
itself. Do not call this unless you have successfully
hooked the control to your game, or else it will raise the
Error() event telling you that it is not hooked. The
ReceiveData(ByVal fromUser As String, ByVal Data As String)
event will fire whenever data is received through the 
private channel for your game. fromUser contains the
chat username of the user who sent the data, and Data
contains the data sent.

If you have any questions, please direct them to the
Programming section of the Voodoo Forums:
http://www.voodoochat.com/darkhorse/forum.php?op=forum&forumnum=8

-----------------------
Zach Nakaska (Arachnid)
