>Do I have to distribute the vcx file with the exe file?
Definitely not. Are you sure you have included SET CLASSLIB TO MyClass.VCX ADDI somewhere in your code?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison