Notes On Software

December 31, 2011
by bg
0 comments

C++/CLI IServiceProvider: ambiguous symbol compiler error

While doing some programming using C++/CLI for .NET interop, I ran across this compiler error:

error C2872: ‘IServiceProvider’ : ambiguous symbol

As the MSDN reference indicates, the compiler can’t sort out a symbol because it encountered multiple definitions. In this case it was because of a core IServiceProvider definition that was not part of my code.

Rules to avoid this error:

Continue Reading →

Direct X Logo

December 26, 2011
by bg
0 comments

Wpf and DirectX using D3dImage

I’ve been playing around with Wpf and DirectX lately and am starting a series on how to combine the two via the D3dImage control introduced in .Net 3.5 SP1. I’m mostly documenting this for my own reference, but it might help a few other folks out as well.

Here are the articles in the series so far:

Tools used to generate the projects:

WPF and DirectX Resources: