I'm new to COM and am getting lost (drowning) in all the details. So, I've
decided to try a simple example to get started. I've created a class called TempCalc with the instance method >>celsiusFromFahrenheit: aFahrenheitTemp. Now, I would like to build an executable, and set it up as a COM object with that class and method being exported (available to be used). What are the steps to do this in Dolphin (keep in mind I'm COM deficient :-( )? Many thanks in advance. |
There are some pages on the OA wiki which will help get you started, but
there are a lot of details in COM. So starting small was a good idea. I would advice not worrying about the executable for the while. Just get your dolphin image registered as a class factory for your method, then worry about the executables later. (that comment is probably jumping the gun) http://www.object-arts.com/wiki/html/Dolphin/COM.htm http://www.object-arts.com/wiki/html/Dolphin/ImplementingActiveXComponents.htm http://www.object-arts.com/wiki/html/Dolphin/UsingActiveXComponents.htm These should get you started... I'd also recommend David Chappell's book , ActiveX & OLE for a high-level (but still usable by a developer) introduction to COM. Feel free to hollar with more questions. I found Dolphin's COM facilities to be pretty good and straightforward. Eric drtau wrote: > I'm new to COM and am getting lost (drowning) in all the details. So, I've > decided to try a simple example to get started. I've created a class > called TempCalc with the instance method >>celsiusFromFahrenheit: aFahrenheitTemp. > > Now, I would like to build an executable, and set it up as a COM object > with that class and method being exported (available to be used). What > are the steps to do this in Dolphin (keep in mind I'm COM deficient :-( )? > Many thanks in advance. > > > |
Is it possible to RaiseEvent (as in VB) from Dolphin as an DCOM Server?
Eric Winger <[hidden email]> wrote in message news:<[hidden email]>... > There are some pages on the OA wiki which will help get you started, but > there are a lot of details in COM. So starting small was a good idea. I > would advice not worrying about the executable for the while. Just get > your dolphin image registered as a class factory for your method, then > worry about the executables later. (that comment is probably jumping the > gun) > > http://www.object-arts.com/wiki/html/Dolphin/COM.htm > http://www.object-arts.com/wiki/html/Dolphin/ImplementingActiveXComponents.htm > http://www.object-arts.com/wiki/html/Dolphin/UsingActiveXComponents.htm > > These should get you started... I'd also recommend David Chappell's book > , ActiveX & OLE for a high-level (but still usable by a developer) > introduction to COM. > > Feel free to hollar with more questions. I found Dolphin's COM > facilities to be pretty good and straightforward. > > Eric > > drtau wrote: > > I'm new to COM and am getting lost (drowning) in all the details. So, I've > > decided to try a simple example to get started. I've created a class > > called TempCalc with the instance method >>celsiusFromFahrenheit: aFahrenheitTemp. > > > > Now, I would like to build an executable, and set it up as a COM object > > with that class and method being exported (available to be used). What > > are the steps to do this in Dolphin (keep in mind I'm COM deficient :-( )? > > Many thanks in advance. > > > > > > |
Scott wrote:
> Is it possible to RaiseEvent (as in VB) from Dolphin as an DCOM Server? > > I'm not entirely sure I understand the question. But if you're looking for a way to do callbacks or have the server notify the client of interesting things, then take a look at the Connectable Objects stuff in COM. The basic jist of it is that the server holds onto a connection point. Then the client passes an interface pointer that the connection point understands to the connection point. The interface is to a sink object in the client. Then the server can pass messages to the client. Chappel's book has the basics on it. And Dolphin has classes to help with that already. Eric |
Free forum by Nabble | Edit this page |