Question

If this is Hungarian notation (CClass and IInterface), is there a way around it? I generally don't use Hungarian notation and I'm not sure if it's wise to do this out of habit.

Was it helpful?

Solution

No, Hungarian notation deals with specifying type information via prefixes. This is a lot more specific than the conventions of prefixing "I" to interfaces and "C" to classes, for example using bstrTestString as a name for a BSTR containing a test string (my own example, probably not mandated by the usual Hungarian notation examples).

Adding "I" and "C" is a very widespread convention, and is generally supported in most IDEs. I personally think the benefit (quickly seeing whether "RandomType" is a class or interface) is worth the tiny overhead.

OTHER TIPS

It's purely a convention. The way around it is to just not do it.

I personally don't like it either, but I tend to do a minimal version of it when writing Windows code, because there's some communication value in following local convention.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top