|
|
@ -124,7 +124,7 @@ int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdL
|
|
|
|
scn->setArgs (lpCmdLine); \
|
|
|
|
scn->setArgs (lpCmdLine); \
|
|
|
|
createDebug(NULL,!scn->haveLongArg("nolog"));\
|
|
|
|
createDebug(NULL,!scn->haveLongArg("nolog"));\
|
|
|
|
scn->setCallbackArray (__ServiceCallbackArray, sizeof(__ServiceCallbackArray)/sizeof(__ServiceCallbackArray[0])); \
|
|
|
|
scn->setCallbackArray (__ServiceCallbackArray, sizeof(__ServiceCallbackArray)/sizeof(__ServiceCallbackArray[0])); \
|
|
|
|
sint retval = scn->main (__ServiceShortName, __ServiceLongName, __ServicePort, __ConfigDir, __LogDir, __DATE__" "__TIME__); \
|
|
|
|
sint retval = scn->main (__ServiceShortName, __ServiceLongName, __ServicePort, __ConfigDir, __LogDir, __DATE__ " " __TIME__); \
|
|
|
|
delete scn; \
|
|
|
|
delete scn; \
|
|
|
|
return retval; \
|
|
|
|
return retval; \
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -139,7 +139,7 @@ int main(int argc, const char **argv) \
|
|
|
|
scn->setArgs (argc, argv); \
|
|
|
|
scn->setArgs (argc, argv); \
|
|
|
|
createDebug(NULL,!scn->haveLongArg("nolog"));\
|
|
|
|
createDebug(NULL,!scn->haveLongArg("nolog"));\
|
|
|
|
scn->setCallbackArray (__ServiceCallbackArray, sizeof(__ServiceCallbackArray)/sizeof(__ServiceCallbackArray[0])); \
|
|
|
|
scn->setCallbackArray (__ServiceCallbackArray, sizeof(__ServiceCallbackArray)/sizeof(__ServiceCallbackArray[0])); \
|
|
|
|
sint retval = scn->main (__ServiceShortName, __ServiceLongName, __ServicePort, __ConfigDir, __LogDir, __DATE__" "__TIME__); \
|
|
|
|
sint retval = scn->main (__ServiceShortName, __ServiceLongName, __ServicePort, __ConfigDir, __LogDir, __DATE__ " " __TIME__); \
|
|
|
|
delete scn; \
|
|
|
|
delete scn; \
|
|
|
|
return retval; \
|
|
|
|
return retval; \
|
|
|
|
}
|
|
|
|
}
|
|
|
|