-
-
Save jgcoded/5469a4d06c60519693bc to your computer and use it in GitHub Desktop.
When including windows.h I had some compile errors which looked like this: winioctl.h(10362): [C4668] '_WIN32_WINNT_WIN10_TH2' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
Added #define WIN32_LEAN_AND_MEAN and it compiles now
hi, how to use it and where i have to put it?
Hello. Create new project, choose c++ (not blueprint project), in the project add new c++ class (actor or component). And paste parts of this code into your class. Also in .h file probably need to include #define WIN32_LEAN_AND_MEAN. To use it in ureal blueprint expose those functions with UFUNCTION(BlueprintCallable). Also you'll need visual studio with c++ stuff installed, and maybe also jet brains rider (switch default code editor in editor settings). Rider easyer for me, youtube/chatgpt for the help. There is also python script to read memory. Overall copy/paste some code into chatgpt, it will explain :)
Here is my ue 5.1.0 project. I'm not saying this is good, rather little messy :) I added new c++ component, and did creation/init in constructor, so later in blueprint I just use "write string to sharedmem" node. The code is in Source/camRec1/SharedMemoryComponent
https://drive.google.com/file/d/1EYp9gCmbglOZ298X6tG6Qtt2Y8WRD33A/view?usp=sharing
ERROR at #include "VTBGame.h"
May I ask you to demonstrate how to integrate the module to unreal engine