Difference between comdlg32.ocx and comdlg32.dll

I see both the comdlg32.ocx and the comdlg32.dll in Windows\system32 directory and was wondering what the difference of these files are.  I know the .ocx is ActiveX, but why both files with the same name...do they provide different functions to use.  This is not the only example either,  there is mscomctl.ocx and .dll.  Is there a common approach to these files having both a .ocx and .dll?

Thanks
GoPackAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
A DLL is a library file, whereas an OCX is an active X control as you noted. An active X control can use a library (which is why you see both). A library is not an active X control, so you need the other. No conflict and no problem - it is the way it was designed. ... Thinkpads_User
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GoPackAuthor Commented:
Thanks Thinkpads_User, so if I understand this right...The .ocx file is like a .exe with a .dll.  The ActiveX control (comdlg32.ocx) calls the dll (comdlg32.dll) just like any other .exe?  And in the ActiveX situation, most likely a .exe calls the comdlg32.ocx which then calls the comdlg32.dll for the function.?

Thanks
0
JohnBusiness Consultant (Owner)Commented:
I don't think you can be overly strict in this description. An Active X control needs an OCX to run. Something will run the OCX because it is not an EXE all by itself. Now whether an OCX calls a DLL - that would be up to the programmer. However, the way you described above is very likely correct. ... Thinkpads_User
0
JohnBusiness Consultant (Owner)Commented:
Thanks, and I was pleased to assist. ... Thinkpads_User
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Components

From novice to tech pro — start learning today.