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

View File

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

View File

@@ -111,9 +111,9 @@ REMOTE_COMMAND CRemoteControl::getCommand()
} }
m_command = RCD_CONNECTION_STATUS; m_command = RCD_CONNECTION_STATUS;
} } else {
else
replyStr = "KO"; replyStr = "KO";
}
::snprintf(buffer, BUFFER_LENGTH * 2, "%s remote command of \"%s\" received", ((m_command == RCD_NONE) ? "Invalid" : "Valid"), command); ::snprintf(buffer, BUFFER_LENGTH * 2, "%s remote command of \"%s\" received", ((m_command == RCD_NONE) ? "Invalid" : "Valid"), command);
if (m_command == RCD_NONE) { if (m_command == RCD_NONE) {
@@ -123,7 +123,7 @@ REMOTE_COMMAND CRemoteControl::getCommand()
LogMessage(buffer); 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; return m_command;