adding vanilla c++ to a UE4 project

Thanks for the reply, I followed your advice, and I was able to build the code! :cool:

I then added INT z; to the class definition, so i can try to figure out how to build the logitech code like so:



#ifndef MY_TEST_H_INCLUDED_
#define MY_TEST_H_INCLUDED_

#include "AllowWindowsPlatformTypes.h"
class testClass
{
	public:
	int x,y;
	int someMethod();
	INT z; //NEW!
};
#include "HideWindowsPlatformTypes.h"
 #endif //MY_TEST_H_INCLUDED_ 


then changed someMethod() to look like:



#include "carTest.h"
#include "testClass.h"

int testClass::someMethod()
{
	return x + y + z;
}



and that works! So, hopefully I can use this info to get the logitech code to build. I’ll update this post once i figure it all out.

Thanks again for the help.

[edit]

at first glance, adding the logitech stuff wont be as easy as my test example because some header files include other header files, this creates the “Nesting AllowWindowsPLatformTypes.h is not allowed!” error.
I’ll have to see what i can do. Maybe change the types to normal types, or see if all header files need AllowWindowsPLatformTypes.h to be included.