顯示具有 Microsoft 標籤的文章。 顯示所有文章
顯示具有 Microsoft 標籤的文章。 顯示所有文章

2010年5月13日 星期四

Writing BAT file

Wikipedia Batch file
a batch file is a text file containing a series of commands intended to be executed by the command interpreter.

TECH-RECIPES Using variables in Windows batch files
@echo off
set var=testing 1 2 3
echo The variable is "%var%"

Computing.net DOS variables
@Echo Off
SetLocal EnableDelayedExpansion

Set var1=hello
Set var2=you
Set var3=...
set max=3
For /L %%i in (1,1,%max%) Do Echo !var%%i!

EndLocal

蘇言霖 MS-DOS的程式語言-Batch 進階篇3-3

史萊姆的家 Easy DOS command

2010年4月13日 星期二

PostMessage & SendMessage

SendMessage 是同步的 會等待訊息處理完畢
PostMessage 是非同步的 會將訊息放在佇列中等待處理

C++心得分享 SendMessage() 跟 PostMessage()

維尼的蜂巢 PostMessage和SendMessage的區別

NOTE:
Do not post the WM_QUIT message using PostMessage; use the PostQuitMessage function.

2010年3月16日 星期二

VS2005 IntelliSense

Wikipedia IntelliSense
MSDN - IntelliSense Support in Visual C++

Garry's Bit Patterns Visual Studio 2005 Intellisense Update
Visual Studio and .NET Framework KB947315
FIX: VS 2005 SP1: C++ Intellisense hang when hotfix KB943969 is installed.
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=11587

Visual C++ Team Blog Performance Improvements in Visual C++

Intellisense issues in Visual C++ 2005

2009年12月15日 星期二

Silverlight for Windows Embedded

Silverlight for Windows Embedded
Silverlight for Windows Embedded is a native (C++ based) user interface (UI) development framework for Windows Embedded CE powered devices and is based on Microsoft Silverlight 2.

Silverlight for Windows Embedded Sample Application XamlPerf
Source code is available at \Public\Common\Oak\Demos\Xamlperf.

How to Export an SDK from Microsoft Windows CE Platform Builder version 2.11 to eMbedded Visual C++
1. Choose Add New SDK in Project Menu
2. Select the configuration you want to export, and choose Next.
3. Build SDK and then an executable msi file will be exported.

2009年11月26日 星期四

程式當掉自動死掉

SetErrorMode Function
Controls whether the system will handle the specified types of serious errors or whether the process will handle them.

PowerPolicyNotify
notifies the power manager of the events that are necessary in order to implement a power policy created by an OEM
PowerPolicyNotify

from EsenChang: 讓程式當掉就乖乖的去死

2009年11月9日 星期一

INF reference

MSDN
Overview of INF Files
Microsoft Windows drivers must have an information (INF) file in order to be installed. An INF file is a text file that contains all the information that the Setup components need to install a driver.
Summary of INF Sections
This section describes the INF file sections in the same order that they generally appear in most device INF files.
INF DefaultInstall Section
An INF file's DefaultInstall section will be accessed if a user selects the "Install" menu item after right-clicking on the INF file name.
INF AddReg Directive
An AddReg directive references one or more INF-writer-defined sections used to modify or create registry information.

2009年7月6日 星期一

Package 'Microsoft.VisualStudio.Xaml' has failed to load properly

Package 'Microsoft.VisualStudio.Xaml' has failed to load properly

Micorosft Visual Studio 2008
-> Visual Studio Tools
-> Visual Studio 2008 Command Prompt
devenv /resetskippkgs


resetskippkgs(reset skip packages)的作用:是告訴Visual Studio先清除所有載入失败的VSPackage,重新載入所有VSPackage後再啟動Visual Studio

2009年7月3日 星期五

Windows 7 Multi-touch Using WPF

Windows 7 Multi-touch Using WPF

[DllImport("user32.dll")]
public static extern bool SetProp(IntPtr hWnd, string lpString, IntPtr hData);

SetProp(HWND, "MicrosoftTabletPenServiceProperty", new IntPtr(0x01000000));


WPF Windows 7 Multi-touch
WPF team is working on adding MultiTouch related support for Win7 in WPF.

Disabling Press and Hold in Applications Written for Tablet PC

2009年6月25日 星期四

WPF NotifyIcon

WPF NotifyIcon
from Code Project, I encountered some exceptions when opening it on some Vista and Window 7 computers.

Taskbar Compass: how to use NotifyIcon in WPF
Using System.Windows.Forms.NotifyIcon control


Plus: WPF - Hide the Cursor
Mouse.OverrideCursor = Cursors.None;
Powered By Blogger