当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 好了,现在我们正式进入本主题,Lets go
 

 

 ·vc常见入门问题总结(三)    »显示摘要«
    摘要: 1. 如何改变窗口的图标?    向窗口发送 wm_section消息。   example:    hicon hicon=afxgetapp() ->loadicon(idi_icon);    assert(hicon);    afxgetmainwnd() ->sendmessage(wm_section,true,(lparam) hicon); ......
 ·vc快捷键:    »显示摘要«
    摘要: f1: 帮助 ctrl+o :openctrl+p :printctrl+n :newctrl+shift+f2 :清除所有书签f2 :上一个书签shift+f2 :上一个书签alt+f2 :编辑书签ctrl+f2 :添加/删除一个书签f12 :goto definitionshift+f12 :goto referencectrl+num+ :displays the next symbol ......


VC下的ADO编程入门(2-4)
好了,现在我们正式进入本主题,lets go

n          新建一个基于对话的应用程序zjy,在对话框上添加一个按钮与列表控件,并把列表控件的样式设置为报表视图,还有用classwizard给列表控件添加一个控件变量m_list 【程序编程相关:大数运算和RSA算法

  【推荐阅读:结构或大内存块打包的办法(下)

#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("eof","adoeof") 【扩展信息:VC调试技术小技巧(5)

n          在stdafx.h头文件中添加一条如下语句

n          在zjy.cpp开始处添加自动初始化com库的代码

struct initole

{

         initole(){::coinitialize(null);}

         ~initole(){::couninitialize();}

}_init_initole_;

n          在zjydlg.h中添加三个成员变量

         bool m_isconnectionopen;

         _connectionptr m_pconnection;

         _recordsetptr m_precordset;

n          在zjydlg.cpp的bool czjydlg::oninitdialog()的      return true;前面添加如下代码

// todo: add extra initialization here

         hresult hr;

         _bstr_t bstrquery("select * from customers");

         _bstr_t strconnect="provider=sqloledb; data source=127.0.0.1;initial catalog=northwind;";

         _variant_t vrecsaffected(0l);

        

         _variant_t vnull;

         vnull.vt=vt_error;

         vnull.scode =disp_e_paramnotfound;

 

         try

         {

                   hr=m_pconnection.createinstance(__uuidof(connection));

                   if(succeeded(hr))

                   {


...   下一页
    摘要: candidate lists a candidate list is a candidatelist structure consisting of an array of strings that specifies the characters or character strings that the user may choose from. you can retrieve the......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE