Harry's profileMusical LifePhotosBlogListsMore Tools Help

Harry

Occupation
Location
欢迎进来盖楼哦 ^_^
Please wait...
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.
Harrywrote:
只需直接把传入参数改了就可以了 :) 
 
不过前两天又试了一棵2500多节点的树,效果好像未如理想,应该会有更好的方法。
Sept. 8
No namewrote:
猫兄,你的 "一种较为高效的TreeList生成算法"能不能改用TADOQuery来做,
TADODataSet没有TADOQuery方便哦,弄好的话,发给小弟一个Risexiao@163.com
Sept. 2
Harrywrote:
感谢vos老前辈前来指导... orz
July 18
你貌似出現在俺的朋友列表裏...
俺看到你了-_-
俺也是VOS的老玩家的說
July 15
Harrywrote:
楼主我占了....
May 20
欢迎光临 ^_^

Musical Life

2009年感觉真的是很混乱的一年... 唉...

 从年头到年中再到年末都是这样,唉,经历了不少的事情。有好的,有不好的,有工作的,也有生活的。活了26年,从来没试过这么有感触。不过我想无论是好是坏,每件事情都是人生的一段宝贵经历,人总是要经历事情才能学到新的东西。从这点来说,我也有点希望这年不要那么快过,因为我还想多学点东西。当然,谁都希望生命中多点好事少点坏事。反正坦然面对一切事情吧,天将降大任于斯人也,必先苦其心志。
 
 另外感觉要继续加强下自己的口头表达能力吧。感觉自己真的是太重视思考,太重视内心的感觉了,所以总希望身边的人能懂得自己的真正想法。这种习惯用在生活中可能有点吃亏吧,因为不总是谁都能看懂自己,所以要想办法让别人明白自己。有时空有想法,如果说不出来,说错了,说对了别人不理解,甚至理解错了,都是非常郁闷的事情。
 
 很快这一年就过去了。明天工作上将会迎来新的机会,一定要好好把握,一扫今年的衰气。坚定方向,不再象今年那样迷惘!
 
 还有就是如之前所说的了,一定找回激情,我还没老啊啊啊啊啊啊啊....啊....啊.......啊

唉,要重新寻找自我才行

 感觉这一年做项目做得自己都麻木了,有时都有点浑浑噩噩的感觉,状态也不如前两年好。要想办法重新找回激情才行,例如多找点自己感兴趣的、有意思的事来做。要知道搞这行没了激情是件很可怕的事情,因为会很容易就感觉到累。

获取计算机中的MIDI软波表(MIDI输出端口)

 首先要下载DirectX的接口声明文件,具体下载地址应该很容易在网上找到。这里主要用到了DirectX中的IDirectMusic接口:


unit MySynthesizers;

interface

uses
 Classes, SysUtils, DirectMusic, ActiveX; 

 procedure GetSynthesizers(AList: TStrings);

implementation

procedure GetSynthesizers(AList: TStrings);
var
 i: Integer;
 APortInfo: TDMusPortCaps;
 DxMusic: IDirectMusic;
begin
 i := 0;
 AList.Clear;
 CoCreateInstance(CLSID_DirectMusic, nil, CLSCTX_INPROC, IID_IDirectMusic2, DxMusic);

 //以下这句很关键,开始就是由于设少了个size,导致死活拿不到正确结果
 APortInfo.dwSize := SizeOf(APortInfo); 

 while DxMusic.EnumPort(i, APortInfo) = S_OK do
 begin
  if APortInfo.dwClass = DMUS_PC_OUTPUTCLASS then
   AList.Add(APortInfo.wszDescription);

  inc(i);
 end;
end;

initialization
 CoInitialize(nil);

finalization
 CoUninitialize;

end.

加班的日子暂告一段落了

  就趁稍有时间,赶紧把上半年的计划提回来做吧,浪费时间就不好了。

我也希望我的天空一直下雨

 忽然很羡慕《交响乐之雨》中的库里斯,因为他每天都可以看到雨,感受到雨。仅以此记下今天的心情。