Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Please help VB.NET

ten digitz
2009-02-18
2013-04-22
  • ten digitz
    ten digitz
    2009-02-18

    respected sir, I'm doing this vb.net GUI implementation using AIMLbot.dll,
    This is my code:

    --------------------------------------------------------------------------------------------------------
    Imports System
    Imports AIMLbot

    Public Class Form1

        Dim myBot As New AIMLbot.Bot
        Dim myUser As New AIMLbot.User("user", myBot)
        Dim myReq As AIMLbot.Request
        Dim myRes As String = ""

        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            myBot.loadSettings()
            myBot.isAcceptingUserInput = False
            myBot.loadAIMLFromFiles()
            myBot.isAcceptingUserInput = True
            myReq = New AIMLbot.Request("hello", myUser, myBot)
            myRes = myBot.Chat(myReq).ToString
            MessageBox.Show(myRes)

        End Sub
    End Class
    ------------------------------------------------------------------------------------------------------

    I got a error in the line
    myBot.loadSettings()
    Unable to find the specified file.
    which file I have to link it to, with a sample, please correct me and I'll be very grateful.
    also I know no big about this AIML

    Thanks

     
    • ten digitz
      ten digitz
      2009-02-18

      Figured it out. thanks