Kbase P3584: Proxy dll's have same CLSID and Typelib Id
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/9/2005 |
|
Status: Unverified
SYMPTOM(s):
Proxy dll's have same CLSID and Typelib Id.
When attempting to add the proxy dll's that has been generated with Progress to the reference list in Visual Basic it is only possible to add one at a time.
OPEN CLIENT
CAUSE:
Problem is that those proxy dll's has been generated with the same CLSID and Typelib Id. Thus VB cannot tell that they are different from each other as it uses the Class Id as the index for the reference list.
A reason for this problem could be that a proxy dll was created and then this dll filed was copied into other dll in order to modify it and have a slightly different dll. This would generate two objects with same CLSID and Typelib Id.
FIX:
Avoid to copy proxy dll's in order to have different modified dll's.
Or if it has been already done:
We have original SRProxyA and copied (and modified) SRProxyB:
1. In ProxyGen, open SRProxyB.pxg
2. Bring up the Generate dialog box
3. Unclick the check box in the ActiveX section (near the bottom of the
dialog) that says "Use Default" (next to the Prog Id field).
4. Check the check box that says "Assign New Object Ids".
5. Then hit OK to generate
The new SRProxyB.dll will now have new IDs - different from SRProxyA.dll and the problem should go away.