Making custome blueprint by c++ in UE4.16

Hi . Sorry if my question is been asked before but the examples i found for making a blueprint function library by c++ couldn’t be built in my visual studio 2017 because they have been made for older versions not for UE4.16 . I want to know what exactly should i Write in h and cpp files . If anyone could give me a working example i would be so thankful .


#pragma once

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "LIB_Bp.generated.h"

 * A simple blueprint library
class MYGAME_API ULIB_Bp : public UBlueprintFunctionLibrary
	static void MyAwesomeFunction();

#include “LIB_Bp.h”

void ULIB_Bp::MyAwesomeFunction() 


Thanks a lot . It worked .