Hi Srdjan
>Did you include all files needed by ctl32
>I saw one thread recently where not including ctl32.h into project caused fatal exception.
Yes, I have done that, plus I have also excluded / included it but no change. Plus this is VFPx class's WinAPI call that is failing and only in the exe and not in the IDE.