当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·简单问题。    »显示摘要«
    摘要: string num = request.getparameter("num");//从上页传来的变量 int mynum =5;//这个就可以 int mynum =integer.parseint(num);//这么写就报错 string[] start_ip =new string[mynum];; 为什么? ......
    摘要: 还有里面的时间显示到秒,请问怎么把秒去掉? ......


在mfc中如何使用extern和external

在mfc中如何使用extern和external,我想知道如何在CView类中定义了一个变量,如何在CDoc中调用

NO.1   作者: cxjlw

1,在CView的   cpp文件中的函数外面进行如下定义:  
  int   a;  
   
  2,在某个地方进行初始化,如CView的构造函数中。或者将上面的定义写成  
  int   a=100;  
   
  3,在CDoc的要使用这个变量的函数中,写下如下代码:  
    extern   int   a;  
   
 

NO.2   作者: falawang

external  
   
  --------------------------------------------------------------------------------  
   
  Description  
   
  Allows   access   to   an   additional   object   model   provided   by   host   applications   of   the   Internet   Explorer   browser   components.   In   a   hosting   scenario   where   it   is   available,   the   object   model   is   defined   by   the   application   hosting   the   Internet   Explorer   components,   and   the   hosting   application   should   be   referred   to   for   documentation.   For   further   details   on   how   to   implement   extensions   to   the   object   model,   see   the   SDK   documentation   on   "Reusing   the   WebBrowser   and   MSHTML."    
   
 


 ·在添加数据时保存和取消操作    »显示摘要«
    摘要: 请问,在一个窗体中有几个textbox,这些textbox绑定了数据源 textbox1.databindings.add("text",dataset.tables!表名,"字段名") textbox2...................................................... .........................
» 本期热门文章:

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