16,006,605 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Jim from Indy (Top 5 by date)
Jim from Indy
25-May-11 10:58am
View
I did change the EZLogger declaration in the .cs file from "class EZLogger" to "public class EZLogger", and that eliminated the "inconsistent accessibility" error. The other two errors persist. Should point out I'm using VS2005.
Jim from Indy
25-May-11 10:48am
View
I am grateful for your answer. I needed to understand what I misunderstood so I could make it work. I looked up static classes in my reference book, and it gives them short shrift, so I needed to rely on you to understand what I did wrong. Never suggested you were wrong. Sorry if I gave that impression.
Jim from Indy
23-May-11 9:37am
View
John, any ideas?
Jim from Indy
20-May-11 16:06pm
View
I put it in the same namespace as my main program. It said "cannot declare instance members in a static class..." and "Inconsistent accessibility: property type 'RavSoft.EZLogger' is less accessible than property 'BuyerFeedback.Globals.Logger'" -- EZLogger, obviously, is in a different namespace.
Jim from Indy
20-May-11 15:52pm
View
Mark, I think you exceeded my expertise. I don't want to pass the instance. Too many methods. I don't know how to create the clas as a static object. I'm not sure how to create a container class for this, though since I'm only using a few methods, this sounds intriguing. I didn't understand "Expose events....", and I just printed the article on the Microsoft Enterprise Library.
Thanks for the push. If you'd care to expound on the options I didn't understand, I'll be grateful, but you've gotten me started. Thanks!