
Registry read Failure when program launched by AT scheduling program
Mike,
I'm not really sure, but I think this might be the cause of your problem.
GetSetting retrieves values from the current_user part of the registry,
which is ok when running the app from the desktop.
When using the scheduler the current_user part is not available,
since the scheduler needs to be able to launch the program even if
no user is logged in.
You should use the registry api calls to retrieve the information from
the local_machine part instead.
/Bj?rn Holmgren, Framfab/Guide AB
Quote:
> My VB6 'standard exe' program uses 'GetSetting' to retrieve some registry
> information. The function works when launched from the desktop (NTW4
sp5),
> but when I run the program from the scheduler program 'AT' the function
> fails. Is this a known issue or is there something I am doing wrong?
When
> I use the API functions directly, I still get a 'path not found' error. I
> am using the ASCII version of the registry functions. Do I need to
convert
> to Unicode? How?
> Thanks for any help.
> Mike Stokan
> GeoEconomics, Inc.