16,472
社区成员
发帖
与我相关
我的任务
分享
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__StartServiceCtrlDispatcherA@4,该符号在函数 _WinMain@16 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__SetServiceStatus@8,该符号在函数 "void __stdcall ServiceMain(void)" (?ServiceMain@@YGXXZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__RegisterServiceCtrlHandlerA@8,该符号在函数 "void __stdcall ServiceMain(void)" (?ServiceMain@@YGXXZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__PostThreadMessageA@16,该符号在函数 "void __stdcall ServiceStrl(unsigned long)" (?ServiceStrl@@YGXK@Z) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__CloseServiceHandle@4,该符号在函数 "int __cdecl IsInstalled(void)" (?IsInstalled@@YAHXZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__OpenServiceA@12,该符号在函数 "int __cdecl IsInstalled(void)" (?IsInstalled@@YAHXZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__OpenSCManagerA@12,该符号在函数 "int __cdecl IsInstalled(void)" (?IsInstalled@@YAHXZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__CreateServiceA@52,该符号在函数 "int __cdecl Install(void)" (?Install@@YAHXZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__DeleteService@4,该符号在函数 "int __cdecl Uninstall(void)" (?Uninstall@@YAHXZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__ControlService@12,该符号在函数 "int __cdecl Uninstall(void)" (?Uninstall@@YAHXZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__DeregisterEventSource@4,该符号在函数 "void __cdecl LogEvent(char const *,...)" (?LogEvent@@YAXPBDZZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__ReportEventA@36,该符号在函数 "void __cdecl LogEvent(char const *,...)" (?LogEvent@@YAXPBDZZ) 中被引用
1>ServiceTest.obj : error LNK2019: 无法解析的外部符号 __imp__RegisterEventSourceA@8,该符号在函数 "void __cdecl LogEvent(char const *,...)" (?LogEvent@@YAXPBDZZ) 中被引用
1>H:\zengli的工程\ServiceTest -(双进程)\Debug\ServiceTest.exe : fatal error LNK1120: 13 个无法解析的外部命令
fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]