Solved

How to change dll identities... for c++ and activeX ocx

Posted on 2010-09-16
3
575 Views
Last Modified: 2012-08-13
Hi gurus i have a situation need some advices.

I purchase source code from a vendor A, a component C++ dll. I use this dll in my Winform application.
It turn out, there is application similar to mine build by vendor B is out there... but the dll vendor B purchase from the same vendor A is much older and customized...

Here is the problem...
Some times client trial my application and also application from vendor B... there is a dll conflict... because we use all same namespace and gac etc...

I contacted to Vendor A, they recommended to register dll everytime client start my application... bad idea because the dll then will not work on the application from vendor B correctly (although might work or not).

Since i have source code...
I want to ask you guys... how do I do some minimal modification on the dll ... and so i can forget all the trouble with vender that using same dll altogether...

1) I want to change something in C++ dll  (some find and replace)
2) I also want to find and replace in (winform)
with out find and replace will be extreme difficult as it a big project.

0
Comment
Question by:JSW21
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
gsiric earned 100 total points
ID: 33698953
if you have source code then you can change global unique identifiers (GUIDs or uuid-s) on interfaces and recompile  then everyting will work.

GUIDs are usualy defined somewhere in .idl files and they looks like:
uuid(D9D998DE-E264-11D5-9DDD-000103341F3C)


      
0
 

Assisted Solution

by:JSW21
JSW21 earned 0 total points
ID: 33734744
Hi this code is in C++
I could not find uuid on the vs2008 set up.
Thank you
0
 

Assisted Solution

by:JSW21
JSW21 earned 0 total points
ID: 33851272
From what i have researched, the name of dll has to be changes.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now