Blogs
Delphi XE3 的八卦
Submitted by hubdog on Sat, 2012-08-18 12:18http://www.deltics.co.nz/blog/?p=1047
没有IOS支持
没有真的Win8支持,只是界面模仿
也就是说编译出来的程序没法在Windows App Store里面卖(据说这个所谓Win8支持是用4个礼拜外包给一个公司完成,因为64bit C++ Compiler无法交付,EMB为了填补Features,让XE3显得好看些)
据说IOS支持会在2013年的1季度出一个框架,不知道说的是不是ARM编译器
从我看到的XE3 What is New,应该说更像是XE2 Update5.
GDataXMLDocument使用XPath查询带有名字空间的XML
Submitted by hubdog on Thu, 2012-08-02 02:23参见http://matthewcarriere.github.com/
当xml中使用了名字空间之后,我们的XPath查询语句必须包含名字空间,GDataXMLDocument默认会将名字空间注册为_def_ns
对于有名字空间的查询的要写成下面的形式。
NSArray* entries = [doc nodesForXPath:@"/_def_ns:playlist/_def_ns:trackList/_def_ns:track" error:&error];
对于Fork的Repository 最佳的合并策略
Submitted by hubdog on Mon, 2012-07-30 11:15git pull --rebase upstream master
解决冲突后
git rebase --continue
让MacPort创建I386的library
Submitted by hubdog on Mon, 2012-07-16 22:04
The solution is to tell Macports to build universal binaries. This can be done by adding +universal
to the command line, for example:
sudo port install jpeg +universal
A more general solution is to add this “variant” to the Macports config. Simply add +universal
to the file /opt/local/etc/macports/variants.conf
. The file is read-only, even for root, so make sure to force-write the file (:wq! in vi).
And if you want to rebuild everything universal, sledgehammer approach:
C++ Builder 2040 Declaration terminated incorrectly错误的解决办法
Submitted by hubdog on Thu, 2012-07-12 23:46将出错的地方添加 {$EXTERNALSYM xxx}指令,让头文件不生成相应的定义
const
{$EXTERNALSYM EDEADLOCK}
EDEADLOCK = 36 ;
Delphi 组件在C++Builder中不显示的问题
Submitted by hubdog on Thu, 2012-07-12 22:49在编译Delphi组件时,我们需要设置Delphi Compiler Option的C/C++ Output的C/C++ Output file generation 为Generate all C++Builder files (including package libs)。
C++ Builder Mac OSX的问题
Submitted by hubdog on Thu, 2012-07-12 16:54function avutil_version() :Cardinal;
cdecl; external av__util;
即便上面的代码根本没有被用到,C++ Builder Mac OSX上编译时会报错,报告unresolved external xxx的错误,Windows上就没有这个问题,只好把没用的代码都注释掉
gmail中使用邮件模板
Submitted by hubdog on Sun, 2012-07-08 23:46登录进帐号后,点击settings菜单,然后选择 Lab页,将Canned Responses这个插件设为可用.