hi , there
i m very new to c++ programming
i was trying to implement Rama’s code inside a new project so that i can play my game from an andriod device
but getting error for #include
Info ERROR: The first include statement in source file ‘…\EDU_Projects\Car_CPP\Source\Car_CPP\Car_CPPPawn.cpp’ is trying to include the file ‘String’ as the precompiled header, but that file could not be located in any of the module’s include search paths.
Sounds like you are forgetting to include your own game’s precompiled header before using my code ?
// <~~~ You have to put your game or plugin include here,, #include "YourGame.h"
#include <string>
void AJoyPCEditor::StartsTheWholeProcess!()
{
if( ! StartTCPReceiver("RamaSocketListener", "127.0.0.1", 8890))
{
VShow("Could not create the Socket Listener!");
return;
}
}
void ACar_CPPPawn::Laaaaaauuuunch()
{
//IP = 192.168.1.2, Port = 8890 for my Python test case
if (!StartTCPReceiver(“RamaSocketListener”, “192.168.1.2”, 8890))
{
//UE_LOG “TCP Socket Listener Created!”
return;
}
//UE_LOG "TCP Socket Listener Created! Yay!"
}
but Getting Following Error
[2015.06.26-07.26.38:614][ 16]CompilerResultsLog:Error: Error O:\Projects\UE4\EDU_Projects\Car_CPP\Source\Car_CPP\Car_CPPPawn.cpp(172) : error C2664: 'int32 FString::ParseIntoArray(TArray<FString,FDefaultAllocator> &,const TCHAR **,int32,bool) const' : cannot convert argument 1 from 'TArray<FString,FDefaultAllocator> *' to 'TArray<FString,FDefaultAllocator> &'
[2015.06.26-07.26.38:614][ 16]CompilerResultsLog:Error: Error O:\Projects\UE4\EDU_Projects\Car_CPP\Source\Car_CPP\Car_CPPPawn.cpp(190) : error C3861: 'VShow': identifier not found