バッチファイル名 %0
第0引数 ⇒ バッチファイル名のみを展開する。
例
1 2 |
> echo %0 batch_path.bat |
1 |
> explorer |
1 |
> explorer . |
1 |
> explorer C:\Windows |
1 |
$ ls -l | pbcopy |
1 2 3 |
$ cat readme.txt | pbcopy $ pbpaste | iconv -t UTF8 |
DLL(Dynamic Link Library)の内部と外部でグローバル変数を共有する(双方からアクセスする)方法
1 |
__declspec(dllexport) int my_array[7]; |
1 2 3 |
extern "C" { __declspec(dllexport) int my_array[7]; } |
キーボード操作(矢印キー)でアプリケーションソフトのウィンドウ(操作画面)を移動(move)させる方法。
Alt + Space ⇒ 移動(M)
略称 | 正式名称 | 説明 |
---|---|---|
UWP | Universal Windows Platform | Win10 以降。XAML(Extensible Application Markup Language)。 旧称: Windows Runtime (WinRT), Metro UI, Modern UI |
WPF | Windows Presentation Foundation | .NET Framework 3.0 以降。 XAML デザイナー |
WinForms | Windows Forms | .NET Framework 1.0 ~ Visual C++ 2010。 Windows フォーム デザイナー |
ATL | Active Template Library | C++テンプレートによるWinAPIのCOMラッパー |
MFC | Microsoft Foundation Class | C++クラスによるWinAPIのCOMラッパー アプリ・メインクラスの基底クラス CWinApp |
WinAPI | Windows API (GDI/GDI+) | (例) 32bit用実装 Win32API アプリ・エントリーポイント WinMain関数 |
キャレット ^ を行末につける
1 2 |
@echo off myProgram.exe -f OPTION_F -s OPTION_S |
1 2 3 |
@echo off myProgram.exe -f OPTION_F ^ -s OPTION_S |
"windows.h" は、16bit版 Windowsのヘッダファイルを多数インクルードしている。WIN32_LEAN_AND_MEAN
を define することで、32bitアプリには不要なヘッダファイルのインクルードを抑止してコンパイル時間を短縮できる。