Valhalla Legends Forums Archive | Battle.net Bot Development | Compile Error

AuthorMessageTime
DeSigN
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?    :-/
January 12, 2003, 4:38 PM
Coltz
try changing its name
January 12, 2003, 4:48 PM
DaRk-FeAnOr
Which program are you compiling it with, and in which language?
January 12, 2003, 5:08 PM
MesiaH
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.

[code]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[/code]

that is what the call should look like in vb...
January 12, 2003, 6:16 PM

Search