>Hi Cetin,
>I tried:
>
>ComForm.NewObject("MsCom","MSCOMMCLASS","MYMSCOMMCLASS.VCX")
>
>and I get 'Class Definition Not Found.'
>
>It still wants me to include a DEFINE/ENDDEFINE statement for this class, but the class is already created and exists in the project and I don't want to define manually what I created visually. Did I do something wrong?
>
>
>PUBLIC ComForm
>ComForm = CREATEOBJECT('Form')
>*Below is the old code that created a new class based on the generic mscommclass
>*--ComForm.AddObject("MsCom","MSCOMMCLASS")
>*Below is the NEW code that SHOULD add an instance of my mscommclass in ATICOMMCLASS.VCX
>ComForm.NewObject("MsCom","MSCOMMCLASS","ATICOMMCLASS.VCX")
>
Tracy,
Sounds like ATICOMMCLASS.VCX not in search path. Temporarily use fullpath to see if that's really the problem.
Cetin