How to attach ActorComponent to my Actor in C++

Wait… so how does it know how to select the actor component i made in my asset?
And i tried that… it gave me this error
identifider “MySomekindOfCustomComponent” is undefined