Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / July 2004

Tip: Looking for answers? Try searching our database.

new babelpackage.dll GUID

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andre W B Furtado - 15 Jul 2004 13:16 GMT
I've made some changes do the babel source and would like to compile it
giving it a new ID. What previous GUID(s) do I need to change?

Thanks a lot,
-- Andre
Andre W B Furtado - 21 Jul 2004 05:54 GMT
> I've made some changes do the babel source and would like to compile it
> giving it a new ID. What previous GUID(s) do I need to change?

Answering myself, I think the following steps are OK to create a new
babelpackage.dll:

1) Generate a new GUID (can be done with guidgen windows application)
2) Backup babel source code in a safe place
3) Open Babel source code (lservice solution)
4) In the beginning of the file dllmain.cpp, change the value of "const
CLSID clsidBabelPackage" with the guid you've created
5) In dllmain.def, rename "LIBRARY babelpackage" to "LIBRARY
<newNameOfThePackage>"
6) Access lservice Property Pages
 6a) In Linker / General, change the "Output" field to match the library
name (ex.: Debug/newNameOfThePackage.dll instead of Debug/babelpackage.dll)
 6b) Do the same to Linker / Debugging / "Generate Program Database file"
field
 6c) Do the same to Linker / Advanced / "Import Library" field
7) Rebuild the Babel solution
8) Move the generated newNameOfThePackage.dll to its definitive place (such
as c:\windows\system32)
9) Register (with regsvr32) the generated newNameOfThePackage.dll

Obs: when you register the dll, it will register in the main branch, not in
the Exp branch. In order to use this new babelpackage in development
machines (which will probably be using the Exp branch), you must execute
"VsRegEx.exe getorig  7.1 Exp" from [Program Files]\VSIP
7.1\EnvSDK\tools\bin\x86. This will copy the current VS.NET registry
configuration from the main branch to the Exp branch. Be aware that, after
doing this, you'll need to re-register any VSPackages that were under
development.

Plase correct me if you see any issues!

Cheers,
-- AFurtado
Michael He - 21 Jul 2004 13:58 GMT
>>I've made some changes do the babel source and would like to compile it
>>giving it a new ID. What previous GUID(s) do I need to change?
[quoted text clipped - 33 lines]
> Cheers,
> -- AFurtado

Agree with most of your opnion.

1. I don't think change the output name is needed.
2.
> Obs: when you register the dll, it will register in the main branch, not in
> the Exp branch. In order to use this new babelpackage in development
[quoted text clipped - 4 lines]
> doing this, you'll need to re-register any VSPackages that were under
> development.
I think in the dllmain.cpp, we can add some code to retrieve the
environment value 'ENVSDK_REGKEY', then decided which registry hive we
will write to. The code to do this can be be stolen from the samples
come with VSIP like bscproject.

3. I changed all of the GUID in the .idl for safety. ;)

Michael
Andre W B Furtado - 22 Jul 2004 05:27 GMT
Changing the output name perhaps is needed if you want to install your new
babelpackage in a client which already has an old babelpackage.dll and you
don't want to confuse him...

Thanks for the other tips.
-- AFurtado

> >>I've made some changes do the babel source and would like to compile it
> >>giving it a new ID. What previous GUID(s) do I need to change?
[quoted text clipped - 55 lines]
>
> Michael

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.