Hello!
I need to implement cross-platform service/daemon and choose QtService examples from Qt Solutions for Qt3.
I've successfully compiled examples but they all fail to start. They register/unregister themself successfully, but starting them as a service gives me: error 203 "system could not find the environment option that was entered".
In fact, this code fails:
int QtService::exec( int argc, char **argv )
{
..
// Not much point blowing up argv to wide characters - they end up being ANSI anyway.
bool res = pStartService( hService, argc, (const char**)argv );
...
}
int QtService::exec( int argc, char **argv )
{
..
// Not much point blowing up argv to wide characters - they end up being ANSI anyway.
bool res = pStartService( hService, argc, (const char**)argv );
...
}
To copy to clipboard, switch view to plain text mode
Bookmarks