现在位置: 首页 > barbell发表的所有文章
  • 07月
  • 25日
综合 ⁄ 共 1574字 评论关闭
 最近遇到过静态库编译的一些问题 仅此记录下解决方法 1. 原工程为动态库工程,现应要求将其改编成静态库编译 首先新建了一个staticlib工程,将原来的。h.cpp 文件加入到该工程中, 这里比对了下 工程设置 staticlib 中多出一个library 对话框项 c++ 对话框项中的 preprocessor 中 预定义宏出现了  “_LIB”,  对比两个 dsp工程文件中  !MESSAGE "Test - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") !MESSAGE "Test - Win32 Win32 Static Lib Debug" (based on "Win32 (x86) Static Library") 另外c++ 的co......
阅读全文
  • 05月
  • 20日
综合 ⁄ 共 22748字 评论关闭
1:在jQuery中,DOM操作分为3个部分,它们分别是DOM(DOM Core)、HTML-DOM和CSS-DOM      DOM Core            DOM Core定义了一套标准的针对任何结构化文档的对象,它并不是JavaScript的专属,任何一种支持DOM的设计语言和脚本都可以非常的 使用DOM Core来处理文档对象,例如一个XML配置文件,我们就可以将XML文件通过自己的编程语言解析成DOM模型,DOM的工作机制是,将 结构化的文档映射成一堆配置对象,然后在程序中就可以直接调用配置对象来对文档进行操作。            方法getElementById(),getElementByName()和getAttribut......
阅读全文
{"当 IDENTITY_INSERT 设置为 OFF 时,不能向表 'OrderList' 中的标识列插入显式值"} 对于这个异常可以从两个角度来处理:A:数据库执行语句  B:直接修改NHibernate中持久化类映射配置文件id节点 A数据库执行语句: 问题描述:当在数据库表主键设计为 (Orderid  int identity primary key),相对这个主键IDENTITY_INSERT默认设置为OFF,就是不能够显示插入主键id的值,例子如下: insert into OrderList(id,OrderName) values(4520,'电子传票订单') 执行上面语句会提示一个错误: 服务器: 消息 544,级别 16,状态 1,行 1当 IDENTIT......
阅读全文
  • 04月
  • 15日
综合 ⁄ 共 4080字 评论关闭
using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; [ComImport] [Guid("A4E23A7E-C932-4A31-8455-2F137015DCB2")] public interface INakeTTClass { [DispId(1)] int Add(int a, int b, out int c); [DispId(2)] int GetAge(); } [ComImport] [Guid("73269D6A-0BB4-46B8-8062-7C8DCDEE81D3")] public class NakeTTClass : INakeTTClass { [DispId(1)] [PreserveSig] //<--------------- [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] pu......
阅读全文
  • 03月
  • 20日
综合 ⁄ 共 1098字 评论关闭
http://www.linuxidc.com/Linux/2012-07/66106.htm   Android NDK 开发时,想要在 .c 文件中打印一些调试信息的话,是不能使用 printf() 方法的,NDK 根本不支持,就算写了,在 LogCat 中也不会显示,正确的方式应该是 调用NDK 下的log.h 来打印Log 日志,具体方法如下: 1. 导入log头文件:在你使用的 .c/ .cpp 文件中,导入 log.h 头文件: #include<android/log.h> 2. 定义LOG 函数:先定义一个全局变量,再定义一些输出的LOG函数: 1.#define LOG    "ffmpegDemo-jni" // 这个是自定义的LOG的标识  2.#define LOGD(...)......
阅读全文
  • 02月
  • 15日
综合 ⁄ 共 1628字 评论关闭
今天看代码,看到几个概念:内部类、局部类、成员类、静态成员类、匿名内部类;瞬间有种被搞糊涂了感觉。下面是一个小例子来对它们进行说明: public class ClassTest{ public static void main(String[] args) { ClassTest son = new ClassTest(); //测试匿名类 son.testAnonymous(new AnonymousClass() { @Override public void test() { System.out.println("1 -> " + this.getClass().isMemberClass()); System.out.printl......
阅读全文
  • 01月
  • 30日
综合 ⁄ 共 4213字 评论关闭
首先将SQLServer数据导出成txt格式文本此方法略,不会的去网上查资料,网上资料很资料 下面要说的是如果将txt文本数据导入到Oracle中 Dos 环境下使用SQl*Loader命令 加载 使用其它数据库的数据转移工具 Oracle 企业管理器中的数据加载功能 具体的技术实现 一、Dos 环境下加载 1、首先,服务器端的侦听服务必须已经开启。 测试方法:Dos 下输入 C:/>sqlplus username/password@serviceName 2、然后使用 Oracle 的 sqlldr 命令进行数据的导入 前期条件 1) Oracle 数据库端必须已经建好了需要导入的数据表的结构 2) ......
阅读全文
  • 12月
  • 18日
综合 ⁄ 共 2706字 评论关闭
  /*Learn English for Technology.The soucrecode comes from Professional JavaScript for Web Developers writed by Nicholas C.ZakasThe summary writed by me for the new JavaScript learners.Glad to you can read it.Welcome to commnuctate web Dev Technology with me.My blog is Http://blog.csdn.net/takeie.*//*The code shows Event in javascript*/   var EventUtil = new Object;//Initlialize a object by factory model.//To attach a event by tow method.The addEventListener supporteb by the browers exce......
阅读全文
  • 11月
  • 23日
综合 ⁄ 共 2561字 评论关闭
状压DP Little Zu Chongzhi's Triangles Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 512000/512000 K (Java/Others) Total Submission(s): 88    Accepted Submission(s): 49 Problem Description Zu Chongzhi (429–500) was a prominent Chinese mathematician and astronomer during the Liu Song and Southern Qi Dynasties. Zu calculated the value ofπ to the precision of six decimal places and for a thousand years thereafter no subsequent mathematician computed a value this precise. Zu ca......
阅读全文
  • 11月
  • 22日
综合 ⁄ 共 2702字 评论关闭
  Network Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 5883   Accepted: 2773 Description A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N . No two places have the same number. The lines are bidirectional and always connect together two places and in each place the lines end in a telephone exchange. There is one telephone exchange in each place. From each place it is ......
阅读全文
  • 11月
  • 20日
综合 ⁄ 共 2194字 评论关闭
A Simple Problem with Integers Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 56971 Accepted: 17284 Case Time Limit: 2000MS Description You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the sum of numbers in a given interval. Input The first line contains two numbers N and Q. 1 ≤ N,Q ≤ 100000. The second line contai......
阅读全文
  • 11月
  • 19日
综合 ⁄ 共 706字 评论关闭
IT程序员开发必备-各类资源下载清单,史上最全IT资源,个人收藏总结! XML解析技术概述     1.XML解析方式分为两种:dom和sax          (1)dom:(Document Object Model, 即文档对象模型) 是 W3C 组织推荐的处理 XML 的一种方式。(对文档crud操作比较方便,但内存消耗比较大)          (2)sax: (Simple API for XML) 不是官方标准,但它是 XML 社区事实上的标准,几乎所有的 XML 解析器都支持它。(内存消耗比较小,但不适合于文档的增删改)   2.XML解析器          Crimson、Xerces 、Aelfred2    3.XML解析开发包          ......
阅读全文