-
Im experimenting with msagent and have been able to get it to work but in the code you must specify where to load the acs file. (C:\Winnt\etc..), but I also need users on a 98 to run this application and it gets installed on (c:\windows
\etc..)
Is there a way around this?
Thanks
-
Does it work to just leave the path blank? I thought if the path was empty, it went to the default character directory, but I'm not sure.
To get the windows directory, use the GetWindowsDirectory API.
Code:
'Put this in the Declares section
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
'and use this code to find the path
Dim buff As String
buff = String(200, Chr$(0))
x = GetWindowsDirectory(buff, Len(buff))
charpath = Left$(buff, x) & "\msagent\chars\"
MsgBox charpath