Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は Xerces を使用していますが、Initialize と Terminate を使用する場合の参照はあまり明確ではありません。
多くの Web サイトでは、通常、「Xerces コードは常にこの 2 行の間に入れてください」と説明されています。
しかし、私はいつもそれをしなければなりませんか?それとも解析時だけですか?
ありがとうございました
InitializeXerces-C++ 機能を使用する前に、これをプロセスごとに 1 回呼び出す必要があります。TerminateXerces の使用が終了したら、プロセスごとに 1 回呼び出す必要があります。
Initialize
Terminate
これらを配置する明白な場所はmain、シングルトン オブジェクト、または Xerces の使用中にスコープ内にある RAII オブジェクトのいずれかです。
main