Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run class from EXE
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01017632
Message ID:
01017651
Views:
15
I got the part about "it worked once". I'm asking some questions directly related to the situation in order to help ferret out what exactly is going on. Could you re-read my post and see whether you can provide any additional information based on the questions?

>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform