char str[128]={0};
strcpy(str,"根节点");
HTREEITEM hRoot=m_treeDeviceList.InsertItem(str,0,0,TVI_ROOT);
HTREEITEM hChild1=NULL;
HTREEITEM hChild11=NULL;
在插入根节点后就没有,就跳出去了,如果在HTREEITEM hDevice=NULL;地方插入断点则会出现
"One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program"我在网上找了一下,改了设置,又重建了,但是还是不能调试,还是现实以上的信息。是怎么回事?是不是InsertItem()的问题?
strcpy(str,"根节点");
HTREEITEM hRoot=m_treeDeviceList.InsertItem(str,0,0,TVI_ROOT);
HTREEITEM hChild1=NULL;
HTREEITEM hChild11=NULL;
在插入根节点后就没有,就跳出去了,如果在HTREEITEM hDevice=NULL;地方插入断点则会出现
"One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program"我在网上找了一下,改了设置,又重建了,但是还是不能调试,还是现实以上的信息。是怎么回事?是不是InsertItem()的问题?
{
m_treeDeviceList.DeleteAllItems();
char str[128]={0};
strcpy(str,"根节点");
HTREEITEM hRoot=m_tree.InsertItem(str,0,0,TVI_ROOT);
HTREEITEM hChild1=NULL;
HTREEITEM hChild11=NULL;
CString strTemp=_T("");
CString strChanTmp=_T("");
int i=0;
int j=0;
HTREEITEM hDevice=NULL;
HTREEITEM hChan=NULL;
for()
……
}
后边就是其他的东西了,一个循环,