嵌入开发(WinCE)的一些经验(7)

来源:本站
导读:目前正在解读《嵌入开发(WinCE)的一些经验(7)》的相关信息,《嵌入开发(WinCE)的一些经验(7)》是由用户自行发布的知识型内容!下面请观看由(电工技术网 - www.9ddd.net)用户发布《嵌入开发(WinCE)的一些经验(7)》的详细说明。
简介:嵌入开发(WinCE)的一些经验

Palm OS ROM

http://www.echoice.com.cn/download/download.asp?softwareID=132

Release configurations use the following macros:

RETAILMSG(cond, printf_exp). Conditionally displays the print message.

RETAILLED(cond, parms). Conditionally outputs WORD values to the LED.

ERRORMSG(cond, printf_exp). Prints "Error: File Line" before the print message.

To enable the debug macros, you must build a debug configuration. Debug configurations use the three retail macros listed above, as well as the following debug macros:

DEBUGMSG(cond, printf_exp). Conditionally displays the print message.

DEBUGLED(cond, parms). Conditionally outputs WORD values to the LED.

DEBUGCHK(expr). Asserts the expression. If expr is FALSE, the macro calls DEBUGBREAK.

DEBUGZONE(zone_id). Tests the mask bit in the current debug zone settings. You can use DEBUGZONE to turn debug zones on or off.

Declare Function TranslateMessage Lib "coredll.dll" (ByVal MSG As String) As Boolean

网上down到的,有关unicode的函数集:

Attribute VB_Name = "modUniCode"

Option Explicit

Public Function MemStringToLong(StringIn As String) As Long

On Error Resume Next

Dim hWorkVal As String

" Convert the String back to Long Integer.

" Converting back to Big Endian format.

Dim i As Long

For i = 4 To 1 Step -1

hWorkVal = hWorkVal & Hex(AscB(MidB(StringIn, i, 1)))

Next i

" Return Long Integer value.

MemStringToLong = CLng("&H" & hWorkVal)

End Function

Public Function LongToMemoryString(ByVal lInputValue As Long) As String

Dim hWorkVal As String

Dim n As Long

Dim i As Long

" Convert to HEX value.

hWorkVal = Hex(lInputValue)

" Check to see if it is not zero.

If hWorkVal <> "0" Then

" Convert to memory storage format (Little Endian).

" For example, 0000A411 would convert to 11A40000.

"

" Place leading zeros in 8 character sequence to

" maintain consistent character count

n = Len(hWorkVal)

If n < 8 Then

hWorkVal = String(8 - n, "0") & hWorkVal

End If

"

" Use ChrB to rebuild Bytes.

For i = 7 To 1 Step -2

LongToMemoryString = LongToMemoryString & _

ChrB(CInt("&H" & Mid(hWorkVal, i, 2)))

Next i

Else

" Just return zeros.

" Use ChrB to build Bytes.

LongToMemoryString = ChrB(CInt("&H00"))

LongToMemoryString = LongToMemoryString & ChrB(CInt("&H00"))

LongToMemoryString = LongToMemoryString & ChrB(CInt("&H00"))

LongToMemoryString = LongToMemoryString & ChrB(CInt("&H00"))

End If

End Function

在EVC3.0下怎样使编出来的窗口最大化(占满所有屏幕),并能够将开始菜单条挡住?

BOOL SHFullScreen(

HWND hwndRequester,

DWORD dwState);

注意包含Aygshell.h

用shfullscreen产生全屏窗口,用showwindow隐藏任务条,用movewindow设置窗口大小为全屏。

代码如下:

#define MENU_HEIGHT 26

RECT rc;

//get window size

GetWindowRect(hWnd, &rc);

SHFullScreen(hWnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON);

ShowWindow(hwndCB, SW_HIDE);

MoveWindow(hWnd,

rc.left,

rc.top-MENU_HEIGHT,

rc.right,

rc.bottom+MENU_HEIGHT,

TRUE);

Windows CE 3.0 supports the standard Winsock 1.1 functions.except the asychronous functions.

这个问题较难回答!但如果您熟悉微软的东东,特别是Visual C++,学嵌入式应用编程用EVC,即嵌入式VC可能上手快一些。

否则,还是考虑其它的吧。因为微软的东东不便宜啊!这个领域的D版没有PC这么多,还是较难找的。

这几个文件最好不要冲突!国为它们被集成同一文件中。

它们唯一的区别是其作用范围不同。例如在Common下的文件对您所编译的每一个平台(如CEPC、SH等)都起作用;Hardware Spec...,这个我也不清楚;Project Spec...是只对这个工程起作用。它们的效果是一样的。

但我认为应在Hardware Spec...中修改!

方法:用您新的驱动程序代替原来的驱动程序,再重新编译。

eVC4:

http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid=28000437

Tools(For PPC2002):

http://www.microsoft.com/mobile/developer/downloads/default.asp

OR: http://www.microsoft.com/mobile/developer/default.asp

CEF:

http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/926/msdncompositedoc.xml

目前大的GIS厂商,如MapInfo和ArcInfo对Paml支持太弱了,我咨询了这两家公司,都说还没有这方面的产品,WinCE下的产品倒是到了应用层次。

国外不少公司有开发出来的产品,比如www.GeoDiscovery.com,但是不提供二次开发接口。不知道大虾们是如何选择这方面的产品的。

提醒:《嵌入开发(WinCE)的一些经验(7)》最后刷新时间 2024-03-14 01:07:13,本站为公益型个人网站,仅供个人学习和记录信息,不进行任何商业性质的盈利。如果内容、图片资源失效或内容涉及侵权,请反馈至,我们会及时处理。本站只保证内容的可读性,无法保证真实性,《嵌入开发(WinCE)的一些经验(7)》该内容的真实性请自行鉴别。