令人抓狂的silverlight3开发环境构建
想弄下silverlight 3 ,我已经安装了VS2008 SP1。
到官网一看:东西不少
Microsoft® Silverlight™ 3 Tools for Visual Studio 2008 SP1
Microsoft® Silverlight™ 3 SDK
Microsoft Silverlight 3 脱机文档
不过SDK还不到10M。而2.0版本的却有
Microsoft® Silverlight™ 2 软件开发工具包 55.8 MB
安装了SDK,说我原有版本更高。这也是我登录MS网站提示我安装的。
于是就卸载。然后安装了SDK
再安装TOOLS,结果提示:
Action: Downloading Items…
[9/1/2009, 11:35:39] (IronSpigot::CompositeDownloaderT<class IronSpigot::RetryingDownloaderT<class IronSpigot::WinHttpDownloader,class IronSpigot::BitsDownloader,class IronSpigot::UrlMonDownloader,class IronSpigot::FileAuthenticity> >::PerformAction) Downloading http://go.microsoft.com/fwlink/ to R:\TEMP\Silverlight 3.0 Tools\Silverlight_Developer.exe
[9/1/2009, 11:35:39] (IronSpigot::RetryingDownloaderT<class IronSpigot::WinHttpDownloader,class IronSpigot::BitsDownloader,class IronSpigot::UrlMonDownloader,class IronSpigot::FileAuthenticity>::UseHttp) Determine the protocol to use
去下载了一个,安装了后继续:
提示版本不对,只好卸载,再重新安装TOOLS
亏我还是官网下载的:http://download.microsoft.com/download/0/D/7/0D76C405-E0E5-43CC-89D3-18243A4FCA86/Silverlight.3.0_Developer.exe
下载SDK的时候看到的:
在安装 Silverlight 3 SDK 前,请删除 Silverlight 3 SDK Beta。
如果您已安装或计划安装 Microsoft Silverlight Tools for Visual Studio 2008,请直接跳过 Silverlight SDK 的安装。Microsoft Silverlight Tools 将安装 Silverlight 3 SDK。有关此方面的更多信息,请单击此处。
若要生成 Silverlight 3 应用程序,您可以在此处安装 Silverlight 3 for Developers
结果提示安装失败
WINHTTP_CALLBACK_STATUS_REQUEST_ERROR error: error=12002, result= 2. Percentage downloaded=19
[9/1/2009, 12:1:19] (IronSpigot::RetryingDownloaderT<class IronSpigot::WinHttpDownloader,class IronSpigot::BitsDownloader,class IronSpigot::UrlMonDownloader,class IronSpigot::FileAuthenticity>::PerformAction) Download failed at attempt 4 of 4 for http://go.microsoft.com/fwlink/?LinkID=150219 using http:
[9/1/2009, 12:1:19] (IronSpigot::LogUtils::LogFinalResult) Final Result: Installation failed with error code: (0×80072EE2).
[9/1/2009, 12:1:19] Action complete
只好又重新手工下载··然后安装
结果这个···
居然还是要下载······
我彻底无语了········
~~~~~~~~~
1. 先打VS2008Sp1的包
http://www.microsoft.com/downloadS/details.aspx?familyid=27673C47-B3B5-4C67-BD99-84E525B5CE61&displaylang=zh-cn
2. 装 Silverlight3_Tools.exe
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=c22d6a7b-546f-4407-8ef6-d60c8ee221ed
3. 装silverlight_sdk.exe
1:安装VS2008
下载地址:http://msdn.microsoft.com/en-us/vs2008/products/cc268305.aspx
2:给VS2008打SP1补丁
3:安装VS2008专用SilverLight开发插件
VS2008 SP1默认不安装Silverlight模版。需要手动下载Microsoft Silverlight Tools for Visual Studio 2008下载地址是:
有多种语言版本。
下载前请按网页上的,提示卸载以前任何SL1.1或以前版本的 相关补丁。
下载安装后,新建工程,会出现SilverLight模版选项,此时,VS2008也能和Microsoft Expression Blend 结合使用了。
(图用的博客园一位同仁的)
最后,注意安装顺序。
(1),卸载Silverlight Runtime(客户端插件),经过个人测试,这步好像是必须的,不然第2步到最后会失败。如果失败,从第1步重来
(2),安装Microsoft Silverlight Tools for Visual Studio 2008
(3),然后安装Silverlight Runtime
标签:silverlight, 开发, 环境win2003下vs2008+ddk2003配置驱动开发环境(原创)
http://flashaway.blog.163.com/blog/static/95624576200961062043933/
步骤如下:
1.安装vs2008。
2.下载ddkwizard_setup.exe,
下载地址为http://ddkwizard.assarbad.net/downloads/ddkwizard_setup.exe
下载完后安装,安装目录随意。
3.下载最新的DDK开发包,版本要和你的操作系统相对应。
下载地址为http://www.microsoft.com/whdc/devtools/ddk/default.mspx。
下载完后安装。我的安装路径为E:\soft\WinDDK;
4.下载ddkbuild_bat.zip
下载地址为http://ddkwizard.assarbad.net/downloads/ddkbuild_bat.zip。
解压到E:\soft\WinDDK下。
5.下载ddkbuild_cmd.zip
下载地址为http://ddkwizard.assarbad.net/downloads/ddkbuild_cmd.zip。
解压到E:\soft\WinDDK下。
6.配置系统环境变量:
将DDKBUILD.bat 或DDKBUILD.cmd的路径添加到系统的path变量
(我的电脑—>系统属性/高级/环境变量/系统变量/path变量双击修改值)。
例如:E:\soft\WinDDK
据安装的DDK的不同版本添加不同的变量到系统变量中。
(我的电脑—->系统属性/高级/环境变量/系统变量/新建:)
2000 DDK则变量名为: W2KBASE
XP DDK则变量名为: WXPBASE
2003 sp1 DDK则变量名为: WNETBASE
值例如E:\soft\WinDDK\3790.1830
另外:需要注意是系统变量,不是上面的用户变量。
7.打开VS2008 工具->选项->项目和解决方案选项中的VC++ 目录增加WinDDK的根目录。
8.以上步骤如果完成,你可以在网上找个简单的驱动例子在此平台上编译。
如果显示编译成功,只是没有产生*.sys文件的,prefastchk_wnet_x86.log文件中会显示:“错误:没有文件扩展“.js”的脚本引擎。”
如是则DDKWizard根本没运行Build的javas
自然就可以编译源码并产生*.sys文件了。
9. 下载InstDrv工具,用来安装和卸载驱动程序。网上很多,自己搜索下载。
10.下载驱动查看工具debugview。
下面我们用InstDrv来调试我们的驱动程序。
一,在vs2008中新建一个ddk 项目:二.给项目添加一个test.c源文件,里面添加如下代码:
#include <ntddk.h>
VOID Unload(IN PDRIVER_OBJECT DriverObject)
{
}
NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject,IN PUNICODE_STRING RegistryPath)
{
DriverObject->DriverUnload=Unload;
DbgPrint(“Hello World!”);
return STATUS_SUCCESS;
}
另外还需要对source文件进行修改:
其中的含义我就不在这里熬述了。
直接编译,如果你的配置环境是严格按照我上面的步骤进行的,那在你的工程目录下就能够找到一个Test.sys驱动文件。这就是我们的成果文件。
三,现在我们用InstDrv工具对这个Test.sys驱动文件进行安装并启动。
下面我们打开debugview查看我们驱动程序输出的调试信息 。在运行之前,还必须做一项工作,打开注册表[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager]添加一个文件夹Debug Print Fil
然后给他添加一个word型键值,键名:DEFAULT(必须大写),值:00000008。重启电脑。
现在打开InstDrv与debugview工具,同时运行,当InstDrv启动test.sys时,debugview中就会打印出” Hello World!”的调试信息。
另外需要说明, InstDrv与debugview必须已管理员身份进行启动才能正常运行,
你也可以选择右键->打开方式,选择administrator进行运行:
以上这些步骤缺一不可,切记,切记~~~~~
在Windows XP下,VisualStudio6.0的编译器无法直接对DDK XP的文件进行编译,命令行方式使用起来不方便,无法享受IDE带来的便利,因此,寻找其他的解决方案。 在http://ddkwizard.assarbad.net/网站上发现了一个很好用的辅助工具DDKWizard,能够方便地对开发环境进行配置,试用之后感觉很方便,真是适合懒人啊,工具的作者也自称是因为懒惰才开发此工具,看来“懒惰是推动科技发展的动力”一点不假 下面简要介绍一下配合DDKWizard对WindowsXP下驱动程序的开发环境进行配置: 1. 安装VisualStudio 2008。既然是开发Windows下的驱动程序,MS的开发工具是一定的了,出了VS2008,当然使用。 2. 安装DDK XP。 再此多说几句,我先是安装了DDK 2003,并选择使用DDK2003,但是在WindowsXP系统下编译的时候总提示: error C1083: Cannot open include file: ‘D:\WINDDK\3790~1.183\inc\wnet\warning.h’: No such file or directory 但实际的驱动程序源文件中并没有用到warning.h文件,由此看来在XP系统下使用DDK 2003还是有配置不当的问题,但也很有可能是我对DDKWizard的使用还有不清楚的地方,总之,使用了DDK XP后,一切顺利。 3. 安装ddkwizard_setup,默认安装,一路Next点过即可。 4. 将ddkbuild.cmd拷贝到特定DDK版本安装的父目录下,例如,我的DDK XP的安装目录是D:\WINDDK\2600,就将ddkbuild.cmd拷贝到D:\WINDDK目录下。在此说明一下,安装DDK时,无论是 DDK XP、DDK 2003或DDK Vista,最好不要改变安装时的默认目录名称,例如XP的目录是2600,2003的目录是3790.1830,因为如果改了目录名称,还要对 DDKWizard进行更多的修改,麻烦,也没必要。 5. 打开VS 2008,菜单“工具”->“选项”->左侧“项目和解决方案”->“VC++目录”->右侧“可执行文件”下拉列表->添加一项D:\WINDDK(根据你的实际情况)。 至此,设置工作就都完成了。 编译一个驱动程序体验一下: 1. 新建一个空的驱动程序项目。 点击确定后,出现DDKWizard选项对话框。 如果是WindowsXP系统,并且安装了DDK XP,选择Windows XP DDK项。对于Create PREfast configuration 项,建议不选择,因为我选择后编译会有问题(也可能是我对DDKWizard理解不深),点击Finish结束设置。 2.将驱动程序的所有源文件加入项目中。 3.点击F7进行编译,顺利编译。 |
20080410 Eclipse java 开发 1
http://www.yippeesoft.com
先进入cmd并进入到文件所在目录
输入dir /a-d /b *.mp3>1.txt
这样将这个目录下的所有文件都导入到了1.txt文件中
其中可能有我们不需要改名的文件的名字,只需要对1.txt做相应的修改就可以了。
再打开1.txt用记事本的替换功能去除B2U2,另存为2.txt保存在当前目录。即2.txt保存了目的文件名。
现在开始写批处理
@for /f %%a in (1.txt) do (
if exist %%a for /f %%b in (2.txt) do (
rename %%a %%b))
保存在后缀名为bat的文件,也放在当前目录。
这样就可以了
使用eclipse怎样打开已有工程
在开始使用Eclipse的时候,会发现一个问题,那就是如何打开一个现有的Eclipse工程,开始在菜单中找了好久也没找到。
其实,Eclipse生成的结果不像VC,Jcreator那样可以直接打开,若要打开非workspace文件夹下的其他已有工程,可以打开菜单 file->import→general→existing project into space.在select root directory中选中要打开的文件夹即可。此时如果选择copy existing project into workspace就会同时将文件拷贝到workspace下。这里首先要保证要保证Eclipse两个文件.classpath和.project还在,不然无法导入,就是说Eclipse的import只认自己家的东西。
如果要打开的工程与Eclipse的配置不同,在运行时会产生问题。解决方法是:
打开菜单project→properties修改。主要需要修改的是java build path项。
也可以先把要导入的工程直接放在eclipse的工作区目录下,然后用eclipse新建一个工程,名字和导入的工程名字一样,就会自动把整个工程导入进去了。
http://lizemin314.blog.163.com/blog/static/111285122007102843758784/
Eclipse 插件安装、升级和卸载的方法(转)
http://www.bc-cn.net/Article/sjk/mysql/jszl/200601/3436.html
Eclipse+JBoss+MySQL开发环境设置全攻略
http://hi.baidu.com/damoqingquan/blog/item/9a405ada25cfd4dfb6fd48e9.html
eclipse插件安装
Severity and Description Path Resource Location Creation Time Id
ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized jdbc/core line 27 1207725182750 36
9. Eclipse下的Svn配置
版本控制软件SVN的eclipse插件Subclipse,下载地址:http://subclipse.tigris.org/
添加方式:打开MyEclipse,Help—Software Updates—Find and Install…– Search for new features to install. 下一步,New Remote site,在弹出框中,name写“svn”,URL写http://subclipse.tigris.org/update_1.2.x,一路确定下去。
Windows->Preferences->Team检查是否有SVN节点,点击SVN即可看到该插件的设置界面。右击项目名-> Team->Share Project…打开项目共享对话框,对话框有两个选择,一是Eclipse内置的对CVS的支持,还有另外一个就是我们刚装上的SVN。选择SVN进入服务器设置界面,输入svn服务路径,用户名,密码,确认下去,到此完成。
Could not save encoding settings.
Exception occurred while saving project preferences: /.settings/org.eclipse.core.resources.prefs.
问题:当导入html文件出现乱码怎么办!
解决办法:文件--》 右键 --》属性 改文件的编码和网页中所有的编码一致即可!
举例:针对我前面一篇讲如何使mysql,php页面和html页面不出现乱码问题可以有一下解决方案!(现在公认要用utf比较好,所以一律按照utf-8来处理)
1.参照http://blog.csdn.net/bingyupiaoyao/archive/2008/02/06/2085439.aspx我这篇文章解决相关乱码问题!
2将html文件用convertz802转化成utf-8编码(如果已经是就不改)
3.文件--》 右键 --》属性 改文件的编码为utf-8,这样就使得mysql,php,html都没有乱码了!
在eclipse中,报错:
Resource is out of sync with the file system
查阅资料后发现这是文件系统不同步的问题,是因为在eclipse之外对工程中的resource进行修改引起的;但是,有时没有在eclipse之外进行修改,也会报类似的错误。
解决办法:需要手动刷新一下资源管理器。
(1)在eclipse中,工程目录右键,选择F5(refresh)
(2)设置eclipse自动刷新。
通过Window->Preferences->General->Workspace,选中Refresh automatically。
另外今天突然发现以前RCP应用程序启动出错,查看日志,起初以为是RCP导出问题,后来发现即使是HelloWorld的程序系统都运行报错 java.lang.UnsupportedClassVersionError: cn/com/datamanager/Application (Unsupported major.minor version 49.0)。
java -version查看才知机子上还有jre1.4。
原来是装Oracle数据库的时候自动安装的(Sybase比Oracle人性化很多,嘿嘿)。
Tiger的泛型功能使得编译器对类型的安全性进行检查,特别是Java集合,如下面的例子:
public void nonGenericsMethod() &leftsign;
List wordList = new ArrayList(); // no typing information on the List
wordList.add("foo"); // causes error on list addition
&rightsign;
l 编译器会给出下面的警告信息:
Type safety: The method add(Object) belongs to the raw type List. References to generic
type List<E> should be parameterized
l 这对于Tiger的代码是很有帮助的,但对于JDK1.4及以前版本,不断的收到无关的警告信息是很烦人的
l 可以使用@SuppressWarnings来阻止指定类型的警告信息,如:
@SuppressWarnings(value = &leftsign; "unchecked" &rightsign;)
public void nonGenericsMethod() &leftsign;
List wordList = new ArrayList(); // no typing information on the List
wordList.add("foo"); // causes error on list addition
&rightsign;
l 传递给@SuppressWarnings的类型值是一个数组,因此可以同时阻止多种类型的警告信息
Type safety: The method add(Object) belongs to the raw type List. References to generic type List should be parameterized
example
List treenode = new ArrayList
treenode.add(node);
javadoc 中List这样定义 Public interface List<E> extends Collection,Iterable
注意这个<E>,它就是JavaTiger的类型安全标志,到这里可以给出在保证类型安全时例子中的List应该如何定义了: List<TreeNode> treenode = new ArrayList<TreeNode>(); TreeNode为自定义类型,当然可以其它类型了,不过统一使用一种类型就是安全的了,不会有这个警告。
同理,map不加<>也会出现类似的警告
Map<String,Integer> h=new HashMap<String,Integer>();
Severity and Description Path Resource Location Creation Time Id
No start tag (<a>). line 202 1207726134734 4810
http://www.cnblogs.com/sunywong/articles/666875.html
转载:搭建Eclipse+MyEclipse+Tomcat开发环境
配置jboss IDE :点run->debug->点中jboss4.x,在右边选择debug模式,然后新建一个configuration,取名JbossServer4,然后配置jboss安装目录以及运行模式default,保存,然后在window->preferences中选择JBOSS-IDE 下面的launcher,在右边的default server中填入:jboss 4.0.x:JbossServer4 , apply,关闭窗口,这时候菜单default server中的选项都可用了,选择start,就可以启动jboss服务器啦
标签:cli, eclipse, java, 开发 20070526 SaferRun 开发 ToolStripMenuItem
http://www.yippeesoft.com
C#代码辅助工具Visual Assist X 与 VS2005的代码自动提示发生冲突的解决办法
在 Visual Assist X 设置好代码快捷方式以后,比如 if 的快捷方式设置成:
if($select$)
&leftsign;
$end$
&rightsign;
在VS代码编辑窗口中编辑时,发现与VS自己的 if 快捷方式发生了冲突,Assist 的if出不来。
于是设置VS的属性N次,找到了解决问题的办法,如下:
工具 >> 选项 >> 文本编辑器 >> C#
1、常规: 将“语句结束”自动列出成员,隐藏高级成员选中
2、Intellisense:将“完成列表”中的“键入字符后显示完成列表”去掉,不选中。其他的项目不去动他。
C# winform程序中动态菜单的问题
给应用程序动态增加菜单
例:
popMenuItem 是父菜单,可以是菜单条上的主菜单项目也可以是下拉菜单中的菜单项
DynMenuItem_Click(object sender, EventArgs e) 是菜单响应函数
&leftsign;
ToolStripMenuItem item = (ToolStripMenuItem)sender;
item 是当前单击的新菜单项
&rightsign;
ToolStripMenuItem item = new ToolStripMenuItem("动态菜单Text" ,null,new System.EventHandler(this.DynMenuItem_Click),"menuItemName");
popMenuItem.DropDownItems.Add(item);
c# 分隔符 new ToolStripMenuItem
private void Form1_Load(object sender, EventArgs e)
&leftsign;
XmlDocument doc = new XmlDocument();
//如果网络不畅的话则有可能会抛出WebException的。
doc.Load(tvListPath);
XmlElement ele = doc.DocumentElement;
XmlNodeList nodeList = ele.SelectNodes("item"); //得到一个名字为IIFF的所有节点
ConfigMainMenu(nodeList, this.menuStrip1, null);
&rightsign;
//包含菜单项内容的xml文件的地址。
private const string tvListPath = @"http://uploadlist.googlepages.com/OnlineTV.xml";
private void commonToolStripMenuItem_Click(object sender, EventArgs e)
&leftsign;
ToolStripMenuItem menuItem = sender as ToolStripMenuItem;
Debug.Assert(menuItem != null);
//未set的Name取出来的将是"",所以如此进行判断
if (menuItem.Name != "")
&leftsign;
Process.Start(menuItem.Name);
&rightsign;
&rightsign;
/**//// <summary>
/// 递归函数,向主窗体中加入菜单项。
/// </summary>
/// <param name="nodeList"></param>
/// <param name="menuStrip"></param>
/// <param name="menuItem"></param>
public void ConfigMainMenu(XmlNodeList nodeList, MenuStrip menuStrip, ToolStripMenuItem menuItem)
&leftsign;
foreach (XmlNode node in nodeList)
&leftsign;
if (node.Name == "item")
&leftsign;
XmlAttributeCollection attribute = node.Attributes;
XmlAttribute text = attribute["text"];
if (text != null)
&leftsign;
XmlAttribute address = attribute["address"];
//根据xml文件的内容新建一个菜单项。
ToolStripMenuItem subItem = new ToolStripMenuItem(text.Value);
if (address != null)
&leftsign;
subItem.Name = address.Value;
&rightsign;
subItem.Click += new EventHandler(commonToolStripMenuItem_Click);
addItem(menuStrip, menuItem, subItem);
ConfigMainMenu(node.ChildNodes, null, subItem);
&rightsign;
&rightsign;//如果指示为分隔符的话:
else if (node.Name == "separator")
&leftsign;
ToolStripSeparator toolStripSeparator = new ToolStripSeparator();
addItem(menuStrip, menuItem, toolStripSeparator);
&rightsign;
else
&leftsign;
throw new InvalidDataException("节点的名称有误,请检查");
&rightsign;
&rightsign;
&rightsign;
20070525 SaferRun 开发 用户权利 c# menu
http://www.yippeesoft.com
用户权利简介管理员可以指派特定权利组帐户或单个用户帐户。这些权利批准用户执行特定的操作,如交互式登录系统或备份文件和目录。用户权利与权限不同,因为用户权利适用于用户帐户,而权限则附加给对象。有关权限的信息,请参阅继承如何影响文件和文件夹的权限。
用户权利定义了本地级别上的功能。虽然用户权利可以应用于单个的用户帐户,但最好是在组帐户基础上管理。这样可以确保作为组成员登录的帐户将自动继承该组的相关权利。通过对组而不是对单个用户指派用户权利,可以简化用户帐户管理的任务。当组中的用户都需要相同的用户权利时,您可以一次对该组指派用户权利,而不是重复地对每个单独的用户帐户指派相同的用户权利。
对组指派的用户权利应用到该组的所有成员(在它们还是成员的时候)。如果用户是多个组的成员,则用户权利是累积的,这意味着用户有多组权利。指派给某个组的权利只有在特定登录权利的情况下才会与指派给其他组的权利发生冲突。然而,指派给某个组的用户权利通常不会与指派给其他组的权利冲突。要删除用户的权利,管理员只需简单地从组中删除用户。在这种情况下,用户不再拥有指派给这个组的权利。
有两种类型的用户权利:特权,如备份文件和目录的权利;另一种是登录权利,如登录到本地系统的权利。
详细信息,请参阅特权和登录权利。
c#中,在load事件中Form不能用Hide()方法?
试试看,好像没有效。
问题解决了,是在Form1_Activated中加入this.Hide();。
D:\\WINDXP\\Microsoft.NET\\Framework\\v2.0.50727\\Csc.exe /noconfig /nowarn:1701,1702 /warn:4 /define:DEBUG;TRACE /reference:D:\\WINDXP\\assembly\\GAC_MSIL\\Microsoft.VisualStudio.QualityTools.UnitTestFramework\\8.0.0.0__b03f5f7f11d50a3a\\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll /reference:"H:\\temp\\My Documents\\Visual Studio 2005\\Projects\\SaferRun\\SaferRun\\bin\\Debug\\SaferRun.exe" /reference:D:\\WINDXP\\Microsoft.NET\\Framework\\v2.0.50727\\System.Data.dll /reference:D:\\WINDXP\\Microsoft.NET\\Framework\\v2.0.50727\\System.Deployment.dll /reference:D:\\WINDXP\\Microsoft.NET\\Framework\\v2.0.50727\\System.dll /reference:D:\\WINDXP\\Microsoft.NET\\Framework\\v2.0.50727\\System.Drawing.dll /reference:D:\\WINDXP\\Microsoft.NET\\Framework\\v2.0.50727\\System.Windows.Forms.dll /reference:D:\\WINDXP\\Microsoft.NET\\Framework\\v2.0.50727\\System.Xml.dll /debug+ /debug:full /optimize- /out:obj\\Debug\\TestProject1.dll /target:library ProgramTest.cs Properties\\AssemblyInfo.cs Resources.DesignerTest.cs SaferRunTest.cs Settings.DesignerTest.cs VSCodeGenAccessors.cs
H:\\temp\\My Documents\\Visual Studio 2005\\Projects\\SaferRun\\TestProject1\\SaferRunTest.cs(78,44): 错误 CS0118: “SaferRun”是“命名空间”,但此处被当做“类型”来使用
SaferRun.SaferRun target = new SaferRun();
using SaferRun;
今天上午用VS的WebApplication编一个站外提交的程序的时候在调试的过程中出现 “HttpWebRequest”是“命名空间”,但此处被当做“类型”来使用”的报错信息,一开始以为是我的程序有问题(还怀疑是不是 WebApplication的问题),而后用Asp.net来实现没有任何问题,吃过饭后来重新建立了一个WebApplication程序居然没有任何报错,此时心里非常高兴,因为可以排除WebApplication的因素了,最终分析原因居然是我用了HttpWebRequest这个名称作为项目的名称的问题,将项目名称更换成Http_Request调试通过。
由此可以看到微软VS工具还是有些不完善的地方的,报错信息不是很人性化,当然希望大家也不要向我一样犯此等低级错误,在项目命名的时候尽量不要将名称特殊化和简单化,并且避免使用中文目录名或者项目名称,切记!
命名空间和类同名
有多个根元素
有多个根元素。 行 109,位置 9。
make sure your string is a valid xml string, which means, one root element,…
String YourString = "<Data><hangbiaoshi>1</hangbiaoshi><name>ee</name></Data>";
StringReader reader = new StringReader(YourString);
DataSet ds = new DataSet();
ds.ReadXml(reader);
foreach (DataTable t in ds.Tables)
&leftsign;
Console.WriteLine("&leftsign;0&rightsign; has &leftsign;1&rightsign; records", t.TableName, t.Rows.Count);
foreach (DataColumn dc in t.Columns)
Console.WriteLine(dc.ColumnName);
&rightsign;
or if you see that error, add "<DataSet>" + YourString + "</DataSet>"
Dim Menu As New ContextMenuStrip
Menu.Items.Add("添加")
不知如何将MenuAdd_Click()的过程加给生成的快捷菜单的"添加"的Click事件
也就是说:生成的快捷菜单的"添加"的Click后,运行我已经写好的MenuAdd_Click()过程
Dim Menu As New ContextMenuStrip
Dim MI As MenuItem = Menu.Items.Add("添加")
AddHandler MI.Click, AddressOf MenuAdd_Click
this.contextMenuStrip1.Items.Add(toolStripMenuItem1);
Step1.我们需要建立项目文件与测试文件的映射关系.
难道要我们去手动创建吗?这可是整个项目啊,里面也许包含了几十个类,数百个方法…当然没那么复杂!实际上,我们需要做的工作很少,只是动动鼠标,等几秒就可以了:)
在VS2005 的IDE环境下,选择menu里的Test,继续选New Test项,这时将跳出个窗体,里面可以选择测试项目类型,这里我们选择Unit Test Wizard,确定,输入测试项目名,然后将又出现一个窗体,里面包含你当前的solution里的所有project,我们选上我们的MyCache, 确定.OK,看见一个进度条,这是在执行测试代码的映射工作,等结束后,你就会发现,已经建立了一个测试项目了,里面的文件完全对应你的目标项目,每个类包含的方法也是与目标类的方法一一对应,非常简单,cool,mission complete!
Step2.运行我们的测试项目.
接下来,我们怎么进行测试呢?里面有许多的类和方法,很多方法上还带有像TestMethod这样的标签属性,但是我们关心的是,如何进行测试?绝对不是通常的F5来运行:(,在VSTS里,单元测试实际上有专门的管理工具.再次选到menu上的Test选项,移到windows上展开自菜单,里面有好几个选项,我们选择TestManager打开.在IDE窗口内出现了一个视图结构的东西,在分割线的右边是一个listView,里面全是当前测试项目包含的方法,我们随便选几个方法给勾上,右键,Run Checked Test,下边马上有出现了Test Result窗体,里面就是刚才你选择的方法.如果不出意外的话,你的这个窗体内的方法result应该都是failed之类的数据,嗯,先不管这个,最起码,我们已经运行了一次测试项目了,虽然有些奇怪,不过我们已经知道了如何运行一个测试项目了,那么再进入下一个step吧:)
Step3.看看我们的测试代码里都有些什么.
虽然知道了怎么运行测试项目,但莫名其妙的全部出错,是怎么回事呢?我们进入测试项目具体的代码来看看.
我们会发现,每个测试类的名称就是对应的目标类的名称+"test",里面的方法也是如此,如果是构造函数,则是诸如
ConstructorTest 或ConstructorTestN这样的形式,N为重载次数.每个方法里面的代码看上去也不奇怪,只是构造参数来调用而已,最后通过断言来判断(用过 NUnit的朋友不会陌生吧?).我们试着直接把一个方法里的断言去掉看看,编译,TestManager,run,嘿,果然,去掉断言的方法就pass 了!看来蒙老大不难呢,只要把所有的方法的断言都给去掉,然后给老大看测试后的结果,呵呵…
Step4.深入的了解一下方法上带有的属性的含义.
每个方法上几乎都带有TestMethod这个属性,我们直觉告诉我们,这肯定是表示被测试函数的意思.事实也正是如此,在Unit Test里,有许多测试属性,常用的如下:
属性 描述
TestClass()
该属性表示一个测试装置。
TestMethod()
该属性表示一个测试用例。
AssemblyInitialize()
在执行为执行选择的第一个 TestClass() 中的第一个 TestMethod() 之前,执行带有该属性的方法。
ClassInitialize()
带有该属性的方法在执行第一个测试之前调用。
TestInitialize()
带有该属性的方法在执行每个 TestMethod() 之前调用。
TestCleanup()
带有该属性的方法在执行每个 TestMethod() 之后调用。
ClassCleanup()
带有该属性的方法在执行 ALL 测试之后调用。
AssemblyCleanup()
在执行为执行选择的第一个 TestClass() 中的第一个 TestMethod() 之后,执行带有该属性的方法。
Description()
提供关于给定 TestMethod() 的描述。
Ignore()
由于某种原因忽略 TestMethod() 或 TestClass()。
ExpectedException()
当测试特定异常时,如果使用该属性指定的异常不是从实现代码引发,则测试不会失败。
需要注意的是,上面的属性不是可以适用于所有方法的,比如AssemblyInitialize()和ClassInitialize()是必须是静态方法的属性.
我们可以把初始化的操作放在他们里进行.
Step5.修改测试方法及其断言.
到现在,我们的思路开始清晰起来了,我们要开始做真正的测试了,不是仅仅去掉断言就pass那么简单了:)
我们的测试思路应该是这样:我们调用该方法,需要传入什么值,会影响什么值,当它执行之后,会产生怎样的期待值?我们把期待值与实际的值想比较,同时写下断言失败的message.
还是以我们的MyCahce为例,假如我们有个ListCache类,里面有个AddItemToTop(item)方法,表示把一个item插入到当前链表的头部.我们实际的测试函数该这么写
Guid id = System.Guid.NewGuid();
Item item = new Item(id);
list.AddItemToTop(item);
Assert.AreEqual(id, roomList.FirstLinkedItem.Key, "插入后查询获得的key值与插入的对象的key值不相等!");
通过比对插入后的链表的头部的key与之前保存的key值来判断,这是不是一次成功的插入.
这只是个很简单的例子,我们当然应该根据具体的方法需要实现的功能来定义测试代码.
Step6.OVER
完成了上面5部,相信你已经对VSTS的Unit Test非常的熟悉了,接下来需要做的就是把你需要的测试的method都提供正确的测试代码,注意,这里我们甚至不要考虑我们本身的项目究竟有没有实现该功能,但我们应该该知道,我们需要什么功能.我们只针对应该产生的结果写测试代码.当测试不通过时,我们只需要修改我们的目标项目,而不再需要修改我们的测试项目.这其实正是TDD(测试驱动开发)的思想,我们如果要验证我们的方法有没有错,只需要run一下test即可,真正实现了全自动化单元测试, 这里边的实际开发效率的提高,只有你在真正体会过后才能明白:)
20070524 SaferRun 开发
http://www.yippeesoft.com
error C2065: “_lpa” : 未声明的标识符
error C2065: “_convert” : 未声明的标识符
error C2065: “_acp” : 未声明的标识符
error C3861: “_lpa”: 即使使用参数相关的查找,也未找到标识符
error C3861: “_convert”: 即使使用参数相关的查找,也未找到标识符
error C3861: “_lpa”: 即使使用参数相关的查找,也未找到标识符
error C3861: “_convert”: 即使使用参数相关的查找,也未找到标识符
#include <atlconv.h>
USES_CONVERSION;
LPSTR lpstr = OLE2A(bstrVal); // bstrVal为BSTR类型变量
USES_CONVERSION是个宏,展开后定义一些局部变量以供WideCharToMultiByte或 MultiByteToWideChar使用,因为上面各位说的各种转换方法归根结底都是通过这两个函数进行转换的,只不过包装方法不同而已。下面的代码摘自MFC源码
#define USES_CONVERSION int _convert; _convert; UINT _acp = GetACP(); _acp; LPCWSTR _lpw; _lpw; LPCSTR _lpa; _lpa
#define A2W(lpa) ( ((LPCSTR)lpa == NULL) ? NULL : ( _convert = (strlen(lpa)+1), AfxA2WHelper((LPWSTR) alloca(_convert*2),
lpa, _convert) ))
但是还有个函数(StringCchLength())不能识别,又到MSDN里一查,少加这个函数所在的头文件(strsafe.h)
DLL的export
DLL中包含有一个表,称为export table(以下简称ET),其中包含了DLL中可以被外部程式使用的所有函数和数据的名字。只有记录在ET中的函数和数据才可以被外部程式所使用(如果没有.DEF文件的话),其它所有没有记录在ET中的函数和数据都被视为是DLL私有的。因此,要将DLL中的函数和数据export只有两个方法:
l 为DLL创建一个.DEF文件(模块定义文件),并在build该DLL时使用这个.DEF文件。使用这种方法使你可以将函数按序号export。
l 在DLL中想要export的函数和数据定义前添加_declspec(dllexport)关键字(对于函数和变量定义,加在最前面;对于class定义,加在class关键字后),这样该函数和数据就会被添加到ET中。使用这种方法函数将按名字export。
在WINDOWS下,无论使用上述的哪一种方法,都必须要将export函数声明为_stdcall。
c#调用dll问题,在vb里可以调通,可在c#中不知道什么问题
自己写的mydll.dll,用vc做的
包括有函数类似,myfunc(LPSTR string1)
用vb调声明之后,直接myfunc("323435")没有问题
可在c#中,声明之后,同样myfunc("323435")
发现传过去的参数,只取了第一个字符,此时的string1="3"
是不是这跟字符编码有关?
[DllImport(“MyDLL.dll”)]在申明的时候还可以添加几个属性
[DllImport(“MyDLL.dll", EntryPoint=" mySum ",CharSet=CharSet.Auto,CallingConvention=CallingConvention.StdCall)
]
EntryPoint: 指定要调用的 DLL 入口点。默认入口点名称是托管方法的名称 。
CharSet: 控制名称重整和封送 String 参数的方式 (默认是UNICODE)
CallingConvention指示入口点的函数调用约定(默认WINAPI)(上次报告讲过的)
SetLastError 指示被调用方在从属性化方法返回之前是否调用 SetLastError Win32 API 函数 (C#中默认false )
如果是用的大小顺序的字节码
System.Text.Encoding.BigEndianUnicode.GetString(byte[]);
如果是用的小大顺序的unicode
System.Text.Encoding.Default.GetString(byte[]);
oCharArray()函数实现的是从字符串到Unicode 字符数组的转换的,
它有两种形式,你用的是第二种,第一个参数代表数组的起始位置,第二个参数代表转换长度,
这种方式适合已经定义好的数组(而不是声明好的数组),
如果是想把一个字符串完全转换到另一个数组中,那么就用它的第一种形式,不带参数的。
string yb = "abc";
char[] yy = yb.ToCharArray()
正解:CharSet = CharSet.Ansi
C#调用vc写的dll,出现找不到入口点
do this:
extern "C" __declspec(dllexport) BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
&leftsign;
return TRUE;
&rightsign;
you need to export the function.
写了一个vc++的dll, 利用 [DllImport] 调用,运行没有错误, 无法到达dll中的源代码中设置的端点,端点处为问号,提示为“无法命中端点,该文本没有加载任何符号”,结果是没法去调试该dll, 我试过了, 第一, 我都试过了,无论从c#那个工程作为启动工程或者是vc那个dll作为启动工程,都到达不了预先设置的断点,从模块加载窗口中,看不到该dll被加载,我在怀疑DllImport的机制。
第二,那个dll若不是基于.net平台, 根本就不让加。所以附加的方式也是不对的!
正解:把C#项目属性改为启用非托管调试。将dll依附的进程的DEBUG TYPE设置为MIXED TYPE即可,即托管[managed]和本地[native]混合模式即可
标签:err, saferrun, 开发20070517 vs2005 基于.net开发平台项目案例集锦
http://www.yippeesoft.com
基于.net开发平台项目案例集锦
来自http://dev.csdn.net/author/zhzuo/5fe38e84a0f74c87934c41114a4ed297.html
经过微软.net Framework 2.0的革新,.net平台的开发越来越精彩。笔者收集基于.net开发的n个项目,一方面为新手提供有价值学习资源,培养起软件开发的乐趣,另一方面共勉已从事.net领域工作多年并有明确发展目标的同仁,提高自己,更上一层楼。
SharpDevelop
强大的插件系统,通过Addin构建成一个功能齐全的.net开发IDE。核心是AddInTree。跟随这个项目开发许多有用的组件,比如功能文本编辑器(ICSharpCode.TextEditor),SharpZipLib等。
链接:http://www.icsharpcode.net/
DotNetNuke
这个就是著名DNN,使用VB.NET进行开发。通过其基本架构可进行堆积木式快速建站。而且支持子网站系统。其由asp.net Portal start kit进化而来。
链接:http://www.dnnchina.net/ ,http://www.dotnetnuke.com
Community Server
这个也是一个很著名的ASP.NET项目,记得好像最早系统原形为asp.net Forums,后来加入了.Text Blog 和nGallery成为一个完整的通用系统。对应的中文版本为宝玉修改的CCS。
链接:http://communityserver.org/
Rainbow
另外一个类似于DNN的系统,使用C#进行开发。
链接:http://www.rainbowportal.net/
RssBandit
一个客户端的RSS查看器,使用C# 进行开发,最大的特点是数据存储采用xml文件。
FreeTextbox
Web上的一个Html超文本编辑器,早些版本是开源的,现在还是免费使用,不过源代码需要购买。
World Wind
使用.NET开发的一个Windows窗体系统,以地球外观看得角度提供全球定位功能,类似于Google Earth。
链接:http://worldwind.arc.nasa.gov
log4net
对应Java中的log4j。一个强大的日志管理模块。
链接:http://logging.apache.org/log4net/
Monodevelop
非Windows 系统下的.net 平台开发工具。
Paint.NET
使用.net开发的画图软件,功能不错。
链接:http://www.getpaint.net/index.html
Nunit
对应Java中的Junit,非常著名的单元测试工具。
FCKeditor
Web上的又一个Html超文本编辑器。
Nlog
一个日志管理库,类似于Log4Net。
链接:http://www.nlog-project.org/
ManagedSpy
.net 平台下的Spy ++,支持通过.net 2.0开的Windows Forms应用程序。
链接:http://msdn.microsoft.com/msdnmag/issues/06/04/ManagedSpy/
Guidance Explore
类似于一个.net平台编程问题简答的FAQ。不过提供的都是英文。
链接:http://www.codeplex.com/Wiki/View.aspx?ProjectName=guidanceExplorer
Terrarium
一个.net开发的多人游戏。玩这个游戏可以提高编程能力^_^。
链接:http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49
TaskVision
任务管理系统,一个经典的Smart Client智能客户端程序。
链接:http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49
IssueVision
事务管理系统,Smart Client智能客户端程序。
链接:http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49
FotoVision
又一个值得学习的.net开发的Windows应用程序。
链接:http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49
Infragistics Tracker Application
由Infragistics开发的Smart Client智能客户端程序。
链接:http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49
Windows Forms RSS Portal
一个.net 开发的聚合器。
链接:http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49
Enterprise Library
微软的企业库,对原早些时候开发的一些Block 模块进行整合提供企业统一的接口,新版本使用了.net 2.0的的许多功能。
链接:http://msdn.microsoft.com/practices/
PetShop
基于N-tier设计的电子商务网站,没什么好说的了。
链接:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/bdasamppet4.asp
XmlNotepad
一个用.net 开发的xml文件编辑器。
链接:http://www.microsoft.com/china/msdn/library/data/xml/xmlnotepad.mspx
DockManager Control
一个很不错的实现类似于VS 2005的界面某些功能的组件。
链接:http://www.codeproject.com/vb/net/DockPanelSkin.asp
Starter Kits for Visual Web Developer
该套件为学习研究应用asp.net2.0的开发人员提供许多宝贵资源,很不错。
链接:http://www.asp.net/downloads/starterkits/default.aspx?tabid=62
http://www.microsoft.com/china/msdn/library/langtool/vs2005/expie_hello_bho.mspx
通过 Visual Studio 2005 生成浏览器帮助程序对象
发布日期: 2006-12-30 &line; 更新日期: 2006-12-30
Tony Schreiner,John Sudds
Microsoft Corporation
摘要:本文说明了如何使用 Microsoft Visual Studio 2005 创建一个简单的“浏览器帮助程序对象”(BHO),即实现 IObjectWithSite 接口并将其自身附加到 Internet Explorer 的一种“组件对象模型”(COM) 对象。本文逐步说明了如何创建入门级 BHO。首先,BHO 会在 Internet Explorer 加载文档时显示消息“大家好!”。然后,BHO 被扩展为从已加载页面删除图像。本文面向的是想要了解如何扩展浏览器功能以及如何为 Internet Explorer 创建 Web 开发人员工具的开发人员(本文还包含指向英文网页的链接)。
标签:.net, vs2005, 开发1206 TSPI 开发 资料
http://tapifaq.pennypacker.org/tapifaq8.html
http://www.i-b-a-m.de/Andreas_Marschall\’s_TAPI_and_TSPI_FAQ.htm#_Q:_What_is_3
Andreas Marschall’s TAPI and TSPI FAQ
——————————————————————————–
Andreas Marschall is a TAPI / TSP Developer and Tester since 1997.
His contribution to the TAPI newsgroups has been recognized by Microsoft® with MVP Awards for TAPI / Windows® SDK in 2003, 2004, and 2005.
He received the Microsoft® 2004 Windows MVP ‘Winny’ Award in the category ‘Developer’ at the 2004 MVP Global Summit in Redmond / Seattle, WA, USA.
See his MVP Profile (incl. Biography Abstract, Publications, Conferences, etc.).
He attended the last TAPI Bake-Off in Nice, France, in July 2000.
Q: Are there specific TSPs for TAPI2 and TAPI3 ?
A: There is no specific TSP for TAPI2 and TAPI3:
· The "mapping" between a TSP and TAPI2 / TAPI3 is done by the TAPI components of the OS (i.e. TAPISRV)
· There is no need to implement any COM in a TSP to get it ready for TAPI3
· You "just" need to implement the TSPI_functions (and TUISPI_functions):
See MSDN® Library online: tspi/tapi_service_providers
See MSDN® Library online: tspi/tapi_service_provider_overview
See MSDN® Library online: tspi/telephony_service_providers_start_page
· The only TAPI3 specific is media control. This is not done by a TSP but by a MSP (media service provider):
Q: Is there a TSP with sample code available ?
A: Yes, see the following links:
· Take a look at the ATSP sample TSP project in the Core SDK from Windows® SDK (s. Platform SDK):
After installing the Core SDK you will find this sub-directory:
\\NetDS\\Tapi\\Tapi2\\Atsp32
· JulMar Technology offers a SDK for TSP development: there is a commercial version and an open source version of their TSP++
VIII. Service Provider (TSP) development questions
1. How do I write a TSP?
The most common way to write a TSP is to take the source code for an existing TSP and use it as a template for writing a new one. Microsoft has made the source code for a simple TAPI 1.x modem TSP (ATSP) and a simple TAPI 2.x modem TSP (ATSP32). The source code for these TSP\’s can be found on the Microsoft Developer Network (MSDN) CD library.
3. How can I debug a TSP?
Microsoft has a special TSP called the "Repeater TSP" that traps and displays all data sent to and from a TSP you want to debug. This Repeater TSP is available in the MSDN library on the Platform SDK.
When you write a TSP it is strongly suggested that you incorporate some sort of tracing mechanism that can be turned on and off as necessary. Not only will this be an extremely useful tool when debugging your TSP, but it can also prove invaluable when others are using your TSP and trying to get it to work with other TAPI applications.
TSP++ Software Development Kit Download
The TSP++ SDK has been used by some of the largest companies in the world to create TAPI-compliant service providers for their hardware. Version 2.0 is now available for free under an open-source GPL license.
This distribution includes the full source and documentation to the library, along with samples which may be compiled using Microsoft Visual Studio 6.0.
Higher performance, more robust TAPI service providers can be built using our commercial version of TSP++ – Version 3.0.
The solution was:
- Create a new C++ project for a Win32 DLL; choose the "empty (no
files)"
one
- Copy the following files from the ATSP32 folder into your new project
folder:
— Atsp.h
— Resource.h
— Atsp.rc
— Atsp.c
— Atsp32.Def
Microsoft Windows CE .NET 4.2
Sample TSP
The following topics contain the header and source files for a code example that illustrates how to write a customized TSP by using the TSPI that is supported in Windows CE.
Telephony Service Provider Interface (TSPI)
A Telephony Service Provider (TSPI) handles device-specific controls for communications programming. A TSP must conform to the Telephony Service Provider (TSPI) in order to function as a service provider within the Microsoft Telephony environment. TSPI defines the external functions exposed by a telephony service provider supplied with communications equipment.
A TSP author must be familiar with the material in Microsoft Telephony Overview, which covers general telephony architecture and provides an overview of material common to several telephony APIs. For example, this section contains a list of session control operations, such as Park, with descriptions of each operation and jumps to related TAPI 2.2, TAPI 3, and TSPI programming elements.
标签:tspi, 开发, 资料0929 smartphone 2003 vs2005 sms 开发资料
[hide]最近看到人家有需求,想做一个短消息处理程序,对于指定人发送的短消息可以在TMAIL.EXE之前抢先接收保存。
找了找资料,最近手头不空,[/hide]
如何能从smartphone或PPC中的Inbox里面读取出SMS
Simmgr.lib Simmgr.h 没记错的话是这样的,你在C#中只能用Invoke方法来实现
我在微软的网页上看到是利用IMailRuleClient的方法来实现
在PocketPC2003或smartphone2003里,如何去截获一条短信?一定要在系统里的那短信程序收到之前截获.POCKET PC 2003 SDK里有一个例子(C:\\Program Files\\Windows CE Tools\\wce420\\POCKET PC 2003\\Samples\\Win32\\Mapirule
(原创)CE MAPI实例讲解 — 如何获取Inbox里的所有消息(一)
无聊客的专栏 寻找逝去的岁月
如何获取tmail(就是我们熟称的收件箱程序)下各个Message Box下的消息
Receiving SMS Messages Inside a Managed Application Maarten Struys PTS Software
Summary: In this article we describe a way to receive SMS messages in a managed application without the SMS message appearing in the Inbox and without showing a bubble notification when the SMS message arrives. The sample code will run on a Pocket PC 2003 Phone Edition device. With small modifications, mainly in the MMI part, it should run on a Smartphone 2003 as well.
在托管应用程序内部接收SMS消息
2005.11.09 来自:MSDN开发精选 Maarten Struys
尽管.NET Compact Framework版本1.0提供了非常强大的功能,但是它对电话功能的支持却很少。使用P/Invoke,可以相当容易地访问Phone API和SIM API,如文章“Accessing Phone APIs from the Microsoft .NET Compact Framework”中所描述的那样。对于Windows Mobile 2003软件来说,如果SMS消息没有出现在收件箱中,则没有直接的API可用来立即处理在托管应用程序内部接收的SMS消息。SDK文档引用IMailRuleClient接口来处理应用程序内的传入消息。MAPI规则客户端(MAPI Rule Client)是可以实现IMailRuleClient接口的COM对象。注册时,收件箱应用程序将会加载MAPI规则客户端。注册后,传入的SMS消息会传递给MAPI规则客户端,由它决定如何处理该传入消息。
Smartphone 2003 SDK和Pocket PC 2003 SDK中附带了很多代码示例。其中的一个示例实现了简单的邮件规则客户端。它位于Pocket PC 2003 SDK的子文件夹“\\POCKET PC 2003\\Samples\\Win32\\Mapirule”中。对设备进行注册后,该示例MAPI规则客户端会接收所有的SMS消息,并将它们传递给收件箱(包含字符串“zzz”的消息除外)。这些消息由MAPI规则客户端本身进行处理,以便在MessageBox中显示消息和发件人的电话号码,然后删除SMS消息
关于在PPC上接收短信的奇怪问题
在PPC上发送接收短信应该是很简单的问题,因为微软提供了Sim.lib库……
主题的问题解决了,主要是mobile自己的一个名为tmail.exe的线程,占用了接收短信的句柄。所以我们已经无法打开了……
现在又有另一个问题,对于收普通的短信没有问题。但我的目的是收PUSH的消息。不
在托管应用程序中接收 SMS 消息发布日期: 11/30/2004 &line; 更新日期: 11/30/2004
Maarten StruysPTS Software
适用于:Microsoft® .NET Compact Framework 1.0Microsoft® Visual Studio® .NET 2003
下载接收 SMS 示例。
摘要:在本文中,我们说明了一种在托管应用程序中接收 SMS 消息的方法,而 SMS 消息不会出现在收件箱中并且当 SMS 消息到达时不显示弹出通知。示例代码将运行在 Pocket PC 2003 Phone Edition 设备上。只要稍加修改(主要在 MMI 部分中),它应该也可以运行在 Smartphone 2003 中。
What Others Are Downloading
Others who downloaded .NET Compact Framework Sample: Receiving SMS Messages also downloaded:
.NET Compact Framework Sample: Send SMS
.NET Compact Framework Sample: Phone API
.NET Compact Framework Sample: Serial Communications
2556 Course Sample: Learn to Build Mobile Applications with Visual Studio and the .NET Compact Framework
.NET Compact Framework 2.0 Service Pack 1 Redistributable
IMailRuleClient is a COM interface – you cannot implement it in .NETCF, you must use eVC++ to create a dll to intercept SMS messages. You can use a number of techniques to pass this data to a managed program, e.g. use a messagewindow in your .NETCF application and have the dll broadcast a specific message when the SMS arrives.
Accessing Phone APIs from the Microsoft .NET Compact Framework
Derek Mitchell DEVBUZZ.COM, Inc. April 2003
Applies to: Microsoft® .NET Compact Framework 1.0 Microsoft Visual Studio® .NET 2003
Summary: Learn how to access Phone APIs from your .NET Compact Framework-based application.
VS2005 RC中,开发本地代码的Smartphone程序,用设备进行debug的问题
当用VS2005开发程序时,如果这样做会出现错误:
用C++开发基于Smartphone的本地代码程序
试图在实际设备上进行调试(直接Ctrl+F5运行没有问题)
出现错误为:
无法进行调试,VS2005报告错误。
解决办法:
把C:\\Program Files\\Microsoft Visual Studio 8\\SmartDevices\\SDK\\SDKTools\\sdkcerts.cab拷贝到设备上,运行该文件。然后重新启动设备。
0422 WINCE VS.NET 开发 ActiveSync 模拟器 Emulator Preview activesync
"Microsoft Device Emulator Preview" Visual Studio 2003 activesync
http://www.yippeesoft.com/blog/p/0420vsnetwceasimg2.php
0420 WINCE VS.NET 开发 ActiveSync 模拟器 2
利用 Microsoft Device Emulator Preview 开发
感觉这个玩艺是从VS2005分离出来的
运行 Register Device Emulator
运行 Device Emulator Manager
运行 Emulate Smartphone-WM 2003 SE(Cold Boot)
Device Emulator Manager--refresh
选择 CSID,右键 -CRSH
这时候 ACTIVESYNC就和模拟器连接了
然后VS2003,运行程序时选择 SP DEVICE,选择设备,不选择模拟器即可
Device Emulator Preview available on Microsoft Betaplace
The Microsoft Device Emulator Preview 1.0 is available on Microsoft Betaplace. This is an open beta for a stand-alone version of the Device Emulator that ships with Visual Studio 2005 Beta 2. The Guest ID is “MSDEVICE” (case is important—it’s all caps). This is an open Beta and we encourage you to use the emulator and provide us feedback in the Device Emulator Forum.
This preview can connect to Visual Studio 2003 and Embedded Visual C++ using Active Sync. This requires that you use start a Device Emulator and run the Device Emulator Manager, then cradle the emulator in the Manager. This will now allow you to create an ActiveSync partnership and use the emulator as you would any other device. Please note that in this case, you deploy to a device, not to the emulator within Visual Studio or eVC.
This is an English-language only beta release. We will not be shipping the beta in any other languages. See the notes on the beta site for installation isntructions and other important notes.
Is it possible to use the device emulator with VS.NET 2003 so that it can directly be called (for connect/deploy ..etc) from the VS.NET 2003 IDE?
Yes – just use the Device Emulator Manager to cradle an emulator instance, then tell VS.NET 2003 to connect to a hardware device via ActiveSync.
Thanks Barry.
I am not sure about such option in VS.NET 2003
I have only two available options in VS.NET 2003
1. Tools->Connect to device which shows Pocket PC 2002 Emulator (Default) and Pocket PC Device. (I would like to configure it to get an an option to connect to Device Emulator)
OR
2. Tools-> Connect Emulator using Activesync which shows – no pocket PC 2003 or Smartphone 2003 Emulators were found. (I would like to configure it to use the Device Emulator)
Barry was talking about the new, ARM-based, emulator which comes with Visual Studio 2005 and is downloadable separately as \’Microsoft Device Emulator 1.0\’. To use this in VS.NET 2003, run dvcemumanager.exe from (typically) C:\\Program Files\\Microsoft Device Emulator\\1.0. Select the appropriate image – for the sake of example we\’ll use \’Pocket PC 2003 SE Emulator\’ – then choose Actions, Connect from the menu to start the image.
In ActiveSync, go to Connection Settings, and in the \’Allow connections to one of the following\’ drop-down select DMA. In Device Emulator Manager, keeping the running emulator selected, choose Actions, Cradle. ActiveSync should now connect (assuming you don\’t have a physical device already connected).
In VS.NET 2003, you can now connect to your emulator by selecting \’Pocket PC Device\’, just as you would for a physical device.
The VS.NET 2003 emulator is x86-based (using your PC\’s processor directly), based on technology from Virtual PC. They use a very old \’Virtual PC Application Switch\’ driver (I believe). XP SP2 disables this driver because it\’s believed to have problems with No Execute/Execute Disable/Data Execution Prevention (AMD/Intel/Microsoft terminology). If the driver is disabled, IIRC the VS.NET 2003 emulator no longer works.
I m new to using VS2005 for smartphone2003 native development. As it seems I m not very impressed wid its claims of scoring over eVC 4.0. Neways, as I try to deploy any app (even the template for that matter), it shows this error message box–"Failed to open VPC network driver. The driver might not be installed".
MSFT ppl hav any explanation for this behaviour??
I sserched up the forums and got the reason why the error was there. It was because cVC 4.0 SP3 was already installed on my machine. It was preventing the VPC network driver from being installed with whidbey.
To solve this, (on another machine with eVC installed only) I first uninstalled eVC and then installed VS2005. Thus I got rid of this error. I still dont have a clue how to make both eVC and whidbey run simultaneously. But I doubt why wud anybody want to develop on both IDEs simultaneously.
So this post can be considered closed.
0420 WINCE VS.NET 开发 ActiveSync 模拟器 2
WINCE VS.NET 开发 ActiveSync 模拟器 1
http://www.yippeesoft.com/blog/p/vsnetwceasimg1.php
今天再次试验了一把 ActiveSync 连接模拟器
卸载了 ActiveSync 4.1,重新安装3.8,再重新安装SDK/模拟器/中文模拟器
. If an SDK such as Smartphone 2003 SDK is installed before the installation of
this tool, the corresponding Device/Emulator may not appear in the device list
of any remote tool. When that happens, re-install the SDK.
Chinese Simplified Emulation Images.msi
Windows Mobile 2003 Second Edition Emulator Images for Smartphone – WWE.msi
Microsoft SMARTPHONE 2003 SDK.msi
另外就是4.1的问题:
概述
ActiveSync® 4.1 is the latest sync software release for Windows Mobile 5.0-based devices.
Microsoft ActiveSync provides a great synchronization experience with Windows®-based PCs and Microsoft Outlook right out of the box. ActiveSync acts as the gateway between your Windows-based PC and Windows Mobile-based device, enabling the transfer of Outlook information, Office documents, pictures, music, videos and applications from your desktop to your device. In addition to synchronizing with a desktop PC, ActiveSync can synchronize directly with Microsoft Exchange Server 2003 so that you can keep your e-mail, calendar data, notes and contact information updated wirelessly when you’re away from your PC.*
New features include:
• New partnership wizard to help customers more easily setup a sync partnership
• Faster transfer of data files including media
• Ability to sync photos assigned to contacts from Outlook on the desktop
ActiveSync 4.1 supports PC sync via USB cable, Bluetooth, or infrared connection.
NOTE:
Faster file transfer speed and photo sync via Outlook are only available for Windows Mobile 5.0-based devices.
Remote PC Sync (via Wifi or LAN) has been removed due to Enterprise customer feedback around security issues. If you are using this feature on a Windows Mobile 2003-based device, please continue using ActiveSync 3.x or earlier.
Beginning in 2006, customers using Microsoft Exchange 2003 Service Pack 2 with devices running the Messaging and Security Feature Pack for Windows Mobile 5.0 will benefit from the following feature enhancements in ActiveSync 4.1: DirectPush Mail, local device wipe, and certificate-based authentication to Exchange Server.
*Connectivity and synchronization may require separately purchased equipment and/or wireless products (e.g., WiFi card, network software, server hardware, and/or redirector software). Service plans are required for Internet, WiFi and phone access. Features and performance may vary by service provider and are subject to network limitations. See device manufacturer, service provider and/or corporate IT department for details.
Remote PC Sync (via Wifi or LAN) has been removed
原来如此
另外就是WINXP的防火墙,否则会报告 服务失败
honghuili 2005-11-3 02:59
Microsoft Device Emulator Preview的使用
近日从SP过渡到PPC阵营。以前在PC机上装过Microsoft Device Emulator Preview,也没怎么用。现在,可以先在这个模拟器上做做试验,然后再折磨我的818:-)
经过几天的折腾,感觉不是很好。资源占用比较高,而且还不稳定——可能和我在模拟器上瞎装软件有关吧。最要命的是:模拟出来的PPC是32Mb的,还是英文系统。装上中文支持,后台再多跑几个程序,内存空间就剩不下多少了。在模拟器选项中到是有RAM SIZE一项,但是灰色的,没法修改。不过,既然有这么一个选项,说明这个参数是可以修改的。
昨天晚上终于决定要仔细研究一下这个模拟器软件了。在安装目录下,DeviceEmulator.exe竟然需要在命令行模式下运行,呵呵,参数还不少,看来还有戏。
选几个比较重要的参数:
/a:保持模拟器窗口总在最前面
/flash filename:用一个文件模拟Flash memory。我用了一下,PPC上出现了一个NAND Flash目录,可以拷贝文件到这里。不清楚PPC上的这个目录在现实中是怎么出来的,SD和CF卡都不是这样的目录名吧?或者,是有备夹的那种机器,能插U盘?呵呵,请用过的解答一下。
/hostkey keyiname:指定热键
/language LangID:[color=Red][b]指定用户界面语言[/b][/color],LangID是4位的十进制数。可以指定语言?微软这么牛,25.5Mb的PPC_2003_SE_WWE_ARMv4.bin文件(PPC 2003SE的模拟器)中还能包括若干种语言?我还窃喜了一阵——终于可以不用装什么什么中文支持包了,可以节省不少内存。但后来试了几次,用了若干个十进制数,都是英文界面。上当,上当。不过,既然有这个参数,说明是可以指定语言的。究竟怎么使用,我想还是用VS编程的朋友们知道些吧。请高手指点。
/memsize size:呵呵,主角来了。[b][color=Red]指定模拟器RAM大小[/color][/b],单位是Mb。可以是64——256Mb间任意大小,默认为64Mb,后来试了试,如果要模拟64Mb的机器,需要在这里设置为98Mb左右。为什么?我猜测,可能是把操作系统占用的空间,大约3xMb也都算进去了。可这3xMb的空间应该算是ROM吧?
/rotate angle:旋转屏幕方向,可以是0,90,180和270度。
/s filename:指定保存模拟器状态的文件名。
/sharedfolder directoryname:指定一个目录,其中的内容即为PPC的Storage Card。
/skin filename:加载皮肤,呵呵,就是PPC的外壳,没什么用处。
/video xx:指定窗口大小和色深
/z:放大窗口为原来的两倍
现在,我们可以指定模拟器的运行参数,看看我的例子。在命令行窗口中运行如下命令(在Device Emulator Preview目录中):
DeviceEmulator /memsize 98 /s myppc PPC_2003_SE\\PPC_2003_SE_WWE_ARMv4.bin
指定模拟器RAM为98Mb(实际为64Mb),退出时保存状态到myppc文件文件中。如果想在退出之后重新进入该模拟器,可以在Device Emulator Manager中,点击菜单:File-Restore Image……在弹出的对话框中选择myppc即可。
0210 开源开发网站
几个开源网站
http://gro.clinux.org/
GRO 为开放源代码软件开发者提供全方面的免费服务,包括CVS仓库, 邮件列表, BUG跟踪, 在线论坛, 任务管理, 网站空间, 项目存储及完整的备份, 并且完全是通过WEB方式来管理的。
© 2002-2004 Wuhan Implight Infotech Co. Ltd.
武汉光衡信息技术有限公司
武汉光衡信息技术有限公司为企业提供软件协作开发平台、内容及知识管理平台、智能软件技术产品、软件工程及软件开发技术培训等服务。光衡公司创立于2002年8月,专注于软件工程、人工智能及智能建筑领域,竭力为客户提供基于开放标准的、更有生命力的产品及服务。
http://sourceforge.net/index.php
SourceForge.net
Create, Participate, Evaluate
Powered by the SourceForge® collaborative development environment from VA Software
©Copyright 2006 – OSTG Open Source Technology Group, All Rights Reserved
SourceForge.net is the world\’s largest Open Source software development web site, hosting more than 100,000 projects and over 1,000,000 registered users with a centralized resource for managing projects, issues, communications, and code. SourceForge.net has the largest repository of Open Source code and applications available on the Internet, and hosts more Open Source development products than any other site or network worldwide. SourceForge.net provides a wide variety of services to projects we host, and to the Open Source community.
SourceForge.net is owned by OSTG, Inc. ("Open Source Technology Group").
OSTG, Inc (Open Source Technology Group) is the leading network of technology sites for today\’s IT managers and development professionals. OSTG sites provide a unique combination of news, original articles, downloadable resources, and community forums to help IT managers, development professionals, and end-users make critical decisions about information technology products and services. OSTG delivers more than 270 million page views and reaches 18 million unique visitors per month.
OpenSVN.csie.org
OpenSVN will send the initial password to your email(s). Only one email address is acceptable, but we suggest you provide two different emails to ensure you\’ll get the password. Please do NOT enter the email provided by aol.com or borgsoft.de, they will mark our mail as spam
.
The word \’csie\’ here stands for
\’csie\’ 是由下列英文縮寫而來: "CSIE is Something Interesting and Excellent".
http://developer.berlios.de/
BerliOS Developer is a free service to Open Source developers offering easy access to the best in CVS/SVN, mailing lists, bug tracking, message boards/forums, task management, site hosting, permanent file archival, full backups, and total web-based administration.
http://sf.linuxforum.net/
欢迎访问中国开源计划站!
——————————————————————————–
中国开源计划站(SourceForge China)为开放源码计划的开发者提供全方面的免费服务, 包括CVS仓库, 邮件列表, BUG跟踪, 在线论坛, 任务管理, FTP空间, 项目主页及完整的备份, 并且全部使用简便的WEB方式管理.
《中国linux论坛》是由David(邓光磊)于99年8月1日创立的。它是一个中立的,非赢利的网站。目的是为了推广自由软件文化,交流和普及linux技术,并致力于营造一个最具亲和力的,最具活力的Linux爱好者社区。
http://cosoft.org.cn/
本协会的全称是“中国软件行业协会共创软件分会”,通常称为“共创软件联盟”,英文译名是Co-Create Software League,英文缩写是CoSoft。本协会是在2000年2月,由立志振兴中国软件产业的机构和个人发起并依法登记成立的、非营利的软件技术联盟。本协会由会员、理事会和执行机构组成
共创联盟为开放源代码软件开发者提供全方面的免费服务,包括CVS仓库, 邮件列表, BUG跟踪, 在线论坛, 任务管理, 网站空间, 项目存储及完整的备份, 并且完全是通过WEB方式来管理的.
http://nongnu.org/
This web site (called Savannah) is a central point for development, distribution and maintenance of Free Software that runs on free operating systems.
If you would like to use these facilities to host your project, then go to the Register new project menu entry that is displayed after login.
If you would like to make your project part of the GNU project, then write to gnu@gnu.org. An attempt to register a project that is not part of the GNU project will also give you the opportunity to apply. Before doing this, you should read the GNU Code Standards to find out if your software complies with them and talk to your fellow developers about it. The GNU Software Evaluation Team page will also help you understand the philosophical and technical aspects of the GNU project.
http://www.gnu.org
Welcome to the GNU Project web server. The GNU Project was launched in 1984 to develop a complete UNIX like operating system which is free software: the GNU system, (GNU is a recursive acronym for “GNU\’s Not UNIX”; it is pronounced “guh-noo,” “noo” being like the American “new”). Variants of the GNU operating system, which use the kernel Linux, are now widely used; though these systems are often referred to as “Linux”, they are more accurately called GNU/Linux systems.
The Free Software Foundation (FSF) is the principal organizational sponsor of the GNU Project. FSF receives very little funding from corporations or grant-making foundations, but rely on support from individuals like you. Please consider helping the FSF in one of the ways described under Help FSF! (in the navigation bar).
http://rt.openfoundry.org
歡迎使用自由軟體鑄造場專案管理平台(以下簡稱「OpenFoundry」) ,您可以利用OpenFoundry使用手冊(以下簡稱「本手冊」)來協助您快速的學習OpenFoundry的操作及使用步驟。
自由软体铸造场将于八月十八日(星期四)起,提供崭新的项目开发平台并进行 Beta 测试。自由软体铸造场考虑到使用者的作业需求及项目管理模式,全新的项目开发平台具备美观且更方便的操作介面,同时还新增了『个人与项目图示』、『项目检视方式』、『项目网页空间』等功能。
中央研究院资讯科学研究所
http://www.javaforge.com Free SVN Hosting Server
Welcome, Anonymous JavaForge User
Welcome to your JavaForge start page. From here, you have a quick look at things such as your issues, forums, source code commits, etc. You can also quickly see what other projects are in the system by clicking on the Projects tab in the upper left corner of the site. If you have a project in mind, you should CREATE A NEW PROJECT!. It\’s quick, easy, and soon you can take full advantage of JavaForge.com.
JavaScud介绍
——————————————————————————–
JavaScud OpenSouce是一个为开源项目提供免费服务的网站.
本站可为开源项目提供论坛栏目,Subversion,Wiki空间,项目网站等服务.
论坛使用Jive Forum,可以为开源项目提供论坛栏目用于技术讨论等.
Wiki使用Confluence,可以为开源项目编写文档或者制作网站.
版本控制使用Subversion 1.2,可以为开源项目提供版本控制服务.
为开源项目提供网站空间,用于开发,演示.(Mysql,Php,Java).
随着网站发展,我们还可以开发新的程序,申请新的组件,例如缺陷跟踪系统等.
项目申请:可以发送邮件或到论坛发送悄悄话.详情请浏览这里.
防框架JS WatchThatPage RSS HTML XML web开发的浏览器(工具)插件
<script type="text/javascript" >
var web = document.location;
if (top.location !== self.location) &leftsign;
alert("你现在访问的是"+web+"\\n 检测到你使用框架浏览本站内容,请不要使用框架跨站调用本站内容。");
this.location="http://www.yippeesoft.com/blog/";&rightsign;
</script>
利用搜索引擎的跟踪服务对有持久兴趣的东西,你不需要天天输入关键词搜索它的最新发展。你只需一个email地址,google的Alert服务就会发给你更新了的你感兴趣的新闻。另外一些软件如WatchThatPage,还可以纪录某个你感兴趣的网页的更新变化。
http://www.watchthatpage.com 这个网站提供一种网页监视的服务,它会把你指定的页面变化情况通过邮件发给你,让你及时获取你关注的网站信息变化
最近正好想弄一个HTML RSS 监视软件,因为我每次都要打开网页,觉得很麻烦,所以就想RSS XML解析,可是很多网站又没有RSS XML,所以就需要HTML2XML,就需要正则表达式,然后又想到 模拟提交 ~~~
参考资料:
正则表达式之道[转]
http://blog.csdn.net/jbliuhit/archive/2005/11/29/539524.aspx
正则表达式使用详解
http://blog.csdn.net/jojo_blog/archive/2005/12/05/544235.aspx
用正则表达式作html2RSS服务
http://civ3.cnblogs.com/archive/2005/10/16/256119.html
This script will gobble up an HTML page
http://rss.molar.is/verkfaeri/html2rss.pl.txt
rss2html 2.7
http://cn.shareware-download.org/rss2html-i5529.php
RSS 2.0规范
http://blog.donews.com/softbunny/articles/11030.aspx
RSSxl – Convert an HTML Web Page to RSS
http://www.wotzwot.com/rssxl.php
A Simple RSS Feed
http://msdn.microsoft.com/coding4fun/xmlforfun/SimpleRSS/default.aspx
RSS Bandit: an RSS/Atom aggregator (also known as an RSS Reader) for your desktop written with the .NET Framework.
http://www.rssbandit.org/
RSSConnect by PerfectXML.com is a C# .NET application that allows you to read RSS feeds.
http://www.perfectxml.com/RSSConnect/
1、PowerBand
PowerBand是一个IE的插件(同时也支持MyIE2/Maxthon)。提供了对HTML动态分析,跟踪,编辑的功能。能够方便快捷的分析HTML页面的结构,有助于网页设计人员/网站开发人员调试,分析晦涩的HTML代码。这是我最早使用的HTML开发辅助工具,现在是2.1版了,支持ASP.NET ViewState的解码,支持DebugView,类似于VC中的Watch,通过这个功能能够显示页面中元素对象的详细内容。同时,PowerBand也支持即时脚本交互功能。
下载PowerBand2.1 http://www.xingworld.net/download/soft/program/powerband21.zip
2、HttpWatch
HttpWatch又是一个IE下的强劲插件,HttpWatch最主要的功能就是对通过浏览器进行网络通讯的数据进行监控和分析,当你在浏览器的地址栏上请求一个URL或者提交一份表单时,HttpWatch帮你分析http请求的head信息,访问页面的cookie信息,Get和Post的详细数据包分析,Catch内容分析,QueryString分析。想知道GMail或者是任何一个AJAX网页时如何和服务器进行数据交互的吗?用这个插件就可以一览无余了
下载HttpWatch3.2.0.63 http://www.superdown.com/soft/8447.htm
下载注册机 http://www.superdown.com/soft/16715.htm
3、IE Developer Toolbar
第三个插件还是基于IE下的,不过这个可是微软发布的Web开发IE工具栏,实现的功能如下:
浏览和修改Web页的文档对象模型(DOM)。
通过多种技术方式定位、选定Web页上的特定元素。
禁止或激活IE设置。
查看HTML对象的类名、ID,以及类似链接路径、tab顺序、快捷键等细节。
描绘表格、单元格、图片或选定标签的轮廓。
显示图片象素、大小、路径、替代文字等。
即时重定义浏览器窗口大小到800×600或自定义大小。
清空浏览器缓存和cookie,被清除项可从所有对象或给定域中选择。
直接访问关联W3C规范参考、IE开发组blog或其他来源。
显示设计时标尺,帮助对齐对象。
官方下载 http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
4、ViewPage
ViewPage是MyIE2/Maxthon浏览器插件,这个插件不算是纯粹的开发辅助,它看起来更像是资源提取,可以方便的提取网页中的源代码,包括所有框架的源代码,提取图像、Flash、媒体文件、链接,我最欣赏的就是能方便的查看页面中包含的所有js文件源代码和所有css源代码。
下载ViewPage1.2 for Maxthon http://forum.maxthon.com/forum/index.php?showtopic=280
web开发的浏览器(工具)插件 嘟嘟老窝
http://www.duduwolf.com/post/Web_Development_Tools.asp 1207
Catalog > Microsoft Smartphone > Smartphone 2002 operating system > How to connect Smartphone 2002 Emulator to the Internet
http://msmobiles.com/catalog/i.php/158.html
How to connect Smartphone 2002 Emulator to the Internet
This assumes that your desktop computer can access the internet without any proxy in your network settings www.yippeesoft.com
The Smartphone 2002 emulation needs to have a "proxy" set up that connects "My Corporate Network" to "The Internet" but that "proxy" does not need a machine name or port.
From the Home Screen on your SPV, press the left SoftKey "Programs"
Press "8" to launch the Settings program
Press "7" to select the Data Connections setting
Press the right SoftKey "Menu"
Highlight the "Edit Connections" Menu Item
Press the "Action" key www.yippeesoft.com
Press "3" for editing your Proxy Connections
Press the right SoftKey "Menu"
Highlight the "Add Menu" Menu Item
Press the "Action" key www.yippeesoft.com
Type in any text into Description Edit Box (i.e., your machine name)
Press the "Down Arrow" key to get to "Connects From:" Spin Control
Press the "Right Arrow" 3 times to get to "My Corporate Network"
Press the "Down Arrow" key to get to "Connects To:" Spin Control
Press the "Left Arrow" key to get to "The Internet"
Press the left SoftKey "Done" to get back to the Proxy Connections Window
Press the left SoftKey "Done" to get to the Connections Window
Press the left SoftKey "Done" to get to Data Connections Window
Press the left SoftKey "Done" to get to the Settings Window
Press the left SoftKey "Done" to get to the Programs Listing
Press the left SoftKey "Home" to get back to the Home Screen
You will also need to verify that your desktop磗 ActiveSync application is set up to allow your SPV to use the desktop磗 internet connection.
From your desktop, open the ActiveSync program
Press the "Options" button on the ActiveSync dialog box
Select the "Rules" tab of the Options dialog box
Verify that the "Connection:" drop down selection box says "The Internet"
Press the "OK" button to close the Options dialog box.
You should now be able to connect to the internet with the Pocket Internet Explorer located in the Smartphone 2002 Emulator www.yippeesoft.com
Catalog > Microsoft Smartphone > Smartphone 2003 operating system > How to connect Smartphone 2003 Emulator to the Internet
http://msmobiles.com/catalog/i.php/375.html
How to connect Smartphone 2003 Emulator to the Internet
After making some settings:
… you can have full access to Internet inside of your Smartphone 2003 emulator (screenshot below shows mobile.msmobiles.com – a mobile version of this website):
Below instructions follow how to do it!
This assumes that your desktop computer can access the internet without any proxy in your network settings
The Smartphone 2003 emulation needs to have a "proxy" set up that connects "My Corporate Network" to "The Internet" but that "proxy" does not need a machine name or port.
From the Home Screen on your Smartphone 2003 emulator, press the left SoftKey "Start"
navigate to the Settings program
navigate to Data Connections setting
Press the right SoftKey "Menu"
Highlight the "Edit Connections" Menu Item
Press the "Action" key
Press "3" for editing your Proxy Connections
Press the right SoftKey "Menu"
Highlight the "Add Menu" Menu Item
Press the "Action" key
Type in any text into Description Edit Box (i.e., your machine name)
Press the "Down Arrow" key to get to "Connects From:" Spin Control
Press the "Right Arrow" 3 times to get to "Work"
Press the "Down Arrow" key to get to "Connects To:" Spin Control
Press the "Left Arrow" key to get to "The Internet"
Press the left SoftKey "Done" to get back to the Proxy Connections Window
Press the left SoftKey "Done" to get to the Connections Window
Press the left SoftKey "Done" to get to Data Connections Window
Press the left SoftKey "Done" to get to the Settings Window
Press the left SoftKey "Done" to get to the Programs Listing
Press the left SoftKey "Home" to get back to the Home Screen
浏览中文网页乱码,浏览WAP.SINA.COM报告 不支持FRAME
备注: www.yippeesoft.com
Question
Why I cannot connect to the Pocket PC emulator when I am offline? It shows "Timeout: Failed to connect to the device" error message. Old Pocket PC 2000 Emulator works without any problems. How can I solve this problem with Pocket PC 2002 Emulator?
Answer
Pocket PC 2002 Emulator uses TCP/IP and cannot work without at least one open TCP/IP connection. You can setup Microsoft Loopback Adaptor and the emulator will use this connection. Here are step-by-step instructions how to setup Microsoft Loopback Adaptor under Windows 2000 and Windows XP.
我使用中文版本和英文版本均测试PASS www.yippeesoft.com
新建了一个CMD,启动中文模拟器:
start "" "C:\\Program Files\\Windows CE Tools\\Common\\Platman\\bin\\PBEmulator.exe" /MemorySize 128 /Fastbackground /Skin "D:\\ms\\wince\\sp2003\\Emulation\\smartphone_emulator_skin.xml" /CEImage "D:\\ms\\wince\\sp2003\\Emulation\\SP_2003_WWE_VIRTUAL_RADIO.binc" /VMName "Smartphone 2003 – Smartphone 2003 Emulator" /HostKey 165
增大了内存。
开始--设置--其他--数据连接-- www.yippeesoft.com
INTERNET连接--右键菜单--编辑--
代理服务器连接--右键菜单--添加--
连接方-单位 连接到-INTERNET 代理服务器 www.yippeesoft.com:80
输入数字经常要切换 NUMBE 否则 方向键会变成数字建~
标签:.net, int, internet, vs.net, win, wince, 开发, 模拟, 模拟器