当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: ´ 以下代码放在标准模块里,模块名 mSmartS
 

 

 ·深入quickreport(一)    »显示摘要«
    摘要:深入quickreport(一) 作者:董维春 (本文已在《csdn开发高手》04年第一、二、三期上发表,应广大网友的要求,经编辑同意,发表在csdn作者本人文档中,略有修改,但仅即于此,未经csdn或作者本人同意任何个人与网站不得转载、摘抄,否则任何涉及到版权的行为后果自负) 报表是数据库应用程序的基本组成部分之一,完整的数据库应用程序总要提供报表功能。与传统的数据库应用程序设计工具相比,c++ builder中提供了quickreport组件,使c++......
 ·动态生成java代码(二)    »显示摘要«
    摘要:/* * 创建日期 2004-7-2 * 创建人 hongsoft * 文件名 testcompile.java */package com.hongsoft.test; import java.io.*; //定制的类装入器public class testcompile extends classloader{ string _compiler; string _classpath; public static void main(string[] a......


一份很有价值的子类化的源代码!

´ 新建一个 activex dll 工程,名称 smartsubclasslib

´ ---------------------------------------------------- 【相关文章:经典人生故事 2

´ 以下代码放在标准模块里,模块名 msmartsubclass 【扩展阅读:必须认清楚BLOG的两个方向?

´ module msmartsubclass 【扩展信息:在 Linux 下编译 lame-3.9

´

´ version... 1.0

´ date...... 24 april 2001

´

´ copyright (c) 2001 andr閟 pons (andres@vbsmart.com)

´ ----------------------------------------------------

´api declarations:

option explicit

public const ssc_oldproc = "ssc_oldproc"

public const ssc_objaddr = "ssc_objaddr"

private declare function getprop lib "user32" alias "getpropa" ( _

    byval hwnd as long, _

    byval lpstring as string) as long

private declare sub copymemory lib "kernel32" alias "rtlmovememory" ( _

    destination as any, _

    source as any, _

    byval length as long)

´

´ function startsubclasswindowproc()

´

´ this is the first windowproc that receives messages

´ for all subclassed windows.

´ the aim of this function is to just collect the message

´ and deliver it to the right smartsubclass instance.

´

public function smartsubclasswindowproc( _

    byval hwnd as long, _

    byval umsg as long, _

    byval wparam as long, _

    byval lparam as long) as long

    dim lret as long

    dim osmartsubclass as smartsubclass

    ´get the memory address of the class instance...

    lret = getprop(hwnd, ssc_objaddr)

   

    if lret <> 0 then

        ´osmartsubclass will point to the class instance

        ´without incrementing the class reference counter...

        copymemory osmartsubclass, lret, 4

       


...   下一页
 ·the programming language tips    »显示摘要«
    摘要: 公司内部例会讲稿 tips click below to go directly to a specific section: 重载与重写 | 静态构造函数 | 只读代理 同步代理 | 资源管理 | 内存管理 重载与重写 问题 日常讨论中,术语的不统一带来些许混乱 惯用的表达 overload 重载 函数名称相同,参数不同(严格的定义还有其它一些限制) 静态决议 override 重写(覆写,覆盖,改写) 子类重新定义父类定义过的虚函数(个别语言允许返回......
» 本期热门文章:

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