The information in this article applies to:
SUMMARY
Other product and company names herein may be the trademarks of their
respective owners.
MORE INFORMATIONContentsClassView and Wizard Bar 'Auto #Include' Feature May Cause Build Error (C2011: type redefinition) Using the ClassView List Files in the External Dependencies Folder (FileView) Are Not Project Files Using Icon and Toolbar Editors with Windows NT 4.0 Hosting ActiveX Documents in the Developer Studio Environment Accessing Online Help Brings Up MSN Dialog Box MSDN Must Be Installed to View Visual Studio Documentation Full Debugging Support for VBScript Macros is Available for Free!Automation Issues for the Microsoft Developer Studio Environment
MORE INFORMATIONClassView and Wizard Bar 'Auto #Include' Feature May Cause Build Error (C2011: type redefinition)The 'Auto #Include' feature adds #include statements to your code when you add a function/variable through the ClassView context menu or WizardBar, and when the function/variable is of a type class, struct, or union. Therefore, if you author code that does not have the #ifndef/#endif wrapper statements in your header file, there is a possibility that a build error will occur if this header file is included twice within a project. The build error is: error C2011: type redefinition. You can solve this by adding the following lines to the top and bottom of your header file. For example, if you have a file sample.h, it should look like this:
This is where all the code for sample.h is.
Using ClassView ListThe ClassView list requires .h files. If you cannot see your classes in ClassView, make sure that your header files are included in the project.Files in the External Dependencies Folder (FileView) Are Not Project FilesThe "External Dependencies" folder (in FileView) in the Developer Studio environment lists files that are not part of the project but that are used when building your project. When performing certain project-dependent operation on a file such as using source code control, defining custom build rules, or displaying ClassView items from the header files, the file must be a part of the project. This is a change from the "Dependencies" folder behavior in Visual C++ version 4.x.To add a file to a project, move the file (drag and drop) from the "External Dependencies" folder to anywhere in the project folders or the main project folder. Using Icon and Toolbar Editors with Windows NT v4.0The Icon and Toolbar editors may show strange behavior on Microsoft Windows NTŪ 4.0 machines running S3, ATI, or Tseng Labs ET4000 video drivers. Typically, icons and toolbar buttons will go black and certain items on the screen will appear "blocky." Service Pack 2 for Windows NT 4.0 fixes this problem. You can obtain the service pack via FTP from > ftp.msdn.microsoft.com/bussys/winnt/winnt-public/fixes .NOTE: If you get a STOP error message (accessing the floppy disk drive or the CD-ROM drive) with Service Pack 2 for Windows NT 4.0, you can obtain the fix listed below or wait for the next Windows NT service pack. You can obtain the fix via FTP from > ftp.microsoft.com/bussys/winnt/winnt- public/fixes/usa/NT40/hotfixes-postsp2/krnl-fix . NOTE: If you get a loss of connectivity in remote access with Windows NT, and you installed the NT Service Pack 2, you can turn off the Multilinking Protocol (MP) option altogether, or acquire this fix via FTP from > ftp.msdn.microsoft.com/bussys/winnt/winnt-public/fixes/usa/NT40/hotfixes- postsp2/ras-fix . Hosting ActiveX Documents in the Developer Studio EnvironmentThe Developer Studio environment can host ActiveX Documents such as Word or Excel. To open an ActiveX document, click "Other Documents" (File menu, New command). Because ActiveX documents do not all meet the same standards, they may hang the application that is hosting them. For example, Comic Chat will hang and should not be used from inside the Developer Studio environment. Microsoft has tested many other ActiveX documents, such as the products in Microsoft Office, and verified that these do not hang the Developer Studio environment.Accessing Online Help Brings Up MSN Dialog BoxWhen accessing online Help you may get a dialog box asking about your dial- up connection for your online service provider. This occurs because Visual Studio uses the Internet Explorer (which has an option to automatically connect to the online service) to display the online documentation. Click Cancel to dismiss the dial-up connection dialog box. You can disable automatic dialup with the following procedure. To turn off the automatic dialup:
MSDN Must Be Installed to View Visual Studio DocumentationOnce MSDN is installed, you can find the complete set of Visual Studio documentation in the Table of Contents under the Microsoft Developer Network Visual Studio Edition node, Developer Products, Visual Studio 97.Full Debugging Support for VBScript Macros is Available for Free!Currently Visual Studio does not provide an integrated debugger to allow you to step through a VBScript macro, set breakpoints, inspect variables, etc. However, the new Microsoft Script Debugger will have this ability. The Microsoft Script Debugger, designed to debug VBScript code embedded in HTML pages open in the Microsoft Internet Explorer, will actually debug VBScript code running in any application, including the Visual Studio products.How to Get a Copy of the Microsoft Script DebuggerVisit the VBScript home page at:http://www.microsoft.com/scripting/vbscriptbscript">From this page there will be a link to download the Microsoft Script Debugger for free. How to Use the Microsoft Script Debugger to Debug Your VBScript Macros
Automation Issues for the Microsoft Developer Studio EnvironmentSome VBScript Objects and Procedures Are Not Supported from VBScript Macros: The VBScript Reference lists all objects and procedures that you may access from "unsafe" VBScript hosts. VBScript macros may only use the "safe" constructs of VBScript. This means a number of objects and procedures listed in the VBScript reference will be unavailable when writing VBScript macros. The following are examples of such "unsafe" constructs:
Automating Tasks, Ignore Cautionary Text in Procedure in Online Docs:
Disregard the Caution statement after step 5, this bracket syntax is no longer necessary. This is listed in the procedure to add a command (Developer Studio Environment User's Guide, Automating Tasks in Developer Studio, Developer Studio Add-ins, How Do I...Topics, Developer Studio Add- ins, in the topic Adding Commands to Developer Studio). Additional Method for the Debugging Object, Automation: There is an additional method for the Debugging Object that is not represented in the online documentation (Developer Studio Environment User's Guide, Automating Tasks in Developer Studio, Reference: Developer Studio Objects, Debugger Methods category.) Break is an additional valid Debugger method:
Detail for MoveTo Method for the TextSelection Object, Automation:
In the Developer Studio Environment User's Guide, under the node for Automating Tasks in Developer Studio, in the section titled Reference: Developer Studio Objects, and then in the category called Methods, in the topic for MoveTo, there are two lines displaying incorrect information about using the zero value for line and/or column: "Some possible values are: 0 Does not move the insertion point; it stays on the current line/column." Your results may differ from this explanation. To get the current line and column, try TextSelection.CurrentLine or TextSelection.Current Column. IDocument should be IGenericDocument in Dual Interface Automation Sample: All references to "IDocument" within the Developer Studio User's Guide should say "IGenericDocument". This error occurs in the topic "Controlling Developer Studio Objects Through Dual Interfaces" (in the Developer Studio Environment User's Guide, Automating Tasks in Developer Studio, Developer Studio Add-ins, Overview of Developer Studio Add-ins node). It also occurs in the sample listed under the "Alternating Between Dual Interfaces" title in that same topic. Please note that IDocuments (plural) is fine. NewWorkspace event is never fired for the Application object, Automation: You may not use a VBScript macro file, an add-in, or an out-of-process controller to respond to the NewWorkspace event on the Application object. This event is never fired, and you cannot write an event handler for it. NOTE: This problem was corrected in Visual Studio 6.0. The NewWorkspace event now fires correctly. Additional query words:
Keywords : kbVS97 kbGrpDSTools |
Last Reviewed: July 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |