|
-
June 28th, 2010, 02:39 PM
#1
AfxGetApp in C#
Hello,
In Visual 6, MFC 4.2 I had AfxGetApp. I used it to get the application object from all other objects. In this class I added some fields and some set\get methods.
How can I do the same in Visual 2008, in C# ?
I'm looking for an elegant way to declare and use a singleton in C#.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|