C#Emit动态代理类更新

10 四月 2010 In: DotNet, SQLReport, 软件行业
在前面的文章中,我犯了一个错误,导致在生成的实例无法被调试,这次修正了,代码如下:     #region Delegates     public delegate object InvocationDelegate(object target        , System.Reflection.MethodBase method        , object[] parameters)... [更多...]
以前对商业版本的DotNetBar无法割舍,后来换成了免费(不开源)的Krypton,一直对它的品质表示肯定,直到V4.1.5版本发布。 刚开始的时候,陶陶的机器上出现了问题,我还笑言,说是陶陶的D版VS2008企业版需要重新启动了,后来陶陶没有说,我也没问,直到我的机器也出现同样的问题,我试着重新启动VS,重启机器,效果依然,那就是Krypton的毛病了。 具体症状是,在添加引用,或者添加控件的时候,都没的问题,但是如果你重新打开以前创建的Form,问题就出现了,所有的Control都处理成Component了,具体表现在,所有的窗体对象,都被放在了地步Component区。这个问题我不知道... [更多...]
In this issue, I am going to show how to inject the byte-code at runtime using Javassist. Initial target In my team, we wrote some Java method to retrieve users information via Soap and CORBA, the Soap and CORBA libraries were generated by another team, we have no privilege to change the behaviors a... [更多...]
VisiFire组件,是我的最爱,最新更新、教程和下载,请在此处http://www.visifire.com/自己下载。 至于Winform集成WPF是技术的进步还是倒退,我不想多说,我个人认为,在执行效率上WinForm还是有些优势的,而且,界面的可控性比起WPF来说,相对容易一些。 废话少说,开工吧。 初始的原因是,我需要在系统中实现一套统一的图形展示平台,在Web上——包括我的JSP页面——我采用的是VisiFire,原因是,免费,而且,图形种类较多。所以我也想在Winform上面采用这个结构进行编写。 如果要集成WPF的VisiFire到Winform,应用程序需要做以下调整: D... [更多...]
不废话,直接到主题,小龙发现数据库不能启动,现状就是,在使用前面的两篇文章制作的精简版的时候,出现问题是:当程序在中文路径下运行,MySQL运行不起来。 经过检查,是程序中写INI文件的时候,编码方式使用的是默认的编码方式,根据操作系统而言,一般都是UTF8,从而使得BaseDir和DataDir的文本为乱码。MySQLD不能正确启动。 这个问题的解决方式很简单,在上一篇文章的代码中,修改如下代码 ShowMessage("重置数据库配置信息...");           &nbs... [更多...]

精简版MySQL制作(源代码篇)

24 二月 2010 In: SQLReport, DotNet, 软件行业
因为涉及到一些因素,而且整个包也太大了,我就不贴出所有的代码,只贴出部分代码。我使用了一个DLL来包容整个MySQL的包。这个DLL的功能如下: 能够自动安装MySQL,包括解压MySQL到本地目录 自动配置My.INI 自动注册Windows系统服务 系统服务名可以自定义 能够自动启动服务 能够自动停止服务 能够自动启动进程,非系统服务模式启动,提供显示MySQLd的DOS窗口和隐藏这个窗口的选项 能够停止进程,无论是系统服务模式启动还是进程模式启动。 制作过程如下: 找到附加库ICSharpCode.SharpZipLib 和 mysql.data.dll,自己找,网上多得很 按照前面... [更多...]

兼容Java和DotNet的AES加密算法

14 十二月 2009 In: 软件行业, SQLReport, JAVA, DotNet
最近在做Java和DotNet之间的互通,本着简单的原则,我不使用HTTPS对通道进行加密,所以采用的是自己加密所有的数据的处理方式,即使在这种情况之下,安全性不能被保证,但是基础的数据安全是可以了,毕竟是行业应用软件,试图破解的渠道比较少,而且数据针对性太强,没有太大的意义。 我的设计是: 几乎所有在Web服务和客户端之间的交互数据都进行加密,数字和日期除外 加密之后都生成BASE64编码,所以几乎所有的参数都是字符串 客户端和服务器共享同样的密码生成机制,一般是时间戳加上固定密码的格式,客户端和服务器都使用这个密码进行加密和解密。 传递的对象,先经过序列化之后,加密成Byte数组... [更多...]

