whisht

    十年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  WinCE&MB

摘要:涉及内容:1、v4l2操作摄像头2、RGB565转BMP(RGB16)文件参考代码:#include <sys/time.h> #include <sys/types.h> #include <asm/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys 阅读全文
posted @ 2012-12-20 21:12 WHISHT 阅读(238) 评论(0) 推荐(0)

摘要:1、http://www.ijg.org/下载最新安装包,目前为jpegsrc.v8d.tar.gz2、复制到/usr/src/3、#cd /usr/src4、#tar xzvf jpegsrc.v8d.tar.gz //解压5、# cd jpeg-8d/6、# ./configure –enable-shared–enable-static//配置,既生成静态又生成共享库文件 ./configure -help查看帮助7、#make8、#cd /usr/local9、#mkdir man //注意建立man和man1文件夹10、#cd man11、#mkdir man112、#cd /usr 阅读全文
posted @ 2012-12-20 21:02 WHISHT 阅读(336) 评论(0) 推荐(0)

摘要:在c#winform应用程序中,窗体有ShowInTaskbar和FormWindowState.Minimized属性,通过.NET Framework类库可以轻松地实现窗体不显示在任务栏以及窗体最小化操作,而c#的智能设备.NET Compact Framework不支持这两项,要实现着两个功能,需要通过调用底层win32 API函数来实现,一大批Win32 底层操作的函数都存在于cordll.dll 动态链接库中。具体实现方法://首先调用Win32 的申明:using System.Runtime.InteropServices;//1.窗体不显示在任务栏const int EXSTY 阅读全文
posted @ 2011-03-08 17:13 WHISHT 阅读(550) 评论(0) 推荐(0)

摘要:Windows Mobile创建网络连接/// <summary>/// Windows Mobile创建网络连接/// </summary>private static void createRasDial(){ RegistryKey RootKey = Registry.LocalMachine; RegistryKey key = RootKey.OpenSubKey("Comm"); key = key.OpenSubKey("ConnMgr"); key = key.OpenSubKey("Providers 阅读全文
posted @ 2010-11-18 17:26 WHISHT 阅读(183) 评论(0) 推荐(0)

摘要:Windows Mobile连接网络 using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Threading; using System.Collections;namespace DATest{ public class ConnectManager { const int S_OK = 0; const uint CONNMGR_PARAM_GUIDDESTNET = ... 阅读全文
posted @ 2010-11-18 16:47 WHISHT 阅读(270) 评论(0) 推荐(0)

摘要:WinCE系统经裁剪后,安装到系统的文件在掉电后会丢失,所以需要每次都重新操作(创建快捷方式)。参考代码如下:/// <summary>/// WinCE5下创建桌面快捷方式/// </summary>private static void createHotLink5(){ string hotlink = @"/Windows/桌面/快捷方式.lnk"; if (!File.Exists(hotlink)) { string src = Path.GetDirectoryName(System.Reflection.Assembly.GetCal 阅读全文
posted @ 2010-11-18 11:11 WHISHT 阅读(1343) 评论(1) 推荐(1)

摘要:利用WinCE注册表,创建拨号连接/// <summary>/// WinCE5创建网络连接/// </summary>private static void createRasDial5(){ RegistryKey RootKey = Registry.CurrentUser; RegistryKey key = RootKey.CreateSubKey("Comm"); key = key.CreateSubKey("RasBook"); RegistryKey subkey = key.CreateSubKey(RasNa 阅读全文
posted @ 2010-11-18 11:05 WHISHT 阅读(606) 评论(0) 推荐(0)