#!/usr/bin/env pythonimport wxclass DoubleEventFrame(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, 'Frame With Button', size=(300, 100)) self.panel = wx.Panel(self, -1) self.cc = 1 self.button = wx.Button(self.panel, -1, "Cli... Read More
posted @ 2014-03-23 07:06 findumars Views(4109) Comments(0) Diggs(0)
// DLL源代码 circle.dproj library circle; uses SysUtils, Classes, Math; {$R *.res} function CircleArea(const radius : double) : double; stdcall;begin res Read More
posted @ 2014-03-04 07:07 findumars Views(1274) Comments(0) Diggs(0)
真是膜拜Delphi C++ Builder编译器的作者们,要下多少苦功夫才能解决如此之多的问题,制造出一个神级作品给世人享用。另外以我的编程经验所能想到很麻烦但却是必须的还有两个地方,一个是Format函数,另一个是类型转换。有空看看FreePascal的源码可以略窥一二。其实我也是一个疯狂的政经... Read More
posted @ 2014-02-25 10:23 findumars Views(3256) Comments(0) Diggs(0)
别的没什么,是一定可以调用成功的。但是意外的是,ShowMessage函数在DLL里也可以轻易被调用。此外,Delphi里的var 相当于VC里的引用,需要在函数原型里正确标识,否则传递普通变量甚至常量是不行的。 VC++代码: Delphi代码(代码太多,只列举关键函数实现部分): 另外,VC里可 Read More
posted @ 2014-02-25 04:46 findumars Views(2345) Comments(0) Diggs(0)
GPL我 们很熟悉的Linux就是采用了GPL。GPL协议和BSD, Apache Licence等鼓励代码重用的许可很不一样。GPL的出发点是代码的开源/免费使用和引用/修改/衍生代码的开源/免费使用,但不允许修改后和衍生的代 码做为闭源的商业软件发布和销售。这也就是为什么我们能用免费的各种lin... Read More
posted @ 2014-02-20 07:57 findumars Views(66104) Comments(5) Diggs(9)