Compilation Errors - temcocontrols/T3000_Building_Automation_System GitHub Wiki

These are a few issues you may encounter when first trying to compile the Temco Controls T3000 Building Automation System.

RC.EXE or MT.EXE missing

If you get an error when compiling, that 'rc.exe' or 'mt.exe' can't be found you will need run the latest update - VS2015 (update 3). When the installation is run it's necessary to select one additional SDK

Windows and Web Development -> Universal Windows App Development Tools -> Tools (1.4.1) and Windows 10 SDK (10.0.14393)

VS2015 install options

After installation the missing files should be found.

Debug Assertion Error

If the application crashes when you press 'Start' with an error related to the 'occcont.cpp' do the following;

  • Register FlexGrid OCX by navigating to the 'T3000InstallShield\mfc dll' directory from a command prompt (open as Administrator) and run this command 'regsvr32 MSFLXGRD.OCX'

  • delete all the .pdb files in the 'T3000_Output' directory and then recompile.

'Exception Thrown' error on Exit application

If an 'Exception Thrown" error occurs on exiting the T3000 application (this only occurs in Debug mode) - deselect the 'Break when this exception type is thrown'

Exit error

Application requires elevated privaledges

If you get the above error then you will need to start Visual Studio as adminstrator. The dialog will give you the option to restart as Administrator. To prevent having to restart you can start VS2015 as Administrator by right clicking on the VS2015 Start Menu item and select 'Run as Administrator'. If you are starting it from the Task bar you will need to hold shift key and then right click on the VS2015 icon and select 'Run as Administrator'.

To configure VS2015 to run as administrator every time it is run do the following.

  • Local Visual Studio in Startup menu and select 'More - Open file location' VS2015 Open file location

  • Right click on the Visual Studio 2015 start menu item and select 'Open file location' again - this will take you to the VS2015 installation directory

  • Right click on the file 'devenv.exe' and select 'Troubleshoot compatibility'

  • Select 'Troubleshoot program'

Troubleshoot program

  • Select 'The program requires additional permissions

Program requires

  • On the 'Test compatibility settings for the program' page, click 'Test the program…', wait for the program to launch, then minimize it and then click 'Next'

Test the Program

  • Select 'Yes, save these settings for this program'

Save settings

  • Click 'Close'

Now VS2015 will always be run with administrator privaledges.

⚠️ **GitHub.com Fallback** ⚠️