1. Add an existing PRG to the project
2. Right click on it and select properties. Select "Custom Build tool":
3. Right click again on it and configure it this way:
Copy the bold texts from here:
c:\harbour\bin\harbour %(FullPath) /n /ic:\harbour\include /ic:\fwh\include
.\%(Filename).c
4. Right click again on it and compile it, and add the resulting C file to the project too. Set the Harbour include path and not to use Windows runtime extensions:
Copy the bold text from here:
c:\harbour\include;%(AdditionalIncludeDirectories)
Working fine