上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 37 下一页
摘要: declare @str as nvarchar(50)set @str = N'.0.1.1001.2002.3.204.5.106.'declare @str_tmp as nvarchar(30)declare @index as intdeclare @str_len as intselect @str_len=LEN(@str)select @index=CHARINDEX('.',@str, 1)if @index = 1set @str = RIGHT(@str, len(@str) - 1)if RIGHT(@str, 1) = '.&# 阅读全文
posted @ 2013-03-06 13:52 袁晓平 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 通过使用unity容器,从配置文件里读取配置,解析出一个接口的实现,或在程序里指定一个接口的实现:1、先建一个项目,名字为ClassLibrary,里面有ILogger.cs Logger.csLogger.cs:using System;using System.Collections.Generic;using System.Linq;using Microsoft.Practices.Unity;using System.Text;namespace ClassLibrary{ public class TextLogger : ILogger { ... 阅读全文
posted @ 2012-12-11 22:54 袁晓平 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 项目里只需引Microsoft.Practices.EnterpriseLibrary.Data.dll就可以配置:<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, 阅读全文
posted @ 2012-12-10 11:51 袁晓平 阅读(402) 评论(0) 推荐(0) 编辑
摘要: <%-- Name:Author: Description: --%><%@ CodeTemplate Language="C#" TargetLanguage="Text" Src="" Inherits="" Debug="False" CompilerVersion="v3.5" Description="Template description here." %><%@ Register Name="Enti 阅读全文
posted @ 2012-12-07 22:31 袁晓平 阅读(224) 评论(0) 推荐(0) 编辑
摘要: <%@ CodeTemplate Language="C#" TargetLanguage="T-SQL" Debug="true" CompilerVersion="v3.5" Description="" %> <%@ Assembly Name="SchemaExplorer" %><%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema& 阅读全文
posted @ 2012-12-05 20:48 袁晓平 阅读(371) 评论(0) 推荐(0) 编辑
摘要: <%@ CodeTemplate Language="C#" TargetLanguage="T-SQL" Debug="true" CompilerVersion="v3.5" Description="" %> <%@ Assembly Name="SchemaExplorer" %><%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema& 阅读全文
posted @ 2012-12-05 20:47 袁晓平 阅读(274) 评论(0) 推荐(0) 编辑
摘要: <%@ CodeTemplate Language="C#" TargetLanguage="T-SQL" Debug="true" CompilerVersion="v3.5" Description="" %> <%@ Assembly Name="SchemaExplorer" %><%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema& 阅读全文
posted @ 2012-12-05 20:32 袁晓平 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 打开qtcreator,新建一个项目,然后加一个头文件及源代码文件,如下:QtHttp.h:#ifndef QTHTTP_H #define QTHTTP_H #include <Qt/QObject.h> #include <Qt/qhttp.h> #include <QtCore/QString> #include <QtDebug> #include <Qt/qbytearray.h> class QtHttp : QObject { Q_OBJECT public: QtHttp(); virtual ~QtHttp(); p 阅读全文
posted @ 2012-12-02 17:24 袁晓平 阅读(336) 评论(0) 推荐(0) 编辑
摘要: qt相关的类里面加了些非c++标准的代码,所以需要在编译前将这些代码转换为标准的c++代码,可以运行如下命令生成,然后将生成的文件加入到项目里编译 /libs/qt4ios/developer/qt4ios/qt-everywhere-ios-gles2-4.8.1/bin/moc /Source/myapp/myapp/widget.h -o /Source/myapp/myapp/widget_p.mm 阅读全文
posted @ 2012-11-26 22:09 袁晓平 阅读(469) 评论(0) 推荐(0) 编辑
摘要: http://qt-project.org/forums/viewthread/16560http://mediator-software.com/http://www.qt-iphone.com/Introduction.htmlhttp://qt.gitorious.org/+qt-iphone/qt/qt-iphone-clonehttps://twitter.com/Qt4iOS 阅读全文
posted @ 2012-11-24 22:46 袁晓平 阅读(395) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 37 下一页