如:
public const short CMD_CANCEL_CMD = -9;
public struct MULTI_COMMUNICATION
{
int nComType;
string szPhoneNo;
...
}搜索下旧的贴子,再找个vb转为c#的工具,慢慢调试:)
public const short CMD_CANCEL_CMD = -9;
public struct MULTI_COMMUNICATION
{
int nComType;
string szPhoneNo;
...
}搜索下旧的贴子,再找个vb转为c#的工具,慢慢调试:)
1,Private Type LPUFIND_DATA 这种类型在.net 里面如何定义 。
2,Const MAX_PATH = 25
Const GENERIC_READ = &H80000000
Const GENERIC_WRITE = &H40000000
在.net里面怎么写 ????---------------------------------------
答案:
public class Class1
{
private struct LPUFIND_DATA
{
public byte cNouse; public string cFileName; }
private const int CP_ACP = 0; private const int MAX_PATH = 25; private const int GENERIC_READ = int.MinValue; private const int GENERIC_WRITE = 1073741824;
private const int GENERIC_READ = int.MinValue;
private const int GENERIC_WRITE = 1073741824;是不是已经转化好了 ???int.MinValue是&H80000000吗?
int m = num / 100; //整数结果
int n = num % 100; //余数