谁有MFC的视屏教程啊

谁有MFC的视屏教程啊,第1张

给你一堆,挑几个喜欢的吧!

钱能 c++程序设计教程 第二版 高清PDF版

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=166018

Essential C++ 中文版+英文版 侯捷译

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=167578

C++高级编程参考手册

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=145562

C++ Primer 第三版

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=145858

More Effective C++ 简体中文版

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=146871

Sams出版 C++ Unleashed

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=163617

C++ GUI Programming with QT4

http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146734

Visual C++ 6傻瓜书 快速参考

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=173217

Visual C++ 6.0 编程实例与技巧(PDF中文版)

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=173210

Visual C++ 21天自学教程

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=173174

跟我学Visual C++ 6

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=174442

Visual C++ 6 数据库编程 21天自学教程 CHM

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=173173

The C++ Programming Language 第三版

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=175018

Special Edition Using Visual C++ 6

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=173171

Professional MFC with VC 6

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=166005

Practical C++ Programming

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=173744

Cross-Platform Development in C++

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=174168

Iterative UML Development Using VC++ 6

http://bbs.topsage.com/dispbbs.asp?boardID=124&ID=174831

Ace Programmer's Guide

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=174449

Visual C++高级界面特效制作百例

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=168630

精通GDI+编程 清华大学出版

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=170571

孙鑫C++视频教程 rmvb格式 全20CD完整版

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=156290

中山大学蔡培兴 C++语言视频教程 全51讲 精品推荐

http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=158073

给你个实例 只是一部分 应该有你要的全部东西了 至于变量与控件关联,用一下VC6.0的winzard就 会明白了快捷键 ctrl+w

//////////////cpp部分

BOOL Subjectdlg::OnInitDialog()

{

CDialog::OnInitDialog()

// TODO: Add extra initialization here

CString sqlStr

sqlStr="SELECT * FROM tb_subject"

mysubjectset = new Subjectinfo(&((CStudentsysApp*)AfxGetApp())->m_DB)

if(!mysubjectset->Open(AFX_DB_USE_DEFAULT_TYPE,sqlStr)) //打开数据表

{

AfxMessageBox("tb_subject表打开失败!")

}

return TRUE // return TRUE unless you set the focus to a control

// EXCEPTION: OCX Property Pages should return FALSE

}

bool Subjectdlg::DisplayRecord()

{

if(mysubjectset->IsEOF()&&mysubjectset->IsBOF()) //判断是否移动到了开头和结尾

{

m_subjectname = ""

m_subjectid = ""

}

else

{

if(mysubjectset->IsBOF()) //移动到了开头,就向后移动

{

mysubjectset->MoveNext()

}

else //否则前移

{

if(mysubjectset->IsEOF())

{

mysubjectset->MovePrev()

}

}

}

m_subjectname = mysubjectset->m_subject//对应变量赋值

m_subjectid = mysubjectset->m_code

UpdateData(FALSE)

return TRUE

}

////////////那几个指针

Subjectinfo* mysubjectset

Subjectinfo* mysubjectset_find

Subjectinfo* myclass_subject_findref

///////////

subjectinfo是连接数据源的那个类


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/9923867.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-03
下一篇 2023-05-03

发表评论

登录后才能评论

评论列表(0条)

保存