can't run VisioSDK sample

V

visdev-2008

I'm trying to run OfficePlanSample from Visio 2007 SDK on C#, Studio 2008,
Vista 64-bit. The sample compiles fine but throws at drawingControl.EndInit()
method: "Class not registered". I suspect it's installation issue, but
couldn't trace it so far.

How this sample could be made running?
 
V

visdev-2008

JuneTheSecond said:
Only 2007 version of Visio is installed?

Yes.

Actually, I've got the solution already. In the OfficePlanSample project
properties, Build tab, Platform target should be set to x86. It was x64 by
default. After changing this single settnig, the application runned fine.

So this issue is related to 64-bit-to-32-bit interoperability.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top