Results 1 to 2 of 2

Thread: MSagent

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    4

    Question

    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

  2. #2
    Lively Member
    Join Date
    May 1999
    Location
    KC
    Posts
    72
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width