
visio not loading from code
I'm trying to start visio 2002 professional from a
C# program. I've added a
reference to the visio 2002 type library and am starting it with the
following code:
Visio.Application visApp = new Visio.ApplicationClass();
This seems to work fine on my Windows XP machine. However, it causes an
invalid page fault in kernel32.dll on my Windows 98 machine. I'm copying and
placing the Interop.Visio.dll into the same directory as the executable.
However, it still crashes the program when it tries to start the instance of
visio.
Note: Both machines have the same version of the visio 2002 sdk and visio
2002 professional.
Is there anyone that can help?