Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
RegisterTypeLibForUser is not registering the tlb in VNC machine consistently hence CocreateInstance sometimes fails.
Please let me know how to call COM based exe methods using tlb registration.

Workflow:
1. Created the process of COM exe
2. Loaded the typelib
3. Used RegisterTypeLibForUser for registration.
4. Sometimes unable to CoCreateInstance of my COM exe.
Posted
Updated 11-Mar-14 4:23am
v2
Comments
The_Inventor 9-Mar-14 8:20am    
So, if it is not registering the tlb inconsistently, then it must be registering it consistently, if at all, so then what is the issue?
Rage 11-Mar-14 10:24am    
Fixed OC.
The_Inventor 11-Mar-14 23:12pm    
Now we need to see your code implementation, of steps 1 - 4, and which COM objects etc. and any other necessary information that may be of help to us to help you. What are the different conditions where it does work and when it doesn't.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900