| 18510 | XML predefines five entity references for special characters that would otherwise be interpreted as part of markup language. These five are listed here: |
| 18511 | When you use the #import feature of Visual C++ with the Msxml.dll, Msxml2.dll, or Msxml3.dll file, you may receive the following compiler error messages: error C2872: 'DOMDocument' : ambiguous symbol -or- warning C4099: 'DOMDocument' : type name first... |
| 18512 | This article demonstrates how to programmatically retrieve an XML data stream from a SQL Server 2000 mapping schema by using an XPath query. The scope operates in a client/server (2-tier) model. This sample also allows you to test XPath queries... |
| 18513 | If you run an ADODB command stream and specify SQL SELECT with the FOR XML AUTO clause, an XML document stream is fetched from SQL Server and displayed in the Visual Basic Intermediate window. You must set the following properties for the Properties... |
| 18514 | This article demonstrates the use of the Web Distributed Authoring and Versioning (WebDAV) PROPFIND command to locate the value of a property on a item in a public folder. |
| 18515 | This article demonstrates the use of the Web Distributed Authoring and Versioning (WebDAV) PROPRATCH command to change the value of a property on a Microsoft Word document in a public folder. |
| 18516 | This article demonstrates the use of the Web Distributed Authoring and Versioning (WebDAV) MKCOL command to create a new folder. |
| 18517 | This article demonstrates how to move or copy folder items by using Web Distributed Authoring and Versioning (WebDAV) and Microsoft Visual Basic (VB). |
| 18518 | This article demonstrates the use of the Web Distributed Authoring and Versioning (WebDAV) COPY command to copy a mail item from one folder to another. |
| 18519 | This article demonstrates the use of the Web Distributed Authoring and Versioning (WebDAV) MOVE method to move a mail item from one folder to another. |
| 18520 | This article demonstrates how to use WebDAV's PROPFIND and PUT methods to send an e-mail message from Visual Basic. |
| 18521 | The AOTBLOB sample demonstrates reading and writing long binary data (BLOB) fields using the ATL OLE DB Consumer Template classes. The sample contains code to load and save a bitmap file and to load and save the bitmap image into a database |
| 18522 | The 3706: ADO could not find the specified provider error appears when you try to connect to an Access database through the Jet 3.51 OLE DB provider. |
| 18523 | The Jet OLE DB version 4.0 provider supports the SELECT @@Identity query that allows you to retrieve the value of the auto-increment field generated on your connection. Auto-increment values used on other connections to your database do not affect the... |
| 18524 | Using ActiveX Data Objects (ADO) and the Microsoft OLEDB Provider or ODBC Driver for SQL Server, to retrieve a recordset from a stored procedure using Server-side Cursors, returns a Forward-only/Read-only recordset if that stored procedure |
| 18525 | The following error messages occur: Change canceled during notification, no columns changed (MDAC 2.1) -or- Run-time error '-2147217842(80040e4e) Operation was canceled (MDAC 2.5 and later) This problem occurs with the Jet Provider and does not occur... |
| 18526 | OmniProv.exe is a sample that is comprised of sample code and an explanation of a simple ATL OLE DB provider called OmniProv.exe version 1.0. Full documentation on this provider can be found in the white paper located here: |
| 18527 | The MyDynText sample demonstrates how to read and write text data (long binary data) when you use the |
| 18528 | The |
| 18529 | If you try to open an ADO connection using a data link file (which is commonly referred to as a universal data link file, or UDL file), you may receive the following error message: Run-time error -2147286789(800300fb): The File is not a valid compound... |
| 18530 | Microsoft Outlook 97 provides a complete type library and can be automated to build useful group software and mail-enabled applications. This article illustrates, by example, how to use OLE Automation to create and retrieve properties of Microsoft... |
| 18531 | When timing code to identify performance bottlenecks, you want to use the highest resolution timer the system has to offer. This article describes how to use the QueryPerformanceCounter function to time application code. |
| 18532 | This article demonstrates how to programmatically control Microsoft Outlook using Automation from Visual Basic. The example demonstrates creating contacts, creating appointments, and sending messages by using Microsoft Outlook's object-model. |
| 18533 | Microsoft Word for Windows does not provide a method for Automation clients to set the duplex print flag before starting a print job. Although there is a parameter in the |
| 18534 | This article contains a list of Microsoft Office Developer samples and tools that are available in the Microsoft Download Center. |
| 18535 | The default packing (alignment) for structures in Windows NT is 8 bytes. This setting is the default for projects created using the Visual Workbench. Programs built with other packing build without error, but the resulting executable may produce... |
| 18536 | Software written to work with Microsoft Office can take advantage of the spell checking capabilities of Microsoft Word to add spell checking to their own application. Word's Automation model contains a CheckSpelling function that lets you check the... |
| 18537 | After you install the Web Debugging components within the Microsoft Script Editor that comes with Office XP, the Visual InterDev 6.0 debugger does not stop on breakpoints. |
| 18538 | Microsoft supports setup and installation for the Crystal Reports product shipped with the Professional Edition of Microsoft Visual Basic version 3.0 for Windows. For other Crystal Reports support, please do not contact Microsoft. Please co |
| 18539 | Under some circumstances, the Visual C++ copyright logo displays the string Unauthorized copy of Microsoft Visual C++ where the registered owner's name belongs. This message may occur when the user manually copies the executable files from the... |
| 18540 | Although there is no limit to the number of tables that a Database Designer diagram can contain, you will have better performance and a more stable work environment if you limit the number of tables in a database diagram to 300 or less. |
| 18541 | Opening and immediately scrolling a Database Diagram containing 300-plus tables causes the Database Designer to hang or causes the screen to be improperly painted. This error occurs more frequently on machines with low memory (24 MB). |
| 18542 | SQL Server 7.0 and SQL Server 2000 provide a mechanism for performing distributed queries against an OLE DB provider. This can be done by using the new |
| 18543 | When printing under Windows 95, Windows 98, and Windows Me, the FontTransparent property of the Printer object fails to change the way that the text is printed on the background. The FontTransparent property determines whether background te |
| 18544 | The ComboBox that ships with Visual Basic has simplistic functionality whereas many third-party controls offer additional extra features. One of these third-party features is the ability of the ComboBox to search for text and find entries starting... |
| 18545 | This article shows how to capture any form or window including the screen into a Visual Basic Picture object. Once the on-screen image is captured in the Picture object, it can easily be printed using the PaintPicture method of the Visual B |
| 18546 | When printing, a white rectangle appears inside of a printed box instead of the expected text, or text appears with a white background when printed onto a shaded box. |
| 18547 | Executing the |
| 18548 | The BackColor property of OCX controls is saved in Decimal format inside Form files. This is contrary to the format stored for Forms, which saves its BackColor property in a Hexadecimal format. |
| 18549 | Determining whether Windows 95, Windows 98, Windows Me, or Windows NT 3.51 is using large or small fonts can be done from Visual Basic through Windows API calls. The API that retrieves information about the physical font selected for a devi |
| 18550 | The Win32 SetSystemTime API function offers the functionality to change the system time on the local machine. The change will take place immediately without the need for a reboot. This article illustrates how to create a sample project that |
| 18551 | The Visual Basic Printer object allows for printing through printer drivers, but there may be times when it is desirable to use the Win32 API to send information more directly to the printer. The code sample to follow shows how to achieve t |
| 18552 | One of the new features of Microsoft Visual Basic 5.0 and VBA 5.0 is the ability to define Optional arguments for data types other than Variant. These optional arguments are used in procedures. |
| 18553 | You can create default events for your User Controls. A default event is the event selected when you double-click on the control in design mode. For example, when you double-click on a CommandButton, the code window creates a sub-procedure |
| 18554 | You can create a default property for your User Control. A default property is the property selected when you select the control in design mode. For example, when you select a Label, the highlighted property is Caption. Therefore, Caption i |
| 18555 | You can use Active Directory Service Interfaces (ADSI) to manipulate file shares as shown in the Visual Basic sample code below. |
| 18556 | The MSChart control does not expose a method that enables you to print the chart directly. However, you can use the PrintForm method to print the entire form containing the MSChart control. This article describes a method for printing only the chart. |
| 18557 | This article demonstrates how to programmatically restart or log off a computer in Visual Basic. The sample code shown in this article creates a project that can normally or forcibly perform these functions on a computer with a Windows 95, |
| 18558 | In DAO, using the Close method on a database opened with ODBC drivers does not close the database; a cached connection remains idle before timing out. The default duration of this timeout is 600 seconds (10 minutes). If your application cannot accept... |
| 18559 | With Visual Basic 5.0 and later, you can now develop software easily for distribution over the Internet. Code received via the Internet lacks shrink-wrapped packaging to vouch for its reliability and some users may be skeptical when asked t |
| 18560 | This article provides an overview of how to certify your Visual Basic for Windows application with the Microsoft Windows Logo Program. For more information, see the following Microsoft Web site: |
| 18561 | To have both shared and non-shared data in a Dynamic Link Library (DLL) which is built with a 32-bit Microsoft C compiler, you need to use the #pragma data_seg directive to set up a new named section. Then you must inform the linker of the correct... |
| 18562 | In the Win32 operating system, an application is not required to export callback functions. In 16-bit Windows 3.1 and prior versions, an application must export callback functions primarily to allow them to fix up references to global data and to... |
| 18563 | The following sample code demonstrates how to pass variables of type char, short, and long from a Microsoft C program to a Microsoft Macro Assembler (MASM) program by reference. |
| 18564 | When using the Microsoft compilers listed above, and the linker is called by the compiler (no /c option specified), the first directory in which the compiler searches for LINK.EXE after looking in the current directory is the directory that CL.EXE was... |
| 18565 | In the Microsoft C++ Compiler, it is possible to control when your static objects, declared at file scope, are constructed and destructed by using the #pragama init_seg preprocessor directive. MORE INFORMATION There are four options for the init_seg... |
| 18566 | With a Win32-based console application, you can call the functions in the Win32 application programming interface (API). |
| 18567 | With the Microsoft C/C++ compiler, the error Error C2250: 'identifier': Ambiguous Inheritance of 'class::member' may be generated when a class inherits from two or more classes, at least two of which derive from the same virtual base class and... |
| 18568 | The sample code below demonstrates how to share variables of type char, short, and long between a Microsoft C program and a Microsoft Macro Assembler (MASM) program. This is accomplished by declaring the C variables outside the a function definition,... |
| 18569 | The sample code below demonstrates how to pass a short from a program written in Microsoft C to a procedure written with the Microsoft Macro Assembler (MASM). The MASM function also returns a short to the C program. Registers are used to return values... |
| 18570 | The sample code below demonstrates how to pass a char from a program written in Microsoft C to a procedure written with the Microsoft Macro Assembler (MASM). The MASM function also returns a char to the C program. Registers are used to return values... |
| 18571 | The sample code below demonstrates how to pass C arrays of type char, short, and long to a Microsoft Macro Assembler (MASM) procedure by reference. |
| 18572 | The sample code below demonstrates how to pass a long from a program written in Microsoft C to a procedure written with the Microsoft Macro Assembler (MASM). The MASM function also returns a long to the C program. Registers are used to return values... |
| 18573 | The Microsoft C++ Language Reference for C/C++ version 7.0 states the following: ...if the class declares a user-defined operator=() that takes an argument of type reference to class-name, no default assignment operator is generated. (See the... |
| 18574 | The following error is typically the first of many returned by the Microsoft C/C++ Compiler when attempting to compile a file that includes a C++ header file such as IOSTREAM.H in a C program: ios.h(33) : error C2282: 'class' is followed by... |
| 18575 | The following error C2666: '+' : 'number' overloads have similar conversions is generated when there is no single or exact match between multiple operators. In some cases, the type conversion may look trivial but actually is not, and an explicit type... |
| 18576 | Versions of Microsoft Visual C++, version 4.0 and later, do not support assembler source files by default. That is, the Developer Studio does not associate any special significance to .asm files without being informed otherwise. However, there are... |
| 18577 | In an application developed with Microsoft C or C/C++, the sscanf() function is a good alternative to the atof() function to convert a string of digits into a floating-point number. If a string does not represent a valid number, atof() returns the... |
| 18578 | There are no C language functions or C run-time functions to determine whether or not a drive is a RAM drive. The GetFileType() API may be called by Win32 applications to obtain the type of a particular drive from the operating system. More |
| 18579 | The following error occurs when compiling a file with the Visual C++ compiler: |
| 18580 | When porting code that uses GetProcAddress() from C to C++, the C++ compiler for MS-DOS can return the following error message: |
| 18581 | Compiling a C or C++ source file that contains an incorrectly placed __declspec keyword may cause the compiler to issue a warning or error message. The possible messages and the version of the 32-bit compiler generating them are listed bel |
| 18582 | When debugging a DLL using the Visual Workbench debugger or CodeView for Windows, one of the following errors may occur: |
| 18583 | Combining compiler switches /Yc and /Yu with the /YX option causes the following error: |
| 18584 | The September 1994 ANSI C++ Draft specifies that it is possible to overload the new [] operator. However, the Microsoft C/C++ compilers included in the Microsoft products listed above do not support this feature. Microsoft C/C++ version 7.0 and Visual... |
| 18585 | The .PDB extension stands for "program database." It holds the new format for storing debugging information that was introduced in Visual C++ version 1.0. In the future, the .PDB file will also hold other project state information. One of t |
| 18586 | This article describes 12 possible reasons why you may be having trouble getting breakpoints to work. It covers each of the following 12 situations where breakpoints do not work as expected: |
| 18587 | If an object is used to initialize an embedded structure, the compiler produces error C2440: 'initializing': cannot convert from '<type1> ' to '<type2> '. |
| 18588 | Fast user switching is a Windows XP feature that allows multiple users to share the same computer. Each user has an individual profile (and desktop), and you can switch between users without logging off. Applications that you write must sup |
| 18589 | Files will appear to be checked out or modified by the system's anonymous user when they are actually checked out to valid SourceSafe accounts. |
| 18590 | This article describes how to associate a file extension in Visual InterDev with Source Editor. For example, when you associate the .shtml file extension with Source Editor, you can double-click an .shtml file and have it displayed with the |
| 18591 | The following article contains the complete contents of the Readme.txt file distributed with Microsoft Visual InterDev. |
| 18592 | This article demonstrates how to use an ActiveX Control written in Visual Basic 6.0 to flush the credentials of an authenticated Web user. This technique applies to Web sites that use Basic authentication and Internet Explorer 4.x. |
| 18593 | When you select |
| 18594 | When you search the Microsoft Knowledge Base for articles that relate to Visual InterDev, you can use the Knowledge Base keywords and keyword combinations described in this article as criteria to help filter your search results. |
| 18595 | The Schema Designer does not support the precision of more than 29 places for either DECIMAL or NUMERIC data-types. |
| 18596 | When you use the Visual InterDev 6.0 Source Editor to edit Microsoft Visual Basic Script (VBScript) or JScript code, IntelliSense (Statement Completion) is not available for the Microsoft.XMLDOM object. |
| 18597 | Context-sensitive Help (F1) does not work in Visual InterDev 6.0 after you have installed Microsoft Visio 2000. |
| 18598 | When you use Visual SourceSafe integration with Visual C++, you may experience significant performance loss under the following conditions: |
| 18599 | The Visual Studio MSDN Library Help system files Hhctrl.ocx and Itss.dll are not updated when you install Visual Studio Service Pack 3. The default locations of these files are: |
| 18600 | This article shows how to create a "Hello World" application to test whether individual Visual Studio 6.0 product are correctly installed. |
| 18602 | MS-DOS applications written in C generally use main() for the entry point. The command line can be obtained from the argv parameter of main(). In particular, the program name is pointed to by argv[0]. |
| 18603 | When compiling an MFC application using the single-threaded run-time library, you receive the following two unresolved external error messages: nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex... |
| 18604 | The Microsoft C++ compilers encode the names of symbols in C++ programs to include type information in the name. This is called name decoration, or name mangling. The purpose of this is to ensure type-safe linking. The C++ language allows function... |
| 18605 | Porting your 16-bit application to Win32 results in LINK error LNK2001 (unresolved externals), if a __cdecl function is exported using a module- definition (.DEF) file. The error specifies the function as defined in the .DEF file, with the |
| 18606 | Dr. Watson won't log stack information in postmortem debug log if the application was built with the Visual C++, versions 2.x and later, default settings. |
| 18607 | Attempting to delete a pointer to a constant causes the compiler to generate the following correct error message: Error C2710 : cannot delete a pointer to a const object NOTE : Visual C++ .NET compiler does not demonstrate this issue in conformance to... |
| 18608 | A GUID must be initialized exactly once. For this reason, there are two different versions of the DEFINE_GUID macro. One version just declares an external reference to the symbol name. The other version actually initializes the symbol name |
| 18609 | The 16-bit Resource Editor (AppStudio) generates the following message while attempting to edit a bitmap that contains more than 16 colors: |
| 18610 | In C++, you may need to have two classes that contain data members that refer to the other class as in this example: |
| 18611 | When you investigate a possible problem with the Microsoft Visual C++ compiler or linker, it is important to obtain as much information as possible about the build process and the options being used. This article discusses some trouble-shooting tips... |
| 18612 | When you install Visual C++, Setup creates an icon for the Setupdbg.exe utility called NT System Symbols Setup. On running this utility to install the Windows NT symbol files (.DBG files), you are prompted to enter the full path to your Windows NT... |
| 18613 | Microsoft Developer Studio's debugger uses the F11 key as the shortcut key to step into a function. All past editions of Visual C++ and Codeview used the F8 key as the shortcut key for step into. This article describes how to modify the keyboard... |
| 18614 | Attempting to build or rebuild a project after performing a line coverage profile by clicking Profile on the Tools menu results in this error message: LNK1201: error writing to program database c:\MSDEV\Projects\yourapp\Debug\yourapp.pdb; check for... |
| 18615 | When you try to uninstall Visual C++ by using Control Panel, choosing Add/Remove Programs, and selecting Visual C++, Windows 95 displays a message box containing the following lines: Uninstaller Error An error occurred when trying to remove Microsoft... |
| 18616 | Browsing on demand works differently in Visual C++, versions 4.0 and later, from previous versions. If you do not have browse information generated when you attempt to use the browser in Visual C++ 4.0 and later, you get a message stating t |
| 18617 | Although Just-In-Time (JIT) debugging is enabled in the Developer Studio, a debugging utility other than the Developer Studio is invoked when an illegal operation occurs in Windows 95. |
| 18618 | Providing a dedicated heap by overloading new and delete for a class can significantly reduce memory fragmentation. Any class that is frequently instantiated using new is a candidate for providing a dedicated heap. |
| 18619 | In 32-bit Windows-based applications, Windows API functions (OpenFile, CreateFile, and so on) return a file handle that cannot be substituted for a handle returned by a C Runtime Function (_open, _wopen, and so on). You can convert an opera |
| 18620 | There is no _pascal keyword in the 32-bit editions of Visual C++. Instead the Windef.h header file has PASCAL defined as __stdcall. This creates the correct style calling convention for the function (the called function cleans up the stack) |
| 18621 | To debug a Windows Shell Extension using Microsoft Visual C++, you must specify the Windows shell as the Executable For Debug Session in Project Settings (Build Settings if using Microsoft Developer Studio 4.0), and re- start it by using the Visual... |
| 18622 | There are six types of reusable libraries: Static Single Threaded Library (Debug/Release), Static Multithreaded Library (Debug/Release), and Dynamic Link Library (DLL)(Debug/Release). The DLL is multithread-afe and a single- thread version of the CRT... |
| 18623 | This article provides information regarding the redistribution of the DAO components with your DAO-enabled application that was developed using Visual C++ 4.0. The information in this article supersedes all documentation found on or install |
| 18624 | The following is a brief description of the various Visual C++ products and an overview of some of the features introduced in those products. This is not a comprehensive review of these products. Microsoft does not recommend that you use this as a... |
| 18625 | There is no way to insert an existing project as a project or subproject of the current workspace in Visual C++, version 4.0. The Insert menu has a Projects command that you can use to create new projects and sub-projects for the workspace, |
| 18626 | Floating point decimal values generally do not have an exact binary representation. This is a side effect of how the CPU represents floating point data. For this reason, you may experience some loss of precision, and some floating point ope |
| 18627 | The Visual C++ Books Online section "Profiling Dynamic-Link Libraries" explains the steps involved in profiling dynamic-link libraries and profiling multiple .dll and .exe files. |
| 18628 | Neither the error message itself nor the online documentation for the C2354 compiler error clearly specify the cause of this error: |
| 18629 | Starting up the Visual C++ Debug Monitor (Msvcmon.exe) with Network (TCP/IP) selected and pressing the Connect button causes the following error: |
| 18630 | When the C Run-Time (CRT) library and Microsoft Foundation Class (MFC) libraries are linked in the wrong order, LNK2005 errors similar to the following may occur: nafxcwd.lib(afxmem.obj) : error LNK2005: void * __cdecl operator new(unsigned... |
| 18631 | When a IOMANIPdeclare() macro is used with a reference type, the compiler generates the following error message: |
| 18632 | Using Spy++ with message logging on an owner-drawn combo box results in one of the following errors: |
| 18633 | When you install Visual C++ 4.x in either Windows 95 or Windows NT, it is possible for setup to fail while copying certain shared DLLs. The DLLs that don't copy successfully will most likely be one of these: |
| 18634 | Using Visual C++ version 4.0, it is possible to construct OLE Control Containers. These containers must call AfxEnableControlContainer() in their CWinApp::InitInstance(). This call is added automatically if OLE Controls support is checked i |
| 18635 | The LicReqst sample illustrates how to use the IClassFactory2 interface to request an object's License key. The following file is available for download from the Microsoft Download Center: Licreqst.exe For additional information about how to download... |
| 18636 | Sometimes when you open a Visual C++ generated makefile that has been modified (either by you or corrupted by the system), Developer Studio generates a fatal application error (illegal operation, access violation, gpf, page fault). |
| 18637 | ClassView pops up the message "Cannot find the definition for this function" for some member functions of a template class. This happens for those member functions that return a template class, or a reference or pointer to a template class. |
| 18638 | This article describes how to identify the symptoms of file corruption problems. At some point after installing one of the products listed above, you may run into strange build errors that occur on simple projects or even with some of the s |
| 18639 | On a machine with Visual C++ installed, when you try to place an ActiveX (OLE) control on a dialog box template, you see a message box stating: The ActiveX control The control inserted could not be instantiated because it requires a design-time... |
| 18640 | The compiler generates error C2146 followed by C2065 and finally C2143, all pointing to the same line in the source. |
| 18641 | Visual C++ was not designed and tested as a network application. |
| 18642 | In some instances, you may find it advantageous to have the compiler generate user-defined warning messages such as the following: |
| 18643 | The time displayed in the status bar of the development environment in Visual C++ is off by one hour. |
| 18644 | When single-stepping through a SQL Server stored procedure, error messages, if generated, are not displayed at the point where the error occurred. |
| 18645 | If you run a SQL Server stored procedure that has a datetime type parameter, you need to provide the value in a specific format or you get the following error: 22008[Microsoft][ODBC SQL Server Driver]Invalid date Visual C++, Enterprise Edition,... |
| 18646 | When you execute or debug any stored procedure with default value parameters, the |
| 18647 | When you execute or debug any stored procedure, the |
| 18648 | When editing a bitmap using the Resource Editor, you may observe that icons and bitmaps are distorted (lose form and change color) throughout the system. Also, the bitmap itself looks distorted in the Resource Editor. |
| 18649 | The sample code below illustrates how to use the accumulate, copy, and vector::push_back STL functions in Visual C++. |
| 18650 | Sometimes you may need to compare the build images (EXE, DLL, etc.) of the same project that were built at different times. Since the images contain time and date stamps, a plain file compare reports the differences between the images. You |
| 18651 | When you call _CrtMemDumpAllObjectsSince() to dump the objects on the CRT heap, you may see #File Error# in the place of a file name. Following is an example of a dump where both a file name and the #File Error# occurs. |
| 18652 | Under certain circumstances, The Microsoft Web Browser Control may appear to hang when used in a CFormView derived class. The control will actually be caught in an infinitely cascading loop of focus messages. |
| 18653 | Using Microsoft Access, you can create code modules in an .mdb file that can be used by predefined queries. When you open the query in Access, the code works as expected. However, if you use ODBC or DAO to access the predefined query, the following... |
| 18654 | Changing the initial value of the settings on the Print Setup Dialog is a non-trivial operation that requires you to override several non-virtual functions. This article demonstrates how to override by using the Page Orientation setting as an example. |
| 18655 | When you display Print Preview for a Multiple Document Interface (MDI) application, depending on the version of Microsoft Foundations Classes (MFC) you are using, it may appear either in the MDI child frame or in the MDI main frame. For Visual C++... |
| 18656 | To speed the build process, Visual C++ and the Windows Headers provide the following new defines: |
| 18657 | When you open a CRecordset with the skipDeletedRecords option set, it's Move() member function asserts if the nRows parameter is 0. |
| 18658 | CDaoRecordset::GetRecordCount is not guaranteed to return the correct number of rows for a table-type recordset even if you call this function after calling MoveLast(). |
| 18659 | When you call GetControlUnknown() from inside a COleControl-derived class, it always returns NULL. |
| 18660 | The text in the tabs for debug windows, such as the Output and Locals windows, is too small to read. |
| 18661 | When deriving a class from CRecordset, ClassWizard may send the following error message: |
| 18662 | When you attempt to load a macro that contains a syntax error in Developer Studio, an error message similar to the following appears: |
| 18663 | Using namespace names recursively causes the compiler to generate the following error message: |
| 18664 | Thread safety with Jet has been achieved with the release of DAO 3.5/3.6, but only for applications built with the _UNICODE switch. To use DAO 3.5/3.6 in a multi-threaded environment you need to use a class library (or other access mechanis |
| 18665 | The wrong member function is called if you: |
| 18666 | Explicitly referencing the Null character in the second argument of strcmp causes the intrinsic version of strcmp to incorrectly report the two arguments are not equal. Please see the sample code below. |
| 18667 | A using declaration causes the following error: |
| 18668 | Warnings similar to the following are generated even if you use the warning pragma to disable the warning: |
| 18669 | When a class derived from a nested class calls a base class member function explicitly, the compiler generates error C2352 (relative to the sample code below): |
| 18670 | You can use the Windows API to start the default Internet browser on your system. To do so, you must first determine what Internet browser is registered as the default on your system, and then start that application. |
| 18671 | Under certain circumstances, if you call the Requery method of an ActiveX Data Objects (ADO) Recordset object, the LockType property of the Recordset changes to read-only ( adLockReadOnly ). This problem may occur under the following circumstances: If... |
| 18672 | This article contains a list of resources and links to other Knowledge Base articles that are related to Visual InterDev 6.0 debugging. |
| 18673 | When using ClassWizard to add Methods and Properties to an ATL interface in a MFC Application, ClassWizard will add the following line to the top of each function: |
| 18674 | When you use Visual Basic 6.0 components in your managed code, you may receive "Unhandled Exception" error messages. |
| 18675 | After you install or upgrade to Windows XP, Visual InterDev 6.0 Active Server Pages (ASP) debugging may not function and you may encounter one of the following problems: |
| 18676 | If you set the focus to one control of CFormView, minimize the frame window of CFormView, and then restore it, the focus isn't set back to the control that previously held the focus. |
| 18677 | After creating a new file in the Developer Studio shell MSDev.exe, you cannot name it with a file name that does not have an extension. |
| 18678 | When opening a Visual C++ workspace file (.dsw), the following dialog box appears: Browse for Project project name This dialog box shows the last known location for a project file (.dsp) in the workspace, and enables browsing for project files in... |
| 18681 | The string 01/01/1970 or its equivalent, depending on the time zone, is returned by CTime::Format() when the CTime object is NULL. It is expected to return a blank string when the CTime object is NULL. |
| 18682 | The filebuf class allows you to use buffered file input/output (I/O), and provides the sync() function to flush the file buffers. However, the filebuf::overflow() and filebuf::underflow() functions do not support the use of virtual functions in the... |
| 18683 | When compiling a Microsoft Foundation Class (MFC) application that uses the Windowsx.h header file and calls CWnd::SubclassWindow(), you may get the following error: warning C4003: not enough actual parameters for macro 'SubclassWindow' error C2059:... |
| 18685 | The Sysincl.dat and Msvcincl.dat files are used to exclude header files from being set as a dependency in Visual C++ projects. However, if the header file is located in the same directory as the project, the file will be included as a depen |
| 18686 | The Globals folder in the ClassView of Developer's Studio is used to display and provide quick access to global identifiers in the current project. Identifiers declared as static that have file scope are missing from the ClassView Globals folder. Note... |
| 18687 | If you duplicate a resource a few times in the resource browser by using copy and paste, you will find that it is possible to run into resource ID collisions when you try to rename the resources using the resource property dialog box. That is, when... |
| 18689 | An attempt to load a CRichEditDoc causes the following message to appear: Unexpected file format. This happens when you attempt to serialize data to the archive after serializing the CRichEditDoc. |
| 18690 | Compiling a .CPP file that includes a large amount of header file information may cause the compiler to generate a C1001 error when using the /Zg switch to generate function prototypes. |
| 18691 | If you extract an integer of an invalid octal value from istrstream, 0 is extracted and the ios::failbit is not set. In addition, the ios::fail() function returns FALSE, incorrectly indicating that the istrstream is valid. |
| 18692 | The Microsoft Visual Basic T-SQL Debugger Object (VBSDIEvent) contains a hidden method, |
| 18693 | This article shows how to programmatically set which printer is the system default printer. Not all applications or components can select a specific printer to use. This often makes it necessary to change the default printer for the system so that the... |
| 18694 | A Visual Basic application that has a |
| 18695 | You can use a ComboBox that appears over the active cell to make it easier to enter data into a MSFlexGrid or MSHFlexGrid control. This article demonstrates how to do this, as well as how to resize the ComboBox when a column is resized. Ple |
| 18696 | An application may need to perform tasks differently depending on which operating system is running on the computer. This article shows, by example, how to differentiate between Microsoft Windows 95, Microsoft Windows 98, Microsoft Window N |
| 18697 | Access Keys (accelerators) for a UserControl do not work if the control is contained in an MFC Dialog. |
| 18698 | The SelPrint method of the RichTextBox control does not allow a programmer to set the position of the output on the printer. In addition, the RichTextBox control does not provide a method for displaying its contents as they would show up on |
| 18699 | You can play a waveform (.wav) sound file from Microsoft Visual Basic for Windows by calling the sndPlaySound API function from the Mmsystem.dll file. In order to be able to call the sndPlaySound API function, you must be using either Micro |
| 18700 | ChartGIF.exe is a sample file that illustrates how you can use server-side script with the Office 2000 and Office XP Web Chart Components to send a GIF representation of a chart as binary data to your client's browser. The advantage of the |
| 18701 | If an ActiveX control is written in Visual Basic 6.0 and supports the EditAtDesignTime property, and you insert the control on a slide that is open in PowerPoint 2002, and you then activate and try to resize the control during design time, PowerPoint... |
| 18702 | Dsoframerctl.exe contains a Visual C++ ActiveX control sample that acts as an ActiveX document container for hosting Office documents (including Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Microsoft Project, and Microsoft Visio documents)... |
| 18704 | According to ANSI specifications, the sizeof macro returns the unsigned integer size of a particular data type or variable. |
| 18705 | An attempt to create a debugging library that uses precompiled headers may fail and fatal build errors may be generated. With the 16-bit edition, the CVPACK and LINK utilities may generate the following error message: CVPACK : fatal error CK1017:... |
| 18706 | Code that changes the value of a |
| 18707 | This article describes how to troubleshoot setup problems with Visual C++, 32-bit Edition, in Windows NT. Because most developers are more familiar with troubleshooting 16-bit problems, this article also mentions 16-bit methods that do not |
| 18708 | Comaddin.exe is a self-extracting executable that demonstrates building an Office 2000 or Office XP Component Object Model (COM) add-in using Visual C++. A COM add-in is an in-process COM server specifically designed to run within the context of one... |
| 18709 | Visual Studio and the products that are contained in Visual Studio have not been tested and are not officially supported when you run them in a Terminal Server client session using Terminal Server on Windows NT 4.0. Visual Studio .NET Products are not... |
| 18710 | Service packs are the means by which Microsoft distributes bug fixes. Service packs keep a product current. Service packs include updates and may include system administration tools, drivers, and additional components, which are bundled for easy... |
| 18711 | Some CRT string format functions may cause an access violation, stack overflow, or stack corruption due to buffer underwrites. |
| 18712 | Visual Basic 6.0 ActiveX dynamic-link libraries (DLL) may cause COM+ applications and Active Server Pages (ASP) Web sites to stop responding (crash) if the |
| 18713 | This article describes how to migrate Microsoft Visual InterDev Design-Time Controls (DTCs) to ASP.NET Web server controls and HTML server controls. |
| 18714 | When you attempt to expand a C structure in the Variables window of the Visual C++ 6.0 debugger, the structure may not expand. |
| 18715 | When you use the |
| 18716 | When you use multiple instances of Excel with your RealTimeData (RTD) server, you may receive the following message: The real-time data server 'servername.classname' is not responding. Would you like Microsoft Excel to attempt to restart the server?... |
| 18717 | A migration dynamic-link library (DLL) allows an application that is installed on Microsoft Windows 95 or Microsoft Windows 98 to function correctly after a user has upgraded to Microsoft Windows 2000. This article covers how to debug a mig |
| 18718 | Smart Tags are a technology introduced with Office XP that provide Office users more interactivity with the content of their Office documents. A Smart Tag is an element of text in an Office document that is recognized as having custom actions... |
| 18719 | With Visual InterDev, you can use Secure Sockets Layer (SSL) to ensure privacy when you design Web sites. This article describes several issues that you may encounter when you use Visual InterDev and SSL. |
| 18720 | When you use the Page object DTC, Visual InterDev might crash when it attempts to bring up the statement completion list of available Navigate functions. |
| 18721 | When an OptionGroup Design-time control (DTC) is used on an HTML or Active Server Pages (ASP) page, the onchange event associated with the DTC is not available when the Scripting Platform is set to "Client (IE 4.0 DHTML)" and the scripting |
| 18722 | Individuals commonly want to display a list of items/records associated with a particular item/record selected by the user. The sample in this article uses a table with a one-to-many relationship with a second table. A list box displays one |
| 18723 | After you enable a source control for a Web project, some users fail to see the source control commands for files in their project. These commands include the following: |
| 18724 | When |
| 18725 | When you place the Recordset design-time control (DTC) on an Active Server Pages (ASP) page, the Recordset DTC does not pick up any data connections that are made to a project. The connections do not appear in the |
| 18726 | If a user drops the Form Manager Design-Time Control (DTC) on an HTML page and then drops DTCs such as the Button DTC or Text Box DTC after the Form Manager, no choices are listed in the |
| 18727 | If you create an Active Server Pages (ASP) page in Visual InterDev and edit it in Microsoft FrontPage 98, the ASP page appears successfully the first time that you preview it but displays errors if the page round trips to the server and bac |
| 18728 | The nature of the Visual InterDev 6.0 Grid Design-Time Control (DTC) is that it is "read only." That is, it is designed to display information in a tabular format and provide navigation controls. However, the information displayed cannot be |
| 18729 | When you implement a Web farm and use a routing product such as Cisco Local Director, you may notice that Active Server Pages (ASP) session state is lost. |