Can anyone provide me with a template for creating an in-process COM object with all the adornments needed to make it a published COM object?
I have PB9 and I've looked through all the sample code, spent hours reading both the online help and this forum and I'm still unable to put all the pieces together.
I've been working on a program to control and monitor EPSON data projectors across our campus network (we have hundreds of these projectors.) Creating a "projector" object and giving it methods and properties that reflect what a data projector can do was relatively easy. Implementing the TCP/IP communication code within my projector object was also made easy by PB. In fact it was actually fun! But now I want to move to the next level and publish the projector control COM object so that it can be used by any COM client (PB, VB, VBScript etc.)
It appears that this step adds a number of syntactic items to the object that are not needed when the object is a simple compiled-in private object.
The "Create New File" toolbar button in the PB IDE will create a "Generic PB program", "DLL framework using LIBMAIN" etc. But there's no option to generate a framework for a DLL based COM object. Can this be added?
I had been waiting for PowerBASIC to support some form of OOP and now that it's here I really want to delve into it.
I hope I've not been to wordy.
Thanks,
-Wes
I have PB9 and I've looked through all the sample code, spent hours reading both the online help and this forum and I'm still unable to put all the pieces together.
I've been working on a program to control and monitor EPSON data projectors across our campus network (we have hundreds of these projectors.) Creating a "projector" object and giving it methods and properties that reflect what a data projector can do was relatively easy. Implementing the TCP/IP communication code within my projector object was also made easy by PB. In fact it was actually fun! But now I want to move to the next level and publish the projector control COM object so that it can be used by any COM client (PB, VB, VBScript etc.)
It appears that this step adds a number of syntactic items to the object that are not needed when the object is a simple compiled-in private object.
The "Create New File" toolbar button in the PB IDE will create a "Generic PB program", "DLL framework using LIBMAIN" etc. But there's no option to generate a framework for a DLL based COM object. Can this be added?
I had been waiting for PowerBASIC to support some form of OOP and now that it's here I really want to delve into it.
I hope I've not been to wordy.
Thanks,
-Wes
Comment