Re: What replace "this" in static class?
- From: "James Curran" <jamescurran@xxxxxxxx>
- Date: Wed, 7 Dec 2005 13:03:28 -0500
Originally, your class, as a derived class of QuickFix.Application,
held within it an instance of QuickFix.Application. Now that it's is a
static class, this relationship is broken.
It fix this, you must make explicit what was previous implict. Your
class can no longer derive from QuickFix.Application (as this relationship
is meaningless when one is a static class and the other is an instance
class), but should contain a explicit QuickFix.Application member.
--
Truth,
James Curran
[erstwhile VC++ MVP]
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
"Marty" <xmarty99@xxxxxxxxxxx> wrote in message
news:urElf.138488$y_1.49549@xxxxxxxxxxx
> Hi,
>
> I have a class that I modified to be static. It is now a public sealed
> class and all function are static, no more constructor but a init()
> function to do the constructor job.
>
> This class inherit from a QuickFix.Application class. I have this object:
> private static SocketInitiator qfxInitiator;
>
> When instantiated, its constructor need a "QuickFix.Application" object.
> And previously I was using "this" keyword because the class inherit
> from "QuickFix.Application", but now that the class is static, is there
> a keyword to point at this static class?
>
> Thank you :)
> Marty
.
- Follow-Ups:
- Re: What replace "this" in static class?
- From: Marty
- Re: What replace "this" in static class?
- References:
- What replace "this" in static class?
- From: Marty
- What replace "this" in static class?
- Prev by Date: Re: What is the GetTickCount() equivalent in C#?
- Next by Date: Re: What replace "this" in static class?
- Previous by thread: Re: What replace "this" in static class?
- Next by thread: Re: What replace "this" in static class?
- Index(es):
Relevant Pages
|