what's the relationship between .obj 3d files and c++ .obj files?

No, there’s not official registry of file extensions, there’s plenty of file types that use the same extension, just look at .mdl files