大约有 48,000 项符合查询结果(耗时:0.0714秒) [XML]
Visul C++中CList用法 - C/C++ - 清泛网 - 专注C/C++及内核技术
...g str1="hello";
CString str2="world";
CString str3="my";
CString str4="life";
list.AddTail(str1);
list.AddTail(str2);
list.AddTail(str3);
list.AddTail(str4);
POSITION pos = list.GetHeadPosition();
while(pos!=NULL)
{
CString data = list.GetNext(pos);
//do something
}
这样就...
MFC SysLink的使用方法 - C/C++ - 清泛网 - 专注C/C++及内核技术
...通知处理程序代码
PNMLINK pNMLink = (PNMLINK) pNMHDR;
if (wcscmp(pNMLink->item.szUrl, L"https://www.tsingfun.com") == 0)
{
// 主要执行语句
ShellExecuteW(NULL, L"open", pNMLink->item.szUrl, NULL, NULL, SW_SHOWNORMAL);
}
*pResult = 0;
}...
MFC中使用CSplitterWnd分割窗口后视图大小的问题 - C/C++ - 清泛网 - 专注C/C++及内核技术
...结果。
CSize sizeDummy;
m_wndSplitterH.CreateStatic(this, 2, 1);
if (!m_wndSplitterH.CreateView(0, 0, RUNTIME_CLASS(CGraphFrame), sizeDummy, pContext))
这时,你可以:
1、设置一下m_wndSplitterH的SetRowInfo属性函数,如:m_wndSplitterH.SetRowInfo(0,100,0);
(第...
MFC CEdit控件自绘、MFC圆角输入框 - C/C++ - 清泛网 - 专注C/C++及内核技术
...#include "MyEdit.h"
#include "../MemDC.h"
#include "../CommonFunc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
IMPLEMENT_DYNAMIC(CMyEdit, CEdit)
CMyEdit::CMyEdit()
{
//m_crText = RGB(40, 40, 40);
//m_crBorder = RGB(228,228,228);
m_clrBackground = RGB(255, 255, 255); //背景颜...
Android RoundRectShape圆角矩形使用详解 - C/C++ - 清泛网 - 专注C/C++及内核技术
...:RoundRectShape(float[] outerRadii, RectF inset, float[] innerRadii)Specifies an out...圆角矩形 常用作一些组件的背景
构造函数:
RoundRectShape(float[] outerRadii, RectF inset, float[] innerRadii)
Specifies an outer (round)rect and an optional inner (round)rect.// 指定一...
c++11 智能指针回调的经典场景 - C/C++ - 清泛网 - 专注C/C++及内核技术
...对象存在,如果本对象已释放,它的行为不确定。
if (myClient) {
myClient->Output();
} else {
std::cout << "!!!!client is already released!!!!" << std::endl;
}
std::cout << "client task end." << std::endl;
};
pool.commit(backtask);
}
};
void ...
onsubmit阻止表单提交 - 更多技术 - 清泛网 - 专注C/C++及内核技术
..." />
<script language="javascript">
//--->
function checksubmit()
{
if (document.form1.myname.value=="")
{
alert("请输入开始数值!");
document.form1.myname.focus();
return false;
}
return true;
}
//--->
</script>
...
php出现 Notice: Undefined index: xxx 的解决方法 - 更多技术 - 清泛网 - 专注IT技能提升
...好的办法是使用变量之前先检查变量是否存在,如:
if (isset($_GET['name'])&&!empty($_GET['name'])){
$name = $_GET['name'];
}
另外,还有其他几种解决方法供参考:
1、 修改 php.ini 文件中
error_reporting = E_ALL
为
error_reporting = E_ALL & ...
PHP 错误记录和聚合的平台Sentry实战 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...Client($dsn, $options);
while (($line = fgets(STDIN)) !== false) {
if (!preg_match("/{$pattern_content}/", $line, $match)) {
continue;
}
list($line, $timestamp, $level, $message) = $match;
$timestamp = gmdate('Y-m-d\TH:i:s\Z', strtotime($timestamp));
preg_m...
领域驱动设计系列(二):领域Model? - 更多技术 - 清泛网 - 专注C/C++及内核技术
... public void ChangeStatus(EmployeeStatus status)
{
if (this.EmployeeStatus == EmployeeStatus.Pending && status != EmployeeStatus.Active)
{
throw new Exception("Only can Active when status is pending");
}
this.EmployeeS...
