我尝试基于天蓝色的“应用服务”创建一个移动应用。我下载了一个随时可以使用的示例应用程序(Todo App)。
现在,我正在根据自己的需要对其进行更改。问题是我收到“内部服务器错误” ...
有没有一种方法可以调试后端服务(通常在azure上运行)。后端项目可以在Firefox中本地运行,但这对我没有帮助,因为服务器上的行为取决于SQL数据库。
是否可以直接在azure服务器上使用Visual Studio进行调试或在本地运行它,但是模拟与服务器上相同的条件(数据库,与移动客户端的连接...)
我在具有以下功能的图片框上绘制文本:
Point text_point = new Point(0, i);
Font drawFont = new Font("Arial", 12, FontStyle.Regular, GraphicsUnit.Pixel);
SolidBrush drawBrush = new SolidBrush(Color.Black);
g.DrawString(Convert.ToString(i), drawFont, drawBrush, text_point);
Run Code Online (Sandbox Code Playgroud)
...但是文字总是像这样被画成“厚”:
84
我怎样才能使它看起来像:84?
我有两个char值char_1和char_2.现在我想将它们组合成一个16位有符号整数值,其中char_1包含MSB中的符号.
| SGN | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
| 签署字符1 | 其余的Char 1 | Char 2 |
我的尝试是:
signed short s = (((int)char_1) << 8) & (int)char_2;
Run Code Online (Sandbox Code Playgroud)
现在我得到0 s...