comserver.plg

来自「DCOM 上位机和嵌入式系统通信」· PLG 代码 · 共 268 行 · 第 1/2 页

PLG
268
字号
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\rjremote.cpp(162) : error C2664: 'CopyFileW' : cannot convert parameter 1 from 'char [260]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Server1.cpp
D:\工作\src\ComServer\Server1.cpp(32) : error C2065: '_mbscpy' : undeclared identifier
D:\工作\src\ComServer\Server1.cpp(38) : error C2065: 'fopen' : undeclared identifier
D:\工作\src\ComServer\Server1.cpp(38) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(43) : error C2065: 'fread' : undeclared identifier
D:\工作\src\ComServer\Server1.cpp(44) : error C2065: 'fclose' : undeclared identifier
D:\工作\src\ComServer\Server1.cpp(61) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(87) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(112) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(134) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(158) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(180) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(202) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(224) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(246) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(268) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(290) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(312) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(335) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(360) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(383) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(405) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(427) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(1418) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(1440) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(1466) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(1493) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(1520) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(1547) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(1648) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [10]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(1682) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [10]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(2109) : error C2065: '_mbslen' : undeclared identifier
D:\工作\src\ComServer\Server1.cpp(2128) : error C2664: 'CreateSemaphoreW' : cannot convert parameter 4 from 'char [9]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server1.cpp(2138) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
Server2.cpp
D:\工作\src\ComServer\Server2.cpp(405) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
D:\工作\src\ComServer\Server2.cpp(730) : warning C4244: '=' : conversion from 'short' to 'unsigned char', possible loss of data
D:\工作\src\ComServer\Server2.cpp(848) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [10]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(876) : error C2664: 'RegConnectRegistryW' : cannot convert parameter 1 from 'char [260]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(878) : error C2664: 'RegOpenKeyW' : cannot convert parameter 2 from 'char [21]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(883) : error C2664: 'RegQueryValueW' : cannot convert parameter 2 from 'char [6]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(886) : error C2664: 'wszFromSTR' : cannot convert parameter 1 from 'char [260]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(950) : error C2664: 'RegConnectRegistryW' : cannot convert parameter 1 from 'char [260]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(952) : error C2664: 'RegOpenKeyW' : cannot convert parameter 2 from 'char [19]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(958) : error C2664: 'RegQueryValueW' : cannot convert parameter 2 from 'char [6]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(961) : error C2664: 'wszFromSTR' : cannot convert parameter 1 from 'char [260]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(1299) : error C2065: '_mbscpy' : undeclared identifier
D:\工作\src\ComServer\Server2.cpp(1303) : error C2065: 'fopen' : undeclared identifier
D:\工作\src\ComServer\Server2.cpp(1303) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server2.cpp(1305) : error C2065: 'fwrite' : undeclared identifier
D:\工作\src\ComServer\Server2.cpp(1306) : error C2065: 'fclose' : undeclared identifier
Server3.cpp
D:\工作\src\ComServer\Server3.cpp(87) : warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
D:\工作\src\ComServer\Server3.cpp(456) : warning C4101: 'addr_sensor' : unreferenced local variable
D:\工作\src\ComServer\Server3.cpp(743) : warning C4244: '=' : conversion from 'short' to 'unsigned char', possible loss of data
D:\工作\src\ComServer\Server3.cpp(822) : error C2065: '_mbscpy' : undeclared identifier
D:\工作\src\ComServer\Server3.cpp(826) : error C2065: 'fopen' : undeclared identifier
D:\工作\src\ComServer\Server3.cpp(826) : error C2440: '=' : cannot convert from 'int' to 'struct _iobuf *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server3.cpp(830) : error C2065: 'fwrite' : undeclared identifier
D:\工作\src\ComServer\Server3.cpp(835) : error C2065: 'fclose' : undeclared identifier
D:\工作\src\ComServer\Server3.cpp(1128) : warning C4305: '=' : truncation from 'const int' to 'short'
D:\工作\src\ComServer\Server3.cpp(1128) : warning C4309: '=' : truncation of constant value
D:\工作\src\ComServer\Server3.cpp(1432) : error C2664: 'OpenSemaphoreW' : cannot convert parameter 3 from 'char [7]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server3.cpp(1434) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
D:\工作\src\ComServer\Server3.cpp(1532) : warning C4244: '=' : conversion from 'long' to 'float', possible loss of data
D:\工作\src\ComServer\Server3.cpp(1536) : warning C4244: '=' : conversion from 'long' to 'float', possible loss of data
D:\工作\src\ComServer\Server3.cpp(1573) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
D:\工作\src\ComServer\Server3.cpp(2403) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [10]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server3.cpp(2431) : error C2664: 'RegConnectRegistryW' : cannot convert parameter 1 from 'char [260]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server3.cpp(2433) : error C2664: 'RegOpenKeyW' : cannot convert parameter 2 from 'char [21]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server3.cpp(2438) : error C2664: 'RegQueryValueW' : cannot convert parameter 2 from 'char [6]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server3.cpp(2441) : error C2664: 'wszFromSTR' : cannot convert parameter 1 from 'char [260]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\工作\src\ComServer\Server3.cpp(3057) : warning C4800: 'short' : forcing value to bool 'true' or 'false' (performance warning)
Stack.cpp
Generating Code...
D:\工作\src\ComServer\Eval.cpp(872) : warning C4700: local variable 'idata' used without having been initialized
Error executing cl.exe.
<h3>Output Window</h3>



<h3>Results</h3>
ComServer.exe - 80 error(s), 28 warning(s)
</pre>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?