AxDrawing Control 2007 on 64bit systems

M

Marx

Hi,

Is it possible to run the AxDrawing Control 2007 on 64bit systems? I
understand the control is 32 bit. I've compiled the project both as x86 and
"Any CPU".

Both times loading the drawing fails on a 64 bit system. Error message
"Class not registered" HRESULT 0x80040154.

Thanks,

M
 
A

AlEdlund

Compiling as x86 on a x64 bit system (assuming the 32bit version of visio is
installed) will definitely work, I use it daily. Compiling as anycpu will
(in my experience) fail because it will look for the 64bit libraries and
they are not installed (you can only install one platform of office on a
system). The second problem you are probably facing (an assumption on my
part) is that I suspect you might be using vs2008 which only supports the 32
bit controls.

al
 
M

Marx

Thanks Al,

Sorry I missed your post. I probably did not check "Notify me of replies".

I'm running VS2008 on a 32 bit machine and creating both x86 and x64
deployments.


I've tried the following for x64 (Errors are on the 64bit deployment machine):
1) Compile using Any CPU with an x64 setup project. Everything related to
Visio.InvisibleApp works. Loading the drawings fail with the "Class not
registered" error.
2) Compile as x86 with x64 Deployment project. This also fails with the
same error.
3) Compile as x86 with x86 Deployment project. This also fails with the
same error.


If I understood you there are 3 issues:
1) I need to compile on a 64bit machine with 64 bit version of Visio 2007
2) This is a question. Is the AxDrawingControl in Visio 2007 64 bit when a
64 bit version of Visio is installed?
3) I need to compile using VS2010

If the answer to 2) is yes then that's fantastic. Otherwise from what I
understood I need to compile as x86 using VS2010 on a 64 bit machine?

Thanks,

M
 
A

AlEdlund

To my knowledge x64 pia's have not been released for vs2008. There is a
reproduceable error with the x64 version of the control on even the 64bit
systems. If you are attempting to build x86 on a 32bit system it should
work. Have you installed the Office PIA package? Did you do a clean
uninstall of the 64bit version of Visio before testing with 32bit (obviously
your working with Visio 2010 since there is no 64bit version of v2007)

al
 
M

Marx

It wasn't the PIA's - my lauch conditions would have picked that up. I can't
reproduce the error now though. One thing I did do was switch from the trial
Visio 2007 download to a non-trial version.

Thanks for your help.

M
 

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