Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Dyndrilliac on October 22, 2003, 03:17 PM

Title: Lol, Stumped again :P
Post by: Dyndrilliac on October 22, 2003, 03:17 PM
Ok, im adding a media player to my bot, and it works fine, accept when i add the form files for it and the module to the bot itself. Now, the problem i'm having is this:Private Sub Form_Load()
   Dim result As String
   Dim temp As String * 40
   Dim winDir As String
   
   result = GetWindowsDirectory(temp, Len(temp))
   winDir = Left$(temp, result)
   result = WPSN("MCI", "MPEGVideo", "mciqtz.drv", winDir & "\" & "system.ini")
   lblCaption.Caption = "[ No Media ]"
   ffSpeed = 5
End Sub


result = WPSN("MCI", "MPEGVideo", "mciqtz.drv", winDir & "\" & "system.ini") was originally result = WritePrivateString("MCI", "MPEGVideo", "mciqtz.drv", winDir & "\" & "system.ini") but it kept erroring (and still does) with "Ambiguous Name Detected", so, I did the logical thing and changed the name and all other instances to a name I made sure was not in use. It still errors. Any help on what this means would be appreciated.

Edit: whoops forgot code tags
Title: Re:Lol, Stumped again :P
Post by: Michael on November 02, 2003, 12:34 PM
Quote from: Dyndrilliac on October 22, 2003, 03:17 PM
Ok, im adding a media player to my bot, and it works fine, accept when i add the form files for it and the module to the bot itself. Now, the problem i'm having is this:Private Sub Form_Load()
   Dim result As String
   Dim temp As String * 40
   Dim winDir As String
   
   result = GetWindowsDirectory(temp, Len(temp))
   winDir = Left$(temp, result)
   result = WPSN("MCI", "MPEGVideo", "mciqtz.drv", winDir & "\" & "system.ini")
   lblCaption.Caption = "[ No Media ]"
   ffSpeed = 5
End Sub


result = WPSN("MCI", "MPEGVideo", "mciqtz.drv", winDir & "\" & "system.ini") was originally result = WritePrivateString("MCI", "MPEGVideo", "mciqtz.drv", winDir & "\" & "system.ini") but it kept erroring (and still does) with "Ambiguous Name Detected", so, I did the logical thing and changed the name and all other instances to a name I made sure was not in use. It still errors. Any help on what this means would be appreciated.

Edit: whoops forgot code tags

If i am not mistaken "Ambiguous Name Detected",
is when it is defined more then once and by u changing it to the other thing and not defineing it you will also get "Ambiguous Name Detected",