マネージドコード(C#)からアンマネージドコード(CやC++)の関数などを呼び出すときの相互変換規則
[C#] 属性 (Attribute)
クラスやメソッドに対して付加情報を付け加える方法
角括弧で囲んだ属性名を適用先のエンティティの宣言の前に配置する。
例
|
1 2 3 4 5 |
[Serializable] public class SampleClass { // Objects of this type can be serialized. } |
[git] サブモジュールが参照するリポジトリアドレスを変更する
(1) .gitmodules の編集
|
1 2 3 4 |
[submodule "src/submodule_x"] path = src/submodule_x - url = https://github.com/anonymous/submodule_x.git + url = https://anonymouos@dev.azure.com/anonymous/foo/_git/submodule_x |
(2) git submodule sync の実行
|
1 |
$ git submodule sync |
(註) git submodule sync を実行しないと .gitmodules の変更が .git/config へ 反映されない。
[VS] プロジェクトファイル拡張子変遷
Microsoft Visual Studio のプロジェクトファイル名の拡張子変遷
| バージョン | ワークスペース / ソリューション | プロジェクト |
|---|---|---|
| ~ 6.0 | .dsw |
.dsp |
| 2002 ~ 2008 | .sln |
.vcproj |
| 2010 ~ 2019 | .sln |
.vcxproj |
[win] GUI API の変遷
| 略称 | 正式名称 | 説明 |
|---|---|---|
| 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関数 |
[TOPPERS] JSPコンフィギュレータ
TOPPERS/JSP(旧世代)コンフィギュレータ
[CPP] throw() の意味
TOPPERS/JSPのヘッダーファイルなどに throw() の記述が多用されています。
この記述は『無例外保証(no-throw guarantee)』と呼ばれる「例外は投げません」という意味です。
[agile] YAGNI
XP (エクストリーム・プログラミング) における原則
"You ain’t gonna need it."
類義語
KISSの法則
"Keep it simple, stupid."
"Keep it short and simple."
[OO] ロバストネス図
[win] バッチファイルを複数行に分かち書きする
キャレット ^ を行末につける
バッチファイル例
1. 分かち書き前
|
1 2 |
@echo off myProgram.exe -f OPTION_F -s OPTION_S |
2. 分かち書き後
|
1 2 3 |
@echo off myProgram.exe -f OPTION_F ^ -s OPTION_S |



