無料ブログはココログ

お気に入りの音楽

VisualStudio C++ 2010 上で log4cxx がビルドできない件

VisualStudio C++ 2010 上で log4cxx をリンクしたアプリをビルドしようとすると、次のようなエラーメッセージが出力される。

error C2252: テンプレートの明示的なインスタンス化は名前空間スコープでのみ発生します

同様のケースについて、
リンク: Old Nabble - Log4cxx - Users - Unable to build with VS2010.

今回の場合、幸い↓の手当てだけで直りました。
1. Move all those LOG4CXX_LIST_DEF macros to before the class definition.

NTT地域IP網内の通信はとても速いらしい

リンク: 3流プログラマのメモ書き:IPv6.

地域IP網

「とりあえずリモートデスクトップのファイル転送で簡単に測ってみました。
インターネットを経由した場合(無VPN)はおおよそ 800KB/s くらいです。
これが地域IP網のIPv6(無VPN)でやるとおおよそ 6MB/s くらいになりました。
ping でもインターネット経由でCTUまでが平均 118ms。
地域IP網だと平均 3ms です。
やはり圧倒的に違いますね。」

WZ エディタに C++ コメント行を正しく認識させる

WZ エディタの Ver.4 が C や C++ のコメント行を正しく色分け表示してくれない。
例えば
//***********
// 関数 foo() の説明
//***********
int foo()...

と書かれていると、コメント行以降もコメントとして認識される。つまり、「//***」と書かれていると、「行末までコメントアウト」ではなくコメント範囲の開始と認識されてしまうらしい。

そこで設定を変更してみた。
設定箇所はメニュー「表示-表示関連の設定」でダイアログ「文書の設定」を開いて、その中の「表示-色分けスタイル」を選択し、「メンテナンス」ボタンをクリックしてからリスト「スタイル」の中の「Cプログラム」を選択。「編集」ボタンをクリックしてダイアログ「色分けスタイルの設定」を開く。

デフォルトの設定では
「広範囲 /* */」が「行末 //」の後に来ているが、これを入れ換えてやればよい。

150度以下の低温廃熱から電気エネルギーを回収するロータリー熱エンジンを開発

リンク: 150度以下の低温廃熱から電気エネルギーを回収するロータリー熱エンジンを開発.

ultraVNC のサーバに繋がらない時

ultraVNC のサーバに繋がらない時、「ループバック接続のみ許可する」チェックボックスをチェックせよ。

Teredo state dormant

リンク: Teredo.

In Windows Vista, they implemented Teredo responsibly, using the principle of “least exposure”. In Windows Vista, the user is safe by default because Teredo is subject to special rules in the Windows Firewall. An application will need special permission to use Teredo, different from just “listening on the local network” or even “listening on the regular Internet connections”. By default, no application is authorized, and Teredo does not start. Teredo will only start when the users “opt in” and decide to authorize specific applications. For example, users may authorize applications like Windows Live Messenger if they want to enable direct video conferences between homes. Further, on Windows Vista, enabling Teredo does not expose all applications to the Internet. For example, the file and print sharing services are not authorized to use Teredo – they are meant to be used in the home network, not over the Internet. If no authorized application is currently active, the Teredo service will be placed in a “dormant” state, and the computer will not be visible from the IPv6 Internet.

伝送制御プロトコル/インターネット プロトコル (TCP/IP : Transmission Control Protocol/Internet Protocol)

リンク: 伝送制御プロトコル/インターネット プロトコル (TCP/IP : Transmission Control Protocol/Internet Protocol).

WinsockアプリのIPv4→IPv6書き換え

リンク: IPv6style:WinSock アプリケーションの IPv6 対応はどうやるか.

» 続きを読む

QTTabBar

エクスプローラのウィンドウを3個以上開いていると、タスクバー上で区別が付かなくなったり、開いているウィンドウを見ても一目では区別が付かなくなったりするのです。
ウィンドウごとに背景色をカスタマイズできるだけでもずいぶん助かるんだが。

とりあえず、複数のエクスプローラを管理できるツールはないかと探して見つかったのがこれ。
リンク: QTTabBar | Free System Administration software downloads at SourceForge.net.

以下略

[ win ] 実行ファイルが 32 ビットか 64 ビットかを確認する方法

dumpbin コマンドを使って実行ファイルのヘッダーを調べると分かるらしい。

リンク: [ win ] 実行ファイルが 32 ビットか 64 ビットかを確認する方法: Fomalhaut of Piscis Australis.

dumpbin コマンドは、 C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\dumpbin.exe として在りました。
DLLに対して実行してみたら同じようにして判別できた。

«VisualStudio C++ リソース ファイル 'resource file' は既に指定されています。