VS Code整合.net与F#

小结 安装VS Code并安装F#和C#开发环境,达到可以调试代码的目的。 .net安装 安装 dotnet-sdk-6.0,验证dotnet指令可以运行。 验证创建应用 dotnet new console -o MyApp -f net6.0 cd MyApp dotnet run 以上打印Hello, World! F#安装 安装FAKE dotnet tool install fake-cli VS Code扩展 安装VS Code并安装以下几个扩展 – Ionide for F# – .NET Extension Pack – C# for Visual Studio Code 参考 .NET Tutorial – Hello World in 5 minutes Download .NET […]

PC/SC Winscard SCardTransmit error 0x00000016 returned

Use PC/SC Winscard SCardTransmit function, it returns error 0x00000016 when using Contactless card reader, found the 2nd parameter of SCardTransmit( ) was wrong. If I replace the 2nd parameter from SCARD_PCI_T0 to SCARD_PCI_RAW under PC/SC contactless mode, the problem was resolved. The change was as below, lErrCode = SCardTransmit(m_hSCard, SCARD_PCI_T0, send, sendLen, NULL, recv, &recvLen); […]