- 博客(133)
- 资源 (22)
- 收藏
- 关注
转载 vs2010编译curl为static库及测试
转自vs2010编译curl为static库及测试1,编译curl为static库用vs2010打开: curl-7.32.0\vs\vc6\vc6curl.dsw选择LIB Release生成libcurl静态库: curl-7.32.0\vs\vc6\lib\lib-release\libcurl.lib\lib-release\libcurl2,重新建立一个t
2017-10-08 17:30:38
425
原创 vc2010设置为静态编译
问题:VS2010 c++编写的程序在别人的机子运行不了,缺少mfc100u.dll xxx100d.dll等的解决方法解决方法:1.将这些dll打包,和应用程序一起发布;2.采用MFC静态编译;附1:VS2010中静态编译设置方法 使用VS2010编译的程序在windows xp中运行时 经常会出现找不到 相关的DLL文件,我们可以使用静态编译
2017-08-20 22:24:12
3992
原创 vc2010创建lib和使用
新建一个静态库项目:新建项目-win32,名字叫lib1,之后选择静态库,同时把预编译头的勾选去掉,其他都默认默认什么文件都没生成,添加lib1.h和lib1.cpp(把上篇dll的两个文件的内容拷贝过来就行)// dll1.cpp : 定义 DLL 应用程序的导出函数。//// testdll.cpp : 定义 DLL 应用程序的导出函数。#include "lib1.h
2017-08-20 22:21:25
1032
原创 vc2010创建dll和使用
新建一个dll项目:新建项目-win32,名字叫dll1,之后选择dll,其他都默认会自动生成dll1.cpp,没有生成dll1.h,所以需要手动添加dll1.h修改dll1.cpp和dll1.h如下#include "stdafx.h"#include "dll1.h" #include using namespace std; namespace
2017-08-20 21:40:36
823
原创 jsp环境搭建
http://www.w3cschool.cc/jsp/jsp-setup.html在Dreamweaver(DM)中创建jsp站点+Tomcat服务器
2014-11-18 21:11:49
771
转载 Android横屏竖屏切换的问题
一、禁止横竖屏转换Android横竖屏切换在手机开发中比较常见,很多软件在开发过程中为了避免横竖屏切换时引发不必要的麻烦,通常禁止掉横竖屏的切换,通过在AndroidManifest.xml中设置activity中的android:screenOrientation属性值来实现。比如下列设置android:screenOrientation="portrait"
2014-06-30 22:17:51
1283
原创 openwrt使用源码编译应用程序
跟使用SDK类似,在openwrt根目录下song@song-virtual-machine:attitude_adjustment$ ls package/helloworld/Makefile srcsong@song-virtual-machine:attitude_adjustment$ ls package/helloworld/src/helloworld.c Makef
2014-04-12 11:23:54
4675
原创 tiny210 hal 6 Android系统中编写APP通过应用程序框架层访问硬件服务。
refer to 在Android系统中编写APP通过应用程序框架层访问硬件服务。
2013-07-22 14:07:27
2181
原创 tiny210 hal 4 Android系统中编写JNI方法在应用程序框架层提供Java接口访问硬件
refer to 在Android系统中编写JNI方法在应用程序框架层提供Java接口访问硬件
2013-07-22 14:05:38
2235
原创 tiny210 hal 2 Android系统中增加C可执行程序来访问硬件驱动程序
refer to 在Android系统中增加C可执行程序来访问硬件驱动程序
2013-07-22 14:04:14
1131
转载 董事长,总经理,总裁,CEO
据我的了解,董事长,总裁,CEO,这三者在一般的大公司里不会三者同时出现,如果一定要大小排序的话,也就是董事长》CEO》总裁》总经理董事长 (最大)股东大会选举产生董事会,并由董事会代表股东行使公司权利。董事长通常是公司里掌握最多股份的人,是董事会主席,直接领导公司里的董事会,以及附设的执行委员会、任免委员会、薪酬委员会、审计委员会等一些专门委员会.CEO(首席执行官,在董事长不兼任
2013-07-15 08:23:22
2430
原创 android 录像
使用MediaRecorder类package com.example.takepicture;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import android.graphics.PixelFormat;import android.hardware.Came
2013-07-05 17:59:09
831
原创 android 拍照
方法1.调用api拍照并保存package com.example.takepicture;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import android.graphics.PixelFormat;import android.hardware.Camera
2013-07-05 15:50:47
644
原创 android设置窗口特性
1.设置横屏竖屏在清单文件的 android:screenOrientation="landscape"2.设置全屏和是否显示标题,在acitivity.java Window window = getWindow(); requestWindowFeature(Window.FEATURE_NO_TITLE);//没有标题 window.se
2013-07-04 21:21:26
729
原创 listview simpleadapter
list_items.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/Layout01" android:layout_width="fill_parent" android:layout_height="fill_parent"
2013-07-03 18:30:32
674
原创 android sqlite
DBOpenHelper.javapackage cn.itcast.service;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;public class DBOpenHelpe
2013-07-03 16:42:03
670
原创 单元测试文件
1.创建单元测试项目2.下一步选择针对哪个项目进行单元测试3.在自动生成的包里,添加测试文件package cn.itcast.test.test;import cn.itcast.service.PersonService;import android.test.AndroidTestCase;public class PersonServiceTest extends
2013-07-03 11:39:54
686
原创 android 4组件之 activity
1.startActivity启动其他activity,并传递参数 Intent intent=new Intent(); intent.setClass(LoginActivity.this,MainTabActivity.class); Bundle bundle=new Bundle(); bundle.p
2013-07-01 17:58:30
718
原创 android 4组件之 service
android定义了4中类型的程序片段,每种类型都可以独立运行。一、Activity二、Service三、Broadcast Receiver四、Content Provider发短信权限 try { SmsManager manager =SmsManager.getDefault(); ArrayList text
2013-07-01 17:57:03
608
原创 android 按钮点击事件
package com.example.a;import android.os.Bundle;import android.app.Activity;import android.util.Log;import android.view.Menu;import android.view.View;import android.view.Window;import android.w
2013-07-01 17:02:32
1284
原创 android 线程 和 定时器
多线程的实现1.新建一个类,继承于类thread class MyThread extends Thread { //继承Thread类,并改写其run方法 private final static String TAG = "MyThread"; public void run(){ Log.
2013-07-01 16:37:41
1892
原创 android 内容保存
1.文件2.sharepreference3.content provider2.sharepreference业务类package com.example.service;import java.util.HashMap;import java.util.Map;import android.content.Context;import android
2013-07-01 11:32:51
848
原创 android intent
打电话权限 try { m_edt=(EditText)findViewById(R.id.editText1); String number=m_edt.getText().toString(); Intent intent = new Intent(); //intent.setAction("android.intent.action
2013-07-01 11:03:51
666
原创 ubuntu 增加硬盘大小
http://os.51cto.com/art/201001/179065.htm一前言:我们刚开始在虚拟机上安装ubuntu的时候,总是舍不得分配太多的硬盘空间。但用着用着时间久了硬盘就不够了。一种最笨的方法就是重装系统,但却费时费神。如果能够在不重装系统的情况下增加硬盘就好了。下面就来实现它。二.1.首先把ubuntu shutdown.2.在VMware里点击
2013-06-28 18:17:04
2573
原创 tiny210 ndk jni接口
参考 Android Native C 之 Helloworld的四种编译方式谢谢作者1.和在纯linux下运行elf文件一样,在android下也可以执行#include int main(){printf("hello,i am song\n");return 0;}编译arm-linux-gcc -o hello hello.c -
2013-06-27 17:35:06
763
原创 android 应用程序4种编译方法
win7:首先下载jdk, http://www.oracle.com/technetwork/java/javase/downloads/index.html还有eclipse+adt,可以一揽子下载,http://developer.android.com/sdk/index.html对于想使用c/c++开发android的应用程序,需要安装NDK环境,即本地开发
2013-06-26 21:48:56
1430
原创 android源码编译环境,应用程序编译环境
http://blog.youkuaiyun.com/zhq56030207/article/details/6613510http://blog.youkuaiyun.com/leino11121/article/details/6261180android应用编译环境http://developer.android.com/sdk/index.htmlandroid源码编译环境http:/
2013-06-25 12:23:28
781
原创 vc 绘图
1.dialog中绘图都是在绘图设备上绘图如果是在onpaint中可以直接使用CPaintDC dc(this)中的dc去绘图如果不是在onpaint中则需要先创建绘图设备或者取得绘图设备,a.取得绘图设备 CDC *pDC=GetDC(); pDC->DrawText("hello",CRect(0,0,100,100),DT_LEFT);b.创建内存绘图设备并贴在实际的设
2013-02-18 21:04:38
9321
原创 vc 的实用控件,皮肤
1.曲线图表控件 teechartwww.steema.comhttp://blog.youkuaiyun.com/popperlf/article/details/6393209http://download.youkuaiyun.com/detail/yinshenggang/2902028http://coosign.i.sohu.com/blog/view/177560102.htm
2012-10-12 20:58:14
882
原创 散列容器
1.c语言手动构造hash函数http://wenku.baidu.com/view/99972f69af1ffc4ffe47acb4.html// hashfunc.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include#include#include#includeusing namespace std;char *key
2012-08-30 19:14:42
1149
原创 STL容器
参考零基础学c++ 杨彦强刘袁红王浩编写高质量代码 李健标准STL序列容器:vector,string,deque,list标准STL关联容器:set,multiset,map,multimap非标准序列容器:slist(单向链表),rope(重型字符串)非标准关联容器:hash_set,hash_multiset,hash_map,hash_multimap----散
2012-08-30 16:40:08
543
原创 模板函数,模板类
使用模板函数#include "stdafx.h"#include "iostream"#include "string"using namespace std;template //template T add(const T &t1,const T &t2){return t1+t2;}int _tmain(int argc, _TCHAR*
2012-08-30 11:33:36
547
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人