开发者

Creating Delphi Activex Servers from existing objects

开发者 https://www.devze.com 2023-03-24 08:57 出处:网络
In Delphi the process of adding an activex object to a project is fairly simple - you import the class and Delphi wraps handlers around it and you\'re done in seconds. What I\'m wanting to do though i

In Delphi the process of adding an activex object to a project is fairly simple - you import the class and Delphi wraps handlers around it and you're done in seconds. What I'm wanting to do though is create a server that the class connects to rather than a client for the class.

The specific case I'm working on is with OPOS printer drivers. I want to add an OPOS printer driver interface to an existing program so that the OPOS control objects can see my program as just another printer object class. I can readily import the printer type library as a component that I'm a client of, but I'm unsure what I need to do to be the other side of that conversation. I suspect I'm looking at something the wrong way but pretty much all the reference material I've found assumes I want to be a client or that I want to define an entirely new server. I'm also a COM newbie so it's a little confusing. I've been playing with XE and D7, and have created a tlb as per the printer control but obviously haven't quite been able to get it to fly.

Can anyone give me a nudge in the right direction h开发者_开发技巧ere?

0

精彩评论

暂无评论...
验证码 换一张
取 消