How to call a Blueprint Custom Event from C++ code?

Even for the simplest things, there’s no documentation for C++… disappointed.

I have this:

2.png

Then I create these two variables (PlayerCharacter.h)

3.png

I call the CreateWidget<>() function (PlayerCharacter.cpp)

4.png

And eventually i get these errors: