Add VS2019 support.

This commit is contained in:
Jonathan Naylor 2021-03-22 22:18:59 +00:00
parent fdbe0e0fb4
commit 68b81086a4
3 changed files with 11 additions and 3 deletions

View file

@ -177,6 +177,7 @@
<ClInclude Include="PassAllTG.h" />
<ClInclude Include="QR1676.h" />
<ClInclude Include="Reflectors.h" />
<ClInclude Include="RemoteControl.h" />
<ClInclude Include="Rewrite.h" />
<ClInclude Include="RewriteDstId.h" />
<ClInclude Include="RewriteDynTGNet.h" />
@ -223,6 +224,7 @@
<ClCompile Include="PassAllTG.cpp" />
<ClCompile Include="QR1676.cpp" />
<ClCompile Include="Reflectors.cpp" />
<ClCompile Include="RemoteControl.cpp" />
<ClCompile Include="Rewrite.cpp" />
<ClCompile Include="RewriteDstId.cpp" />
<ClCompile Include="RewriteDynTGNet.cpp" />

View file

@ -146,6 +146,9 @@
<ClInclude Include="APRSWriter.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="RemoteControl.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Conf.cpp">
@ -274,5 +277,8 @@
<ClCompile Include="APRSWriter.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="RemoteControl.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>

View file

@ -111,9 +111,9 @@ REMOTE_COMMAND CRemoteControl::getCommand()
}
m_command = RCD_CONNECTION_STATUS;
}
else
} else {
replyStr = "KO";
}
::snprintf(buffer, BUFFER_LENGTH * 2, "%s remote command of \"%s\" received", ((m_command == RCD_NONE) ? "Invalid" : "Valid"), command);
if (m_command == RCD_NONE) {
@ -123,7 +123,7 @@ REMOTE_COMMAND CRemoteControl::getCommand()
LogMessage(buffer);
}
m_socket.write((unsigned char*)replyStr.c_str(), replyStr.length(), address, addrlen);
m_socket.write((unsigned char*)replyStr.c_str(), (unsigned int)replyStr.length(), address, addrlen);
}
return m_command;