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:
01017655
Views:
16
Strange? The follwing code works WHEN it is placed in one project:
o1 = CREATEOBJECT("MyClass")
o1.Show()
READ EVENTS



DEFINE CLASS MyClass AS Form OLEPUBLIC
       Top    = 10
       Left   = 10
       Width  = 300
       Height = 300
       
   PROCEDURE Init
       this.Visible = .t.
   ENDPROC
   PROCEDURE Destroy
      CLEAR EVENTS 
   ENDPROC
   
ENDDEFINE
But if you split that code to two different projects, Compile one with OLEPUBLIC class to EXE, RUN Exename /regServer
and then try to:
o1 = CREATEOBJECT("ExeName.MyClass")
o1.Show()
READ EVENTS
Nothing happens. May be I missing something because I never play with OLEPUBLIC classes till now.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform