06 2012 档案
Ninject之使用类型名称注入
摘要:1、在namespace ClassLibrary下定义接口及实现的类:public interface IClass { void Hello(); } public class Class1 : IClass { public void Hello() { HttpContext.Current.Response.Write("Class1::Hello"); } } public class Class2 : IClass { public void Hello() { HttpContext.Current.Response.Write("Class2:: 阅读全文
posted @ 2012-06-29 11:27 袁晓平 阅读(186) 评论(0) 推荐(0)
sql server之触发器调用C#CLR存储过程实现两个表的数据同步
摘要:第一步:开启CLRsp_configure 'show advanced options', 1;GORECONFIGURE;GOsp_configure 'Ole Automation Procedures', 1;GORECONFIGURE;GOEXEC sp_configure 'show advanced options' , '1';goreconfigure;goEXEC sp_configure 'clr enabled' , '1'goreconfigure;-- Turn adva 阅读全文
posted @ 2012-06-13 17:54 袁晓平 阅读(1166) 评论(0) 推荐(0)
poco之HttpRequest之post方法
摘要:#import <iostream>#import <Poco/Net/HTTPClientSession.h>#import <Poco/Net/HttpRequest.h>#import <Poco/Net/HttpResponse.h>#import <Poco/URI.h>#import <Poco/Net/HTTPCredentials.h>#import <Poco/StreamCopier.h>#import <Poco/Net/HTMLForm.h>#import <Poco/ 阅读全文
posted @ 2012-06-10 15:40 袁晓平 阅读(5311) 评论(0) 推荐(0)
poco之HttpRequest之get方法
摘要:Poco::Net::HTTPClientSession s("www.cnblogs.com"); 需要引用的头文件是:#import <Poco/Net/HTTPClientSession.h>#import <Poco/Net/HttpRequest.h>#import <Poco/Net/HttpResponse.h>#import <Poco/StreamCopier.h>#import <Poco/Net/HTMLForm.h>#import <Poco/BinaryReader.h>#im 阅读全文
posted @ 2012-06-08 17:00 袁晓平 阅读(2112) 评论(0) 推荐(0)
为iphone及iphone simulator编译qt库
摘要:获取qt库,打开terminal,键入cd /Users/test/Downloads回车,git clone git://gitorious.org/+qt-iphone/qt/qt-iphone-clone.git 等待片刻,在当前目录会有一个目录qt-iphone-clone,进入目录,打开ios.txt,里面模拟器及真机的编译方法按照方法,键入./configure -xplatform iphonesimulator-g++42 -platform macx-ios-g++42 -opensource -ios -no-accessibility -no-qt3support -no 阅读全文
posted @ 2012-06-01 13:43 袁晓平 阅读(748) 评论(0) 推荐(0)