动态添加控件的备注

9 十二月 2009 In: DotNet, SQLReport, 软件行业
众所周知,要添加控件到WinForm的Control中,首先是目标控件必须是容器控件,例如Panel和GroupBox,然后新建控件,然后调用Control.Controls.Add/Insert/AddRange即可,这没有什么蹊跷和争论的地方,但是要实现细微的调整,则比较复杂一些。 我的目标是要实现动态添加参数的输入框到界面上,并且可以收集这些输入的值,具体的要求是: 每个输入控件(例如文本框、日期选择框、下拉列表等等)都要有一个说明的Label在前面,形成一个组。 每个组按照顺序依次的排列,组元素(Label和输入控件)需要对其,目前采用的是纵向单列排列,每组一行。 组内的输入控件可以... [更多...]
jSoapServer is a open source embedded Soap Server in java, the source code and lasted version could be got from http://jsoapserver.sourceforge.net. The newest version of it is 0.2.8. After downloaded, you may like to run the server to check what it done and how it looks, the start scripts are stored... [更多...]

开发的几点备注

22 十一月 2009 In: DotNet, JAVA, SQLReport, 似水年华
只是几点备注,整理到一起来,避免忘记了 Krypton中的Button当边框太小的时候,就会出现无法显示的错误,解决的办法就是设置Button的AutoSize属性为真,KryptonButtonAutoSize Issue Krypton的中文输入法存在问题,需要手工设置全角和半角,最好的办法是设置空间的IMEMode为一个支持半角的输入法,KryptonToolkit TextBox不能输入中文 Krypton的显示风格可以从代码中取得 m_colorSelected = KryptonManager.CurrentGlobalPalette.G... [更多...]
又是一个忙碌的周末,难怪有才在说要请我吃饭要看我有没有时间。周末二哥从马庙上来,说了一个消息,敖家中学的H1N1事件,喝酒的时候我说没看到,二哥说不可能,逐级上报,百多人都被隔离,这事没法隐瞒,我笑笑,回家我查了一下,没得问题,在教育局网站上能看到那条消息,今天已经换成了9月中旬的通报了,呵呵,这下子没得话说了,Google不出来了。 回到标题。 不得不说,ComponentFactory的Krypton组件的确是非常优秀的组件,关键是,免费啊。 在一个产品中,测试人员总说按钮不能显示文本,我一直都是使用加宽按钮来实现,但是昨天在王总的机器上测试的时候,出现无法显示的问题,直接傻眼,都不知道为... [更多...]
All source code is available at http://code.google.com/p/sqlreport/. As I mentioned, I failed to integrate SQLReport’s Java source code with C#  using Ja.Net.  So it embarrassed that I have to port all Java source code into C#, here is no good way to do it, I have to port the source code f... [更多...]
In the preceding article(http://www.loveayang.com.cn/post/2009/10/26/Embedded-Sqlitee28099s-Date-type-in-Java-and-DotNet.aspx) , I mentioned that the difference of Date Time in SQLite embedded version of DotNet and Java, I have not give out the solution, here is the solution for Java and DotNet. You... [更多...]
  All of the following content were digested from http://www.visifire.com/blog/2009/10/16/step-by-step-breakdown-of-visifire-rendering-logic/comment-page-1/#comment-3973 Introduction Since the release of Visifire, we have got a lot of positive response from users on the simplicity, looks, cus... [更多...]
I found two bugs in the standard version of bam.exe which provided by Ja.Net, the symptoms is: When merging any assemblies as “bam cvf a.dll *****”, if there is no folder information for the target assemble name (“a.dll”), the bam.exe will throw a null-pointer except... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Pr... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]

SqlReport documentation: Users Model

16 九月 2009 In: JAVA, SQLReport, 软件行业
Users, who using the SQLReport engine to retrieve data from data sources and view the results, are necessary in the report system. The users information which class name is “ReportUserWrapper”, can be used in: Some reports are private report, only the users registered in the sys... [更多...]

About Jeason Zhao

Jeason,蜀人,才高三斗,学富一箱。自比子建,放荡不拘行迹,豪语难晓天高;不敢自诩风流,任人笑我痴狂。不欲仕途,个性使然。所到之处,三言不尽,五言难足,鸡飞狗跳盖矣。谓蜀者,鼠也!