Shriramana Sharma wrote: > > Please note that static member functions can only access global data > > or static class data and can not be declared virtual. > > So if I want some globally accessible function that is not limited to > accessing global or static data what should I do? Huh? What other data do you want to access? To access the member variables of an instance, you need to actually /have/ an instance. -- Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx> - : send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html