Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM server creation
Message
From
04/06/2001 08:49:25
 
 
To
04/06/2001 07:09:45
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00513802
Message ID:
00514505
Views:
9
>Craig,
>
>I am calling this just as you say:
>
>o=CREATEOBJ("ImpactCOM.PatientBizObj")
>
>with no luck.
>
>Another question, I only have the PatientBizObj class set to OLEPublic, do I need any other classes set as well?
>
>Thanks
>
>Rex
>
>>Generally the component is Project.Class, so in your case, the project name would be ImpactCOM and the class is PatientBizObj. Make sure you are calling things correctly.
>>
>>>Craig,
>>>
>>>MereMortals has an event object class. I use these classes to interact between business objects. I set the event classes I will call to OLEPublic, compiled the project and tried to create an object with:
>>>
>>>o=CREATEOBJECT("ImpactCOM.PatientBizObj")
>>>
>>>and get the message:
>>>
>>>Class definition IMPACTCOM.PATIENTBIZOBJ is not found
>>>
>>>I created the DLL from your article and all worked fine, but this will not.
>>>
>>>Any ideas?
>>>
>>>TIA
>>>
>>>Rex
>>>

If you are using an event object to call your other bizobjs, you will need to set the event object to olepublic. Also, is your event object set to run automatically when it is instantiated? Or do you need to call the method manually? There may be something going wrong wehn the object is intantiated. The other classes do not need to be olepublic unless you intend to call their properties or methods directly. I would check the event log to see if any errors are being written out. If you are still having problems, start writing out when each method fires to a text file using the strtofile() function, to see when things are going bad. Com objects are difficult to debug, but if you can't instantiate it, maybe it isn't registered properly.

Hope this helps/
Previous
Reply
Map
View

Click here to load this message in the networking platform