Fábio
Fábio

Reputation: 3489

What's the difference between AfxOleInit and OleInitialize?

When should I use one over the other? MSDN doesn't provide any useful information.

Upvotes: 4

Views: 3479

Answers (1)

JaredPar
JaredPar

Reputation: 755317

If you're using MFC you should use the AfxOleInit variant. This calls both OleInitialize and creates / installs an MFC IMessageFilter object. The second step is an MFC specific initialization step.

If you're not using MFC then just call OleInitialize

Upvotes: 6

Related Questions