Visio5: "Could Not Run Visio" Error After Starting the Visio Enterprise Test Drive from the Visual Studio Toolbar (254744)
The information in this article applies to:
- Microsoft Visio Enterprise 5.0, when used with:
- the operating system: Microsoft Windows NT
This article was previously published under Q254744 SYMPTOMS
When you customize Microsoft Visual C++ or Microsoft Visual Basic by using the Visio Enterprise add-ins, Visio Enterprise creates a three-button toolbar in the Visual Studio development environment. You can use these toolbar buttons to open Visio Enterprise, to create a new Visio UML document, or to reverse engineer your source code to create a UML model.
With the Visio Enterprise Test Drive running on Windows NT, when you click one of the Visio toolbar buttons in Visual C++ or Visual Basic, Visio Enterprise starts, but with an empty window. In addition, when you move the Visio application window, you receive the following error message:
Could not run Visio.
RESOLUTION
You can work around the problem by clicking OK in the error message window, and then following the procedure that applies to your situation.
To create a new diagram or UML model:- On the File menu, click New.
- Select the template that you want to base the diagram on, and then click OK.
For help creating your diagram, click Template Help on the Help menu, double-click Visio Templates, and then select the type and name of the template that you want. To complete the reverse engineering of your source code:- In Windows Explorer, browse to the Temp folder (usually C:\Temp).
- Find the file named Umlxxxx.tmp, where xxxx is a 3- or 4-digit number, and write down the name. If you see multiple file names that start with "Uml," pick the one with the most recent date and time stamp.
- In the Visio Enterprise window, point to New on the File menu, point to UML, and then click UML Model Diagram.
- When the new drawing opens, point to Macro on the Tools menu, and then click Visual Basic Editor.
- In the Visual Basic Editor, click Immediate Window on the View menu.
- In the Immediate window, type the following code, where Umlxxxx.tmp is the file name that you wrote down in step 2:
visio.Addons("UML Background Add-on").Run("/doc=1 /CMD=301 /file=c:\temp\umlxxxx.tmp /types=CPP /nodelete") - Press ENTER to run the command.
You can now use the UML Navigator to view your reverse-engineered UML elements. NOTE: You can create a Visio Enterprise drawing by dragging elements from the UML Navigator to the drawing page.
TIP: If you want to reverse engineer multiple projects with the Visio Enterprise Test Drive, you can create a Visual Basic for Applications macro that contains the code in step 6.
REFERENCES
For more information about reverse engineering your source code with Visio Enterprise, search for "UML" in the Visio Enterprise Test Drive Help.
Modification Type: | Major | Last Reviewed: | 8/16/2006 |
---|
Keywords: | kberrmsg kburl KB254744 |
---|
|