>OK, so the class is indeed instantiating? I mean you start with a oEXEClass either undefined or NULL and then when you run the code the class gets created, I mean if you look at oEXEClass in the debugger it is there and has PEMs, but does not become visible even though there is a this.visible = .T. in the init? Form class I'm guessing? Long shot, but it's not somewhere like outside the viewing area of your screen, such as top 2000 or something?
>
>>>Since you're sure that the class is OLE PUBLIC, I would ask if you have restarted VFP and tried it. Maybe something is hung up in memory that is preventing the class from instantiating again.
>>>
>>>
>>>>>>I have built an exe module.
>>>>>>I am using the following code to run from a command line an OLE public class:
>>>>>>o = CREATEOBJECT('executablename.classname')
>>>>>>In Init of the class I have This.Visible = .T.
>>>>>>It worked for one time. I mean the class became visible. But then as many times I am running the command the class is not visible.
>>>>>>Any help, please?
>>>>>
>>>>>
>>>>>oEXEClass = CREATEOBJECT('executablename.classname')
>>>>>oEXEClass.Visible = .t.
>>>>>
>>>>
>>>>That would be too easy :)
>>>>Nope, I tried that.
>>Did not help.
Like I said at some point it worked once.