發表文章

目前顯示的是 4月, 2008的文章

References PInvoke Sample

圖片
PInvoke.net is primarily a wiki, allowing developers to find, edit and add PInvoke * signatures, user-defined types, and any other information related to calling Win32 and other unmanaged APIs from managed code (written in languages such as C# or VB.NET) http://www.pinvoke.net/index.aspx

Input method of Mobile Liu

圖片
http://cid-a9e0769a31b89710.skydrive.live.com/self.aspx/%e5%85%ac%e9%96%8b/Pocket_liu.rar step1 liu.arm.cab and liuunicode.tab copy to windows folder step2 run liu.arm.cab step3 soft reset

Satellite image

圖片
URL : http://www.cwb.gov.tw/V5/observe/satellite/Data/s1p/s1p-2008-04-22-18.jpg Use JPG Replace URL word Day or Hour ,but limit 48 hour

Microsoft Student Day

圖片
地點:國立東華大學 時間:2008/4/23 pm 3:00-4:00 內容:Microsoft .NET 系統實作-Windows Mobile Developer http://www.microsoft.com/taiwan/student/events/msp/

Determinging a SQL CE database version

internal enum SSCEVersion { Unknown, v3_1, v3_5 } internal static SSCEVersion GetDatabaseVersion(string path) { uint signature = 0; using (FileStream stream = new FileStream(path, FileMode.Open)) { using (BinaryReader reader = new BinaryReader(stream)) { stream.Seek(16, SeekOrigin.Begin); signature = reader.ReadUInt32(); } } switch (signature) { case 0x00357b9d: // 3.5 return SSCEVersion.v3_5; case 0x002dd714: // 3.1 return SSCEVersion.v3_1; default: return SSCEVersion.Unknown; } }

Mobile ResizeForm

圖片
Private realSize As Size _ Public Shared Function MoveWindow(ByVal hWnd As IntPtr, ByVal X As Integer, ByVal Y As Integer, ByVal Width As Integer, ByVal Height As Integer, ByVal Repaint As Boolean) As IntPtr End Function _ Public Shared Function GetWindowLong(ByVal hWnd As IntPtr, ByVal nItem As Integer) As Integer End Function _ Public Shared Sub SetWindowLong(ByVal hWnd As IntPtr, ByVal nItem As Integer, ByVal nValue As Integer) End Sub _ Public Shared Function GetCapture() As IntPtr End Function Public Const GWL_STYLE As Integer = -16 Public Const WS_CAPTION As Integer = &HC00000 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click realSize = New Size(224, 144) ResizeForm() End Sub Private Sub ResizeForm() Dim x, y As Integer x = (Screen.PrimaryScreen.WorkingArea.Width - realSize.Width) / 2 y = (Screen.PrimaryScreen.WorkingArea.Height - realSize.Height

Windows Mobile 6 Localized Emulator Images

This package includes localized Windows Mobile 6 emulator images that can be used with Visual Studio to test applications on different localizations or simply as standalone emulators without Visual Studio. http://www.microsoft.com/downloads/details.aspx?familyid=38C46AA8-1DD7-426F-A913-4F370A65A582&displaylang=en