Archive for October, 2007

Disabling Internet Explorer Enhanced Security Configuration

Tuesday, October 30th, 2007

Disabling Internet Explorer Enhanced Security Configuration
Preface:
Windows Server 2003 shipped with security locked down by default.  Part of this locking down is Internet Explorer Enhanced Security which is an extra layer of protection when surfing the internet using Internet Explorer (more information can be found by going here on a Windows Server 2003 [test] machine).  Some [...]

Resolve a GDI issue of Vista

Sunday, October 28th, 2007

I meet the issue on both Vista and XP. When I open several windows (maybe 10),  the system begins to show problem. The context menu cannot open or any new GUI program cannot run etc.
I did a search today and found many people met this issue.  A recommended fix is below:
 To make this change, navigate [...]

PHP XMLRPC library

Saturday, October 27th, 2007

Recently I played with php xml rpc library. My main goal is to post articles from php to wordpress blog.
There are a lot of implementation on the web.
First I tried the one on sourceforge.
http://phpxmlrpc.sourceforge.net/
I use the library to develop method to post a new articles or edit an existing article on a wordpress blog.
The sample [...]

FAQ: How do I register the Audio record component?

Saturday, October 27th, 2007

How do I register the component?
Answer: Once you buy the component, a registration code will be sent to you by email. After creating an object instance of Active Audio Record in your favorite programming languages, calling the SetCode method with the code you got by email before recording. In this way, every limitation in trial [...]

Install php, mysql and phpMyadmin on Vista IIS7

Saturday, October 20th, 2007

Today I tried to install php, mysql and phpMyadmin on Vista IIS7. After several hours, I finally got it through.
Here are some tips:
1. Download latest php, mysql from their website
 I use php 5.2.4, mysql 5.0,.
2. Install IIS service on Vista by adding Windows features. Note that, you need to choose the IIS components ISAPI etc [...]

Registering DLL and ActiveX controls from code

Saturday, October 20th, 2007

From http://delphi.about.com/od/windowsshellapi/l/aa040803a.htm
 
Registering DLL and ActiveX controls from code 
 
How to register (and unregister) OLE controls such as dynamic-link library (DLL) or ActiveX Controls (OCX) files from a Delphi application. 
 
 
 
 
One of the features that make Delphi so popular is that when it comes to project deployment, you as a developer (in most cases) only need to send [...]

Tips: get the filename of current exe file or dll

Wednesday, October 3rd, 2007

It is good to keep some programming tips we used.
To get the filename of the application, most of the time you can call:
sFileName := Application.ExeName; // or sFileName := ParamStr(0);
Perhaps you are working on a DLL and are interested in the filename of the DLL rather than the filename of the application, then you can [...]

Capture image in an existing webbrowser control

Monday, October 1st, 2007

Htmlsnapshot can capture image of an existing webbrowser control and save it into jpg, bmp, gif, png etc.
You need to pass the object instance of the webbrowser control (IDispatch in C++).
In VB6, you can do it like below:
     Dim snap1 As HtmlSnap2.CHtmlSnap
     Set snap1 = CreateObject(“HTMLSNAP2.HtmlSnap.1″)
     snap1.SnapWebBrowser WebBrowser1.Object, “c:\web.bmp”
     snap1.Clear
We also provide C# demo with [...]