I think I got part of the problem:
When I define my declare dlls I placed the parameters inside parenthesis. It seems to be working now. Thanks for the help.
Ramil
>nError = LSopenLogFileLng(@nEnv, "c:\temp\file.log")
>
>
nEnv is passed by reference -- notice '@' character before its name.
>
>Probably it is a handle to the log file. You have to pass it by reference because the LSopenLogFileLng will change it by opening the log file "c:\temp\file.log".
ramil
~~ learning to stand still