大约有 10,000 项符合查询结果(耗时:0.0118秒) [XML]
Lua简明教程 - 脚本技术 - 清泛IT论坛,有思想、有深度
...注释
变量Lua的数字只有double型,64bits,你不必担心Lua处理浮点数会慢(除非大于100,000,000,000,000),或是会有精度问题。你可以以如下的方式表示数字,0x开头的16进制和C是很像的。num = 1024
num = 3.0
num = 3.1416
num = 314.16e-2
num = 0...
GridCtrl 控件FAQ - C/C++ - 清泛网 - 专注C/C++及内核技术
...格等操作时,表格会发送响应的消息,可以在父窗口添加处理消息的函数,做法如下:
GVN_BEGINDRAG // Sent when dragging starts
GVN_BEGINLABELEDIT // Sent when inplace editing starts
GVN_ENDLABELEDIT // Sent when inplace editing stops
GVN_SELCHANGING ...
CreateWindow()动态创建一个EditBox - C/C++ - 清泛网 - 专注C/C++及内核技术
...---------------------------------------------
创建好了EditBox,需要处理其输入事件,如下:
先给它设置一个ID(可以在resource.h中指定)
m_wndEdit = CreateWindow(_T("EDIT"), 0, WS_CHILD | WS_VISIBLE | ES_WANTRETURN,
70, 4, 60, 16, m_hWnd, (HM...
VC IP地址控件(CIPAddressCtrl )的自绘 - C/C++ - 清泛网 - 专注C/C++及内核技术
..._REFLECT()
ON_WM_CTLCOLOR()
END_MESSAGE_MAP()
// CWEEditCtrl 消息处理程序
HBRUSH CMyIPCtrl::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT /*nCtlColor*/)
{
m_brushBkg.DeleteObject();
m_brushBkg.CreateSolidBrush(m_clrBackground);
pDC->SetTextColor(m_clrText); //设置文字颜色
pDC-...
C#科学计数法转换decimal出错 - .NET(C#) - 清泛IT论坛,有思想、有深度
...fic = decimal.Parse("2.1021E-05")
执行发生异常:“未经处理的异常: System.FormatException: 输入字符串的格式不正确。”
解决方法:
decimal scientific = decimal.Parse("2.1021E-05", System.Globalization.NumberStyles.Any);
C#科学计数法转换decimal出错 - .NET(C#) - 清泛IT论坛,有思想、有深度
...fic = decimal.Parse("2.1021E-05")
执行发生异常:“未经处理的异常: System.FormatException: 输入字符串的格式不正确。”
解决方法:
decimal scientific = decimal.Parse("2.1021E-05", System.Globalization.NumberStyles.Any);
C#科学计数法转换decimal出错 - .NET(C#) - 清泛IT论坛,有思想、有深度
...fic = decimal.Parse("2.1021E-05")
执行发生异常:“未经处理的异常: System.FormatException: 输入字符串的格式不正确。”
解决方法:
decimal scientific = decimal.Parse("2.1021E-05", System.Globalization.NumberStyles.Any);
C#科学计数法转换decimal出错 - .NET(C#) - 清泛IT论坛,有思想、有深度
...fic = decimal.Parse("2.1021E-05")
执行发生异常:“未经处理的异常: System.FormatException: 输入字符串的格式不正确。”
解决方法:
decimal scientific = decimal.Parse("2.1021E-05", System.Globalization.NumberStyles.Any);
C#科学计数法转换decimal出错 - .NET(C#) - 清泛IT论坛,有思想、有深度
...fic = decimal.Parse("2.1021E-05")
执行发生异常:“未经处理的异常: System.FormatException: 输入字符串的格式不正确。”
解决方法:
decimal scientific = decimal.Parse("2.1021E-05", System.Globalization.NumberStyles.Any);
C#科学计数法转换decimal出错 - .NET(C#) - 清泛IT论坛,有思想、有深度
...fic = decimal.Parse("2.1021E-05")
执行发生异常:“未经处理的异常: System.FormatException: 输入字符串的格式不正确。”
解决方法:
decimal scientific = decimal.Parse("2.1021E-05", System.Globalization.NumberStyles.Any);
