如何样给父窗口的结构体的变量赋值呢
怎么样给父窗口的结构体的变量赋值呢
在父窗口(CRdlg)中有结构体
struct Thread{
CString Times;
}gt;
然后在子窗口中,我用
((CRdlg*)m_pParentWnd)-> gt.times=tim;
的方式来赋值提示错误。unresolved external symbol 。。。。。。。。关于gt的什么。。我发现我写代码gt打旁边的那个点的时候它的变量也不自动出来。不知道问题出在什么地方。
请朋友们提示~~或者这种方法错在什么地方,什么方法比较好,也能达到目的呢。
------解决方案--------------------
父对话框
struct Thread{
CStringTimes;
}gt;
gt m_gt;
子对话框:
((CRdlg*)m_pParentWnd)-> m_gt.times=tim;
------解决方案--------------------
struct Thread{
CStringTimes;
}gt;
这个要是public
在父窗口(CRdlg)中有结构体
struct Thread{
CString Times;
}gt;
然后在子窗口中,我用
((CRdlg*)m_pParentWnd)-> gt.times=tim;
的方式来赋值提示错误。unresolved external symbol 。。。。。。。。关于gt的什么。。我发现我写代码gt打旁边的那个点的时候它的变量也不自动出来。不知道问题出在什么地方。
请朋友们提示~~或者这种方法错在什么地方,什么方法比较好,也能达到目的呢。
------解决方案--------------------
父对话框
struct Thread{
CStringTimes;
}gt;
gt m_gt;
子对话框:
((CRdlg*)m_pParentWnd)-> m_gt.times=tim;
------解决方案--------------------
struct Thread{
CStringTimes;
}gt;
这个要是public