代码改变世界

阅读排行榜

Silverlight中xaml之间的跳转方案之一

2012-10-29 23:39 by hongjiumu, 332 阅读, 收藏,
摘要: 1,先在Silverlight项目中新建一个接口文件IContent.cs,内容如下:using System.Windows;namespace BookStore { public interface IContent { UIElement Content { get; set; } }} 2,建立两个xaml文件:Second.xaml和SilverlightControl1.xamlSilverlightControl1.xaml的完整内容如下:<UserControl x:Class="SilverlightApplication1... 阅读全文

VC知识库

2013-09-09 19:25 by hongjiumu, 329 阅读, 收藏,
摘要: VC知识库http://www.vckbase.com/index.php/code 阅读全文

C#类型转换2

2012-09-15 16:55 by hongjiumu, 322 阅读, 收藏,
摘要: namespace WDBuyNET.DMSFrame.Utils.Helpers{ public static class TypeHelper { public static object ChangeType(Type targetType, object val) { object result; if (val == null) { result = null; } else { ... 阅读全文

new placement 的使用

2014-01-18 21:27 by hongjiumu, 316 阅读, 收藏,
摘要: #include #include "TModel.h" int main() { char * p_char=new char[100]; std::coutShow(); delete pTModel; //The Second Part. TModel * pTModel2=(TModel *)(new char[sizeof(TModel)]); //If omitted, //at std::coutShow(); delete pTModel2; getchar(); ... 阅读全文

LPCTSTR

2014-01-18 21:21 by hongjiumu, 316 阅读, 收藏,
摘要: #include #include int main() { LPCTSTR lpCChar; LPSTR lpStr="Hello"; int sizeNeeded = MultiByteToWideChar(CP_UTF8, 0, lpStr, -1, NULL, 0); wchar_t* decodedStr = new wchar_t[sizeNeeded ]; MultiByteToWideChar(CP_UTF8, 0, lpStr, -1, decodedStr, sizeNeeded ); lpCChar=decod... 阅读全文
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 42 下一页