How to use System namespace and library through MS Visual Studio in UE4 C++ project?
Dear community and staff,
A personal project of mine, namely controlling a wireless toy cannon from a user interface built with the Unreal Engine has been blocked for while now. I can't seem to integrate the Microsoft Windows platform serial communication directly into a C++ class in the Unreal Engine 4.
Edit 2015-02-21: To summarize, I am trying to use a System::IO::Ports::SerialPort in my project.
Below is a minimal code snippet to reproduce the problem, with marked known compilation failures. Thank you for any feedback, suggestion, comments.
In SerialPort.h file:
This is a very specific project, for MS Windows deployment only, more of a toy really. I have both pieces working separately: front end and back end serial port in other projects of mine. I have added CLR support in the project, general configuration properties. I believe I added dependencies and includes to the project.
Please let me know of any suggestion or question. Thank you, Fen
I was eventually able to control my toy cannon from the unreal engine menu I created, controlled through a .Net framework DLL using the System SerialPort. I will post a brief video about the project next week, the article which was the starting point for solving the situation was: https://wiki.unrealengine.com/Linking_Dlls I will add further to this article and enhance it for everyone to reuse the work. All in all this question is solved. Thank you everyone.
Follow this question
Once you sign in you will be able to subscribe for any updates here