$ 0 0 DgnFile::GetLevelCacheR() returns a FileLevelCacheR. Just declare your variable of that type instead of the LevelCacheR type used in the sample.