You will most likely NOT be able to compile this and use it. To do so, you will need to purchase the EXACT version of SoftwareFX ChartFX as ACT! uses (since the licensing information is embedded in ACT! executable). You will also need to install the free version of ActiveQueryBuilder to make it work.
Having said that, I think some of you out there may actually find the code useful, especially the way I do the parsing of the SQL to detect filter parameters and display a UI automatically for filtering. So...I thought I'd share