Kanrong's profileCode memoBlogListsNetwork Tools Help

Blog


    January 11

    error MIDL2025 : syntax error : expecting ] or , near "annotation"

    13>C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\unknwn.idl(108) : error MIDL2025 : syntax error : expecting ] or , near "annotation"
    13>C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\unknwn.idl(108) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation
     
    在使用vs2005+Widows SDK时编译COM碰到上面错误,原来是只知道更新include files and library files了,Executable files也需要更新,因为最新的windows sdk里的idl文件需要使用自己带的midl complier了
    Tools->Project and Solutions->Vc++ Directories->Excuteable files
    C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\Bin
    C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin
    January 03

    Extensions for firefox

    最近从opera开始转用firefox,不过firefox速度那确实是比不上opera,就因为del.icio.us插件,才转投firefox阵营,把安装的插件记一下,免得重装时忘了
    0) Adblock plus
    #ChinaList: http://www.anetcity.com/adblock.txt
    #EasyList: http://easylist.adblockplus.org/adblock_rick752.txt
    1) All-in-one gesture
    2) del.icio.us Bookmarks
    3) Gmail Notifier
    4) FlashBlock
    5) Session Manager
    6) IE View Lite
    7) Gladder

    December 30

    Skills on Ubuntu

    How to control the state of services on Ubuntu?
    There are three ways to do this.
    1. Use script files in /etc/init.d/
    2. apt-get install bum
    3. apt-get install sysv-rc-conf

    How to play media files on Ubuntu?
    Mplayer is suggested, for it could use codecs from windows and could could play most types of media files.
    apt-get install mplayer mencoder
    apt-get install w32codes
    Set subtitle for mplayer, choose preferences->fonts from /usr/share/truetype/arphic/uming.ttf encoding(unicode), subtiltle&osd(cp936)
    December 26

    Ubuntu安装

    今天收到了Ubuntu社区邮寄过来的光盘,上次装了后老在gnome环境下死机,本来都放弃了,今天收到人家寄过来的免费光盘,回家不装一下,太对不起人了,不过还好终于让Ubuntu在自已机器上搞定了,庆祝一下,顺便记录一下安装注意点.
    1. 华硕的板载网卡不装华硕的驱动硬件地址会是FFFFFFFFFFFF,又没有LINUX下的驱动,只好手动改硬件地址了.
    ifconfig eth0 down
    ifconfig eth0 hw ether 0014781E44D4
    ifconfig eth0 up
    dhclient eth0
    2. 将/etc/apt/source.list下的一些源的注释给去掉,更新一下系统.
    apt-get update
    apt-get upgrade
    3. 重新安装nvidia驱动,以前就是因为这个一直死机,丫丫呸的.
    lspci | grep nVidia //先查看一下系统默认安装的驱动
    apt-get install linux-restricted-modules-386
    apt-get install nvidia-kernel-source //这个好像不是必须的
    apt-get install nvidia-glx //要安装的就是你啦
    nvidia-xconfig //再配置一下就好了
    再查看一下/etc/X11/xorg.conf下应该差不多就是下面这个样子了
    Section "Device"
    Identifer "..."
    Driver "nvidia"
    EndSection
    顺便去掉里面一些不需要的东西
    4. 安装facitx输入法,现在就是在用facitx输入啦,五笔用起来还凑合
    apt-get install facitx
    facitx
    5.哇好晚了,睡觉喽,明天再安装TP-LINK TL-WN321G的驱动
    November 28

    How to install input language pinyin in Ubuntu 6.10

    1. sudo apt-get install scim-pinyin im-switch
    or im-switch -s scim-pinyin

    2. restart GNOME
    CTRL+ATL+BACKSPACE

    How to install VMware tools under Ubuntu 6.10

    Since the version of VMware is 5.5.2 and ubuntu 6.10 has used xorg 7.1, the VMware tools will not work properly.

    1. Install the build environment
    sudo apt-get install build-essential linux-headers-`uname -r`

    2. Click the menu "Install VMware Tools" from VM. unzip the VMwareTools*.tar.gz
    tar zxf VMwareTools*.tar gz
    cd ~/Desktop/vmware-tools/distrib
    sudo ./vmware-install.pl

    In the process of installation, all choose yes except run vmware-config-tools.pl

    3. Patch the vmware-config-tool.pl
    wget http://mtnbike.org/vmware/vmware-config-tools-5.5.2-patch-diff.txt
    sudo chmod u+w /usr/bin/vmware-config-tools.pl
    sudo patch /usr/bin/vmware-config-tools.pl vmware-tools-config-5.5.2-patch-diff.txt
    sudo /usr/bin/vmware-config-tools.pl

    4. Set vmware-toolbox as auto start with system
    Menu -> System -> Sessions -> Startup Programs -> Add -> /usr/lib/vmware-tools/bin32/vmware-toolbox

    5. Reboot system