Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: DeSigN on January 12, 2003, 10:38 AM

Title: Compile Error
Post by: DeSigN on January 12, 2003, 10:38 AM
i made a bot and i cant compile it. the error i get is Compile Error:
Ambiguous name detected : WritePrivateProfileString

anyone know hwo to fix that?    :-/
Title: Re: Compile Error
Post by: Coltz on January 12, 2003, 10:48 AM
try changing its name
Title: Re: Compile Error
Post by: Dark-Feanor on January 12, 2003, 11:08 AM
Which program are you compiling it with, and in which language?
Title: Re: Compile Error
Post by: Mesiah / haiseM on January 12, 2003, 12:16 PM
based on the error format, id guess vb

try checking your source to make sure you have the call done correctly, or if you have it more than once.

Public Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long
that is what the call should look like in vb...