CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    47

    General Question

    Would it make sense to use an Active X dll to handle a certain operation in my applications. This way both applications could access the same operation. What are the advantages of doing this? Is is faster to access a dll rather then just placing it in the code itself.


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: General Question

    Hi,
    If more than one application is using a same kind of operation/functions, it certainly makes sense to put it in a dll, and share it.
    Advantages are code reuse ( at component level, remember you are sharing binaries). A small reduction in total size (i.e of all together)
    and all the advantages associated with COM itself.

    Reg. Speed - ActiveX components have a COM interface, and COM rolls on OLE, so "strictly" speeking it should be 'slower' than direct coding. BUT then, you could tweek elsewhere in the code for speed & performance than worry about the time taken to access the dll!!. The advantages DO outweigh speed considerations atleast. I would say 'difficulty in deployment' would rate higher ( as disadvs.) than 'speed considerations'.

    Ravi



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured