#include <vector>
#include <string>
#include <iostream>

//----------------------------------------------------------------------------
// application libraries
#include "stdafx.h"


//----------------------------------------------------------------------------
// standard libraries
#include <math.h>
#include <string.h>


void CDlg_Openings::OnBnClickedButtonAdd()
{
	//// Write valus to a text file FILE *fptr;	
	////----------------------------------------------------
	//// open file to write
	//FILE *fptr;	
	//fptr = fopen("C:\\openings.txt" ,"a+"); 
	////fprintf(fptr,"%s,%s,%s,%s,%s,%.1f,%s,%s,%.1f,%s,%s%.1f,%.1f,%s,%.1f,%.1f,%s,%s,%s,%s,%s,%s,%s,%s,%.1f,%s,%.1f,%s,%.1f\n",
	//fprintf(fptr,"%s,%s,%s,%s,%s,%.1f,%s,%s,%.1f,%s,%s,%.1f,%.1f,%s,%.1f,%.1f,%s,%s,%s,%s,%s,%s,%s,%s,%.1f,%s,%.1f,%s,%.1f\n",
	//	openingFromSource,
	//	openingDescription,
	//	openingGlzType,
	//	openingLowECoating,
	//	openingUsedDefEmissivity,
	//	openingEmissivty,
	//	openingArgonFilled,
	//	openingGap,
	//	openingPitch,
	//	openingOrientation,
	//	openingOvershading,
	//	openingWidth,
	//	openingHeight,
	//	openingLocationName,
	//	openingOverhangDepth,
	//	openingOverhangWidth,
	//	openingRef,
	//	openingLinkageMaster,
	//	openingLinkedTo,
	//	openingFrame,
	//	openingThermalBreak,
	//	openingDraughtProofing,
	//	openingMetalLintel,
	//	openingTransmittanceSelected,
	//	openingTransmittanceFactor,
	//	openingFrameSelected,
	//	openingFrameFactor,
	//	openingUvalueSelected,
	//	openingUvalue
	//	);
	//
	//fclose(fptr);

	//--------------------------------------------------------------------------	
	// Clear the vectors before start writing again
	openingsList.clear();

	// Read values from file into vectors	
}