|
|
|
@ -146,7 +146,7 @@ int nltmain(int argc, const NLMISC::tchar **argv) \
|
|
|
|
|
{ \
|
|
|
|
|
NLMISC::CApplicationContext serviceContext; \
|
|
|
|
|
__ServiceClassName *scn = new __ServiceClassName; \
|
|
|
|
|
scn->setArgs (argc, nlTStrToUtf8(argv)); \
|
|
|
|
|
scn->setArgs (argc, argv); \
|
|
|
|
|
createDebug(NULL,!scn->haveLongArg("nolog"));\
|
|
|
|
|
scn->setCallbackArray (__ServiceCallbackArray, sizeof(__ServiceCallbackArray)/sizeof(__ServiceCallbackArray[0])); \
|
|
|
|
|
sint retval = scn->main (__ServiceShortName, __ServiceLongName, __ServicePort, __ConfigDir, __LogDir, __DATE__ " " __TIME__); \
|
|
|
|
@ -350,6 +350,9 @@ public:
|
|
|
|
|
/// Sets the command line and init _Args variable. You must call this before calling main()
|
|
|
|
|
void setArgs (int argc, const char **argv);
|
|
|
|
|
|
|
|
|
|
/// Sets the command line and init _Args variable. You must call this before calling main()
|
|
|
|
|
void setArgs (int argc, const wchar_t **argv);
|
|
|
|
|
|
|
|
|
|
/// Sets the command line and init _Args variable. You must call this before calling main()
|
|
|
|
|
void setArgs (const char *args);
|
|
|
|
|
|
|
|
|
|