william007
asked on
How do I know which ocx is current using?
I have this two files for calendar control, first one is Version 11.0, second one is 8.0
"C:\Program Files\Microsoft Office\OFFICE11\MSCAL.OCX"
"C:\WINDOWS\system32\MSCAL .OCX"
How do I know when the program is running, which one is currently using?
"C:\Program Files\Microsoft Office\OFFICE11\MSCAL.OCX"
"C:\WINDOWS\system32\MSCAL
How do I know when the program is running, which one is currently using?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>Will the MSCAL.OCX Version 11 and MSCAL.OCX Version 8 contain the same GUID?
I think so because I think they were set to "binary compatible".
I think so because I think they were set to "binary compatible".
I know it's stored in the registry somewhere.
I'm not exactly sure where though
anyone could expand on this?
Leo
I'm not exactly sure where though
anyone could expand on this?
Leo
ASKER
Hi, I have asked the related question here. (I know we can use a find in registry, enter the mscal.ocx file name, and we will finally reach a folder that using the GUID as its folder name, my objective here is to get the GUID without register it, thanks:))
https://www.experts-exchange.com/questions/21787383/How-to-extract-GUID-from-dll.html
https://www.experts-exchange.com/questions/21787383/How-to-extract-GUID-from-dll.html
if you open your project's .vbp file, you will see is the class id.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, I have never noticed that About box until now. It is really the fastest way to know the version that we are using.
I have asked another relevant question here
https://www.experts-exchange.com/questions/21787857/After-registering-OCX-how-to-tell-VB-program-to-refresh-the-Control.html
I have asked another relevant question here
https://www.experts-exchange.com/questions/21787857/After-registering-OCX-how-to-tell-VB-program-to-refresh-the-Control.html
ASKER
Thanks:-)
happy coding, and thanx for the points!
ASKER
>>if you open your project's source code and you go to Project->Components and select the calendar component, you will see the complete path of the used component.
Isn't there is a process like this
"go and get the guid as retrieved by the project references for this class, check the registry for the filename it is mapped to, open the file and call the internal CoCreateInstance of this class"
https://www.experts-exchange.com/questions/21652467/Will-newly-registered-dll-auto-replace-the-dll-register-before.html (Accepted Answer)
Will the MSCAL.OCX Version 11 and MSCAL.OCX Version 8 contain the same GUID?
How we know their GUID?