Problem with USTRUCT

I created a new header file called “QuestionData.h”, added in to my project and put this code into it:

 #pragma once

  #include "QuestionData.generated.h"

  USTRUCT() 
  struct QuestionData { 	
     GENERATED_USTRUCT_BODY()

     UPROPERTY(EditAnywhere, BlueprintReadWrite) 	
     TArray<FString> Tekst; 
  };

But Visual underlines #include, USTRUCT, GENERATED_USTRUCT_BODY(). Says that it cannot open QuestionData.generated.h, that identifier GENERATED_USTRUCT_BODY() is undefined and that USTRUCT is missing some explicit type (so ‘int’ was assumed). I think that I did everything right and this should work and when I open some Blueprint, create a variable there I should be able to choose the type of that variable to be my QuestionData structure (but I can’t do that, there’s no QuestionData structure in Blueprint). So what’s wrong? I work on 4.1.0 version of UE4.

did you solve this?

What compiler output do you get? The squiggles of Visual Studio are not always errors, e.g. they disappear after the Unreal Build System has generated files. (Greetings from The Netherlands!)

yeah, turns out so, at least for me I had my own topic too, thanks for the reply though! Netherlands is a beautiful place.