You should instanciate your COM like this:
oPhone = NewObject('Auto_Phon.Auto_Phone')
HTH
>I am trying to build a COM object based on a .vcx, just going through some notes from 98 DEVCON...
>
>Everything seems to be working fine, but I can not seem to get the vcx to reference properly...
>
>I have built an exe using VFP SP3 that includes a vcx and a stub program for the main.prg
>
>I modified the class and placed a check mark in ole public
>
>Here is how I am trying access the COM object after building:
>
>ophone=newobject('auto_phone','autophon.exe')
>ophone.account_id='1002-00'
>ophone.ubdir='c:\ub'
>ophone.get_data()
>? ophone.Total_balance
>
>
>Shouldn't this work without having to do the following
>
>SET CLASSLIB TO AUTO_PHONE_BASE ADDITIVE
>
>ophone=newobject('auto_phone','autophon.exe')
>ophone.account_id='1002-00'
>ophone.ubdir='c:\ub'
>ophone.get_data()
>? ophone.Total_balance
>
>I am wanting to distribute the exe without sending the vcx.
>
>What am I missing here?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only