Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a function which can handle unlimited subclasses?

Status
Not open for further replies.

LuckyLuke

Programmer
Mar 28, 2001
188
NL
Hi,

I want to make a function which can handle unlimited subclasses. Eventually I'll try to write it in C++, but first I start doing it in Visual Basic =) I guess the only way to do this would be with class modules. Anyone knows how to or has seen how to do it?

Thanks in advance,

LuCkY
 
I'm not sure that I entirely understand the question. Can you clarify at all?
 
Lucky,
Exactly what are you looking at doing? And what do you mean by "unlimited subclassing"? - Jeff Marler B-)
 
It's a bit vague indeed. Eventually, I'll want to write a C++ dll which has a function, for instance AttachMessage. As soon as this function has been called, it sets up the WindowProc and checks for the message. After that it just looks for more and more messages, unlimited messages, and to be added in an easy way. The callback function will simply be a postmessage with a specified message, which is given inside the arguments of AttachMessage.

I've already been looking and I found the SetProp, GetProp and RemoveProp functions, which can be very usefull for this. In fact, I think I already have what I want.

I know its still a bit vague, actually my whole idea is vague, since I don't really know what I want yet :-D Anyway, I'm in a rush now, so I hope you know what I mean, because I can't clarify myself anymore at the moment ;-)

LuCkY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top