当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 星期六编程发现了Borland delphi7的几个错误。
 

 

 ·sqlserver2000的自定义聚合函数    »显示摘要«
    摘要: --和行转列的应用效果差不多了,统计结果中可能会用到--测试表create table test(f1 varchar(10), f2 varchar(10))--插入数据insert into test select jack f1,book1 f2unionselect jack f1,book2 f2unionselect jack f1,book3 f2unionselect mary ......
 ·delphi使用方法    »显示摘要«
    摘要: 1.存儲過程動態調用 sp_exec.parameters.clear; sp_exec.procedurename := sp_transto; sp_exec.parameters.createparameter(@mailid, ftstring, pdinput, 50, mailid); sp_exec.parameters.createparameter(@result, ftint......


Borland delphi7的几个错误
上一页   ... pointer to an array of handles of large icons returned. this parameter can be null.

phiconsmall 【程序编程相关:[感悟共享软件]第一章为什么我会开发TC

  【推荐阅读:delphi中将UCS2编码的字符串转化

pointer to an array of handles of small icons returned. this parameter can be null. 【扩展信息:基于Delphi的组件设计之概念

 

 

nicons

 

specifies the count of the number of icons to extract.

 

 

 

return values

 

if the function succeeds, the return value is the handle to an icon. if the file specified was not an executable file, dll, or icon file, the return value is 1. if no icons were found in the file, the return value is null.

 

在borland delphi7的shellapi.pas文件中却声明成这样:

{$externalsym extracticonex}

function extracticonex(lpszfile: pchar; niconindex: integer;

  var phiconlarge, phiconsmall: hicon; nicons: uint): uint; stdcall;

原型是hicon指针,borland直接声明成hicon.

如要使用这个函数只好重新声明.

给大家一个声明的例子:

type thiconarray = array[0..0] of hicon;

type phiconarray = ^thiconarray;

function extracticonex(lpszfile: pansichar;


...   下一页
 ·再说delphi的string类型    »显示摘要«
    摘要: delphi中string类型是个四不像的冬冬,以前有过无数的文章写它的实质,今天看aimingoo的书关于string类型和pe数据段的那些章节,有点感触就写了些代码测试,深感作者功底之深此外还有一点收获 var a1:string=1; a2:string=2;。。。。。。。。。。。。。a1:=a2;a2:=a1;全局变量这样之后才真正让引用计数=2聪明的你肯定知道为什么了^_^ ......
» 本期热门文章:

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