I am building the exe on winxp machine and running it on win7-32bit machine
After adding the line of code suggested, now i actually get an error with description as below
339 Component 'comdlg32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid

As mentioned before it is WIN7 32Bit machine, i think if find this component and registered it on the machine. Can you guide me where i can find this command to register?

how do i include this component in the app so it automatically registers itself when i run the exe on win7 machine?