小编Sid*_*qui的帖子

在C中穿线

我想在C中创建一个线程,以便线程在两秒后自动调用.我正在使用Visual Studio和Windows平台进行开发.

我该如何开始?

c

8
推荐指数
1
解决办法
4618
查看次数

为什么.NET代码编译成MSIL?

第一个.NET代码编译为MSIL,然后JIT将其转换为机器相关代码.任何人都可以告诉我因为2步编译而获得的所有好处.谢谢

.net cil

7
推荐指数
2
解决办法
2731
查看次数

Windows中的启动画面

如何在Windows中使用C或C++显示启动画面?哪些库或Windows组件适用?

c c++ windows user-interface

7
推荐指数
1
解决办法
2746
查看次数

C#PasswordDeriveBytes混乱

我在C#中有以下代码

PasswordDeriveBytes DerivedPassword = new PasswordDeriveBytes(Password, SaltValueBytes, HashAlgorithm, PasswordIterations);
byte[] KeyBytes = DerivedPassword.GetBytes(32);
Run Code Online (Sandbox Code Playgroud)

我正在使用"SHA1"哈希算法.

根据SHA1定义,它生成160位(20字节)密钥.我的问题是GetBytes方法如何从DerivedPassword中获取32个字节,GetBytes方法后面使用了什么算法?

c# cryptography pbkdf2

7
推荐指数
2
解决办法
6494
查看次数

C#的时间延迟

以下函数System.Threading.Thread.Sleep(); 以毫秒为单位延迟线程,并将整数值作为参数.是否有任何线程延迟的方法,以微秒为单位.或者可以睡眠功能取浮动值?谢谢

.net c#

6
推荐指数
2
解决办法
9675
查看次数

Matrix标准库

c中是否有任何标准的Matrix库.我可以在整个平台上实施.如果没有那么请告诉我OS的OS依赖库.

c

6
推荐指数
1
解决办法
4206
查看次数

GSL-GNU中的矩阵乘法

请告诉我GSL库中矩阵乘法的功能.我搜索了很多,但我无法对它进行罚款.如果有人知道这个功能,请回答.提前致谢.

c c++ matrix matrix-multiplication gsl

6
推荐指数
1
解决办法
1万
查看次数

c#中的memcpy函数

可能重复:
C#memcpy等效

memcpyc#中函数的等价物是什么?

.net c#

6
推荐指数
2
解决办法
5万
查看次数

C++ int与long

在C++中,使用long over int有什么好处吗?

似乎long是x86和x86_64体系结构的默认字大小(x86上为32位,x86_64上为64位,而int上为32位),在算术时应该(理论上)更快.

C++标准保证sizeof(int)<= sizeof(long),但似乎long是32位和64位系统上的默认大小,因此在尝试写入时应尽可能长时间使用而不是int可以在两种架构上移植的代码?

c++

6
推荐指数
2
解决办法
1831
查看次数

Android中的Microsoft ISA Server身份验证

我在Android中有一个应用程序,我在远程服务器上读取文件,下面给出了读取文件的代码;

            URI uri = null;
            try {
                uri = new URI("http://192.168.1.116/Server1/Users.xml");
            } catch (URISyntaxException e) {
                e.printStackTrace();
            }
            HttpGet httpget = new HttpGet(uri);
            httpget.setHeader("Content-type", "application/json; charset=utf-8");
            httpget.setHeader("host", "192.168.1.116");

            HttpResponse response = null;
            try {
                response = httpClient.execute(httpget);

            } catch (ClientProtocolException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }

            HttpEntity responseEntity = response.getEntity();
            String result = null;
            try {
                result = EntityUtils.toString(responseEntity);
                Log.d("SERVER1", result);
            } catch (ParseException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
Run Code Online (Sandbox Code Playgroud)

现在所有远程文件都在代理(Microsoft ISA …

java security android ntlm isa

5
推荐指数
1
解决办法
464
查看次数