PRB: Pre-Built STDREG.EXE Works Incorrectly (125729)
The information in this article applies to:
- Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
This article was previously published under Q125729 SYMPTOMS
When you run the pre-built STDREG.EXE sample from the Visual C++ CD-ROM,
and click "Initialize Data" within the "Student Registration Setup" dialog
box, a "SQL Server Login" dialog box appears that prompts for a Login ID
and Password. When you click OK after entering the necessary information,
you will notice that the application returns to the first dialog box
without getting to the "Enter Sql Column Syntax" dialog.
CAUSE
This behavior is by design. The cursor library attempts to create its
temporary files in the current directory. The operation fails as the
current volume is read-only.
RESOLUTION
To work around the problem, copy the sample from the CD-ROM to a writable
volume. If you build the STDREG.EXE sample as debug or release, rather than
run it from the CD, it works as described in the documentation.
MORE INFORMATION
For Visual C++ version 2.0, STDREG.EXE can be found in the
\MSVC20\SAMPLES\MFC\BIN directory on the distribution CD. For Visual C++
version 4.0, STDREG.EXE can be found on the distribution CD in the
\MSDEV\SAMPLES\MFC\DATABASE\STDREG directory.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbDatabase kbNoUpdate kbprb kbSamplePro kbusage KB125729 |
---|
|