![]() |
#1
|
|||
|
|||
![]()
I am getting desperate about CorelDRAW version 11 and VB related items.
Whenever I use an AddIn for CorelDraw 11 it does not register in the correct location in the registry. Instead of registering itself in: “HKEY_CURRENT_USER\Software\Corel\CorelDRAW\11.0\CorelDRAW\Addins” it registers itself (most of the time) in: “HKEY_CURRENT_USER\Software\Corel\CorelDRAW\10.0\Addins”. Example: Open the “CropMarksAddin” project (http://www.oberonplace.com/vba/CropMarksAddin.zip). Change in the Connect object “Application version = 10.0” in “Application version = 11.0”. Save the project. Open the “connect.dsr” file in notepad and look up “RegLocation”, this says: RegLocation = "HKEY_CURRENT_USER\Software\Corel\CorelDRAW\11.0\CorelDRAW" Nice, looks promising, now close notepad. Run the project with full compile. Do not even bother to open CorelDRAW 11 but go right to the registry and find: "HKEY_CURRENT_USER\Software\Corel\CorelDRAW\11.0\CorelDRAW\Addins" There is no add-in there! Now go to: "HKEY_CURRENT_USER\Software\Corel\CorelDRAW\10.0\Addins" There you will find “CropMarks.Connect”. No matter how many times you change the value of “RegLocation” in the “connect.dsr” file (with notepad for example) it will always register itself in the add-in section of CorelDRAW 10. There is one way to get the Add-in in it’s correct registry location but that is not usable: Change in the Connect object the “Application version” to “10.0”. Run the project with full compile. Close the application with the “Break button”. Change in the Connect object the “Application version” to “11.0”. Directly without doing anything else run the project with full compile. Now it is in the correct registry location. But the next time you run the project it will be in the wrong location again. Can anyone help me? |
#2
|
||||
|
||||
![]()
René,
I had similar experience with Draw 11 on a machine that has Draw 10 installed also. However I tend to belive that it is not CorelDRAW's fault but rather the Microsoft Addin designer. CorelDRAW just provides the registry key name for the addins (look under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\AddIn Designer key). This information seems to be correct. However if there is more than 1 version listed under a particular application key, the Addin Designer seems to get confused and uses the first entry (which happens to be for Draw 10 in this case). I found that if you select another application in the Addin Designer's application list box (for example, Microsoft Word or something else that is available apart from CorelDRAW) and then select CorelDRAW back and choose the proper version (11.0) and compile your addin, it will register properly. However as soon as you close the project and re-open it again and try to compile, it will again go under CorelDRAW 10 registry key... You will need to remember to re-assign Draw 11 each time you compile or run your addin from VB. |
#3
|
|||
|
|||
![]()
Thanks Alex,
This method seems to work. Let’s hope I never forget to switch between applications in the designer (I already did forget it twice and was wondering where my AddIn did go...). Let’s also hope that Microsoft finds a solution to this problem. If I ever find a more permanent solution I will post it here. René ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|