1. Doxbar の最新版をダウンロードする
http://doxbar.sourceforge.net/
例)
doxbar-*.**-bin.zip
2. Doxbar を解凍する
3. VC++ を起動する
4. [ツール] - [カスタマイズ] を選択する
5. [アドオンおよびマクロ ファイル] タブを選択する
6. [参照] ボタンをクリックし [doxbar.dll] を選択する。
[Doxbar.DSAddIn.1] がチェックされていることを確認しダイアログを閉じる。
7. 再度 [ツール] - [カスタマイズ] を選択する。
8. [ツール] タブを選択し [Doxygen] というメニューを追加する。
メニュー項目:[Doxygen]
コマンド :[c:\windows\temp\runbox.bat]
(このファイルは自動生成されるため、用意しておく必要は無い。)
引数 :[]
実行時のディレクトリ:[$(WkspDir)]
[*]アウトプットウィンドウを使用 [ ]起動時に引数を入力
9. Doxbar ツールバーの [Configure Doxbar] を選択する。
[User tool] タブ
tool command:[UserTool8](登録してある番号を入力)
[File locations] タブ
Batch file:[c:\windows\temp\runbox.bat]
Doxygen :[C:\Program Files\doxygen\bin\doxygen.exe]
Configuration template
:[C:\Program Files\doxygen\bin\Doxyfile]
(doxygen -g で雛形の設定ファイルが作成されるのでそれを利用。)
HTML Help compiler
:["C:\Program Files\HTML Help Workshop\hhc.exe"]
10. Doxbar ツールバーの [Edit project's profile] を選択する。
[Doxbar specific]
Generate documentation for (*) the active project only
( ) the active project and its dependencies
( ) all the projects in the workspace
(デフォルトはアクティブプロジェクト&依存関係のあるプロジェクトに設定)どうやら #include しているファイル名と *.dsp に設定してあるファイル名に 大文字・小文字の相違がある場合、*.rtf ファイルの作成に失敗する模様。 例)プロジェクトファイル(*.dsp)に登録してある名称 Resource.h … × resource.h … ○ <エラーメッセージ> Error opening rtf file resource_8h.rtf for reading An error occurred during post-processing the RTF files!
[Ctrl]+[A], [F9] で、フィールド情報更新 [Ctrl]+[Shift]+[F9] で、埋め込みオブジェクトを図に変換
Sub UnlinkPicture()
' 対象データが無くなるまでループ
Do
Set oldRange = Selection.Range
Set newRange = Selection.GoTo( What:=wdGoToField, _
Which:=wdGoToNext, Count:=1, Name:="INCLUDEPICTURE")
If oldRange.Start = newRange.Start Then
Exit Do
End If
' 対象データを選択
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
' リンクの実体化
Selection.Fields.Unlink
' 選択を解除
Selection.MoveRight Unit:=wdCharacter, Count:=1
Loop
End Sub #access