INFO: App.LogEvent Only Logs in Compiled ApplicationsLast reviewed: March 21, 1997Article ID: Q161306 |
The information in this article applies to:
SUMMARYMicrosoft Visual Basic version 5.0 introduces the concept of Event Logging to applications. This feature allows an application to add information to either a user-defined file or the Microsoft Windows NT Event Log when a user-defined criteria is met. This functionality is only available when running a compiled application. If you attempt to use the logging methods while in the Microsoft Visual Basic 5.0 development environment, the logging methods will be ignored.
MORE INFORMATIONThe logging can be enabled for the development process by creating and compiling a user-defined ActiveX DLL or EXE component that exposes the logging methods of the App object. The application in the development environment need only to add a reference to this compiled component. Calling the exposed methods of this ActiveX component will allow logging to function. Below is a sample ActiveX DLL that exposes the StartLogging and LogEvent methods of the App object. WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
REFERENCESMicrosoft Visual Basic 5.0 Online Help "StartLogging Method" "LogEvent Method"
|
Additional query words: limit limitation
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |