Active X exe or Axtice X dll

How to decide that whether to go for Active X exe or Axtice X dll.?
sanjusambheAsked:
Who is Participating?
 
guidwayConnect With a Mentor Commented:
Activex dll will run in the process space of the called application, so it is called in-process component. This is where I generally put most of my code. However with this you will have to have an activex exe also that calls the dll since a dll is not an executable file.

acitvex exe - is out-process component. It runs as different process space from the called application. This is the actual application executable (.exe) you will run to start the application. You can reference your .dll file here and access the functions of it however you want.

does that help?

0
 
guidwayCommented:
otherwise they have the same abilities as each other.
0
 
farri_no2Commented:
Also ActiveX Exe are considered to be running on multi processor machines ... there are several set of attributes that you can set to make it run at its best for a multi processor machine ... for further info check these resources ...

how to create an ActiveX Exe:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconctcmp02recap.asp

And check activeX ABC on:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaxctrl/html/msdn_abcsmfc.asp

Hope it helped ... do contact me in case you need further clearifications / example ...

CIAO
FP
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
_ys_Commented:
Performance and security come to mind:
- For assured performance choose in-process servers (DLL). Process switches are slower than thread switches.
- On the flip-side, out-of-process servers (EXE) will give you greater security; as controller of the main thread you govern COM security.

Also, if you need multi-threaded support then EXE should be your *only* choice. As a rule, never create threads from an in-process server (DLL).

HTH.
0
 
farri_no2Commented:
hey sanjusambhe,
please opt of a request that has helped you and close this question.

Ciao
FarriJ
0
 
guidwayCommented:
agree with the recommendation if the asker does not come back.

guid
0
 
guidwayCommented:
why a 'C' grade? How was the information not helpful to you?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.