thanks a lot kaud. But the function im calling (RenderNewSimOutput) is legacy

in my case, iOutIndex will just be "0", as its just one pixel

Code:
bool OutputManager::RenderNewSimOutput(RenderFuncParams& rfp)
{
	for (INT_PTR i = 0, iOutIndex = 0, iProgressIndex = rfp.ulStartPoint;
		iProgressIndex < rfp.ulEndPoint;	//End condition 
		iProgressIndex++)					//Increment operation

{
		const bool bSuccess = pSim->DoNewTerminalCalculation(i, pTermType, &params, rfp.displayDataType,
															 bUseArraySettings, bIgnoreThresholds, inCellIndexWrtPixel, bSkipTrafficCheck,
															 dOut, iOut, outInfo, outCs, pPos);

		if ( rfp.pfOut ) (*rfp.pfOut)[iOutIndex] = float(dOut);
		
}