Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which kind of component should I use?

Status
Not open for further replies.

mogura

Programmer
Sep 6, 2003
22
GB
I want to develop an ActiveX component that will validate IP addresses. If an invalid IP address is passed to the component, then the component will pass back the address 0.0.0.0. I want to use a deployment model that will allow the component to be used simultaneously by multiple applications and still provide the best possible performance. Should I use a local out-of –process.exe or an external in-process.exe. ? Or would a local in-process .dll be better?

Please Help!

mogura
 
Ok. First, to me, in process is a dll, and out of process is an exe. I don't know what an "external in process exe" is. If performance is your main issue, then in process (dll) is generally best, because it eliminates marshaling overhead. If you are working with something very complex, that might not be the case, however, this doesn't sound very complex. I would use a dll.

HTH

Bob
 
Validate in what sense, by the way? In that it is simply legitimate IP address (i.e follows the quad rules), or that it is a real IP address (eg it can be pinged)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top