摘要:在虚拟机上面将ubuntu10.04 升级的到11.04,重启后出现“Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.”错误,经过查阅资料,解决过程如下:首先,我的ubuntu11安装在/dev/sda1(hd0,1)进行如下设置:set root=(hd0,1)linux /vmlinuz root=/dev/sd
阅读全文
摘要:在C++/CLI中修改VC++的framework版本,由于VS2010不支持像C#项目文件的那种直接的下拉框模式,我们需要在.vcxproj文件中修改目标版本(TargetFrameWorkVersion),具体操作如下:1.如果采用vs的IDE来修改,需要先把你要修改的项目工程unload,然后右键,选中“Edit”目标项目,在ProjectGuid下面添加你需要的版本,如下图:其中IDE...
阅读全文
摘要:C#调用C++/CLI 的代码中,C++的代码总不能跟踪。其中我的C#是新代码,而C++则是同事发给我的现在程序中已经使用的代码。我现在要做到就是把C++的大部分东西推到重来。由于进度紧张,连C++的项目文件都没有没有改,这导致浪费了一整天的时间。在debug的状态下,查看Modules的信息,发现那个C++总是调用别人的dll,而symbol file里面的信息也不是我正在调试的pdb文件。郁闷,郁闷。。。在dll上面点击右键,加载symbol,总是说mismatch。!!!!咋回事??把module里面显示的路径改个名字,再看,竟然又到了改后的目录里面!!说明不是工程设置的错误。唉。。。两
阅读全文
摘要:Time for Decorator pattern:Use Espresso, DarkRoast and HouseBlend coffee as the ConcreteComponent, Soy, Mocha and Whip as the ConcreteDecorate.Here is the code:using System;namespace DecoratorPattern{ class Program { static void Main(string[] args) { Beverage beverage = new Espresso(); Console.Write
阅读全文
摘要:Being a good developer is like being any other good professional, it’s all it’s about doing as much quality work as possible. There is a popular sentence that summarises it: “Do it. Do it right. Do it right now”.1.- Have your own to do list for the day.The best approach to complete complex activitie
阅读全文