Avatar of ylele
ylele

asked on 

how can I know my dll/ocx/tlb file is registrable or not?

Hi friends,
I have one query please let me know it will your great help for me!!

ex.  I have one dll file with name xyz.dll now how can i know this dll file is registrable or not using visual studio .net 2005?

as manually we can check that with regsvr32 and if succeed then its registrable? is any thing mentioned inside the dll?

Purpose of finding the registrable dll is I want to make one generic manifest with this all registrable files.
if you also assist me how can i make generic manifest its better for me.
.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
ylele
Avatar of kaylanreilor
kaylanreilor
Flag of Luxembourg image

Well, VS can help to manage registered dll. For example the "Add reference" tool for a .Net program gives the oportunity to view the dll registered in the GAC (with .Net tab) and the COM registered in the registry (with COM tab) but as far as I know there is no tool which will say "this dll is/isn't registrable". BTW, oleviewer tool has disappeared in VS2005 (in the menus, unless it is still existing in some SDKs like "Microsoft Platform SDK for Windows Server 2003 R2" or Windows SDK 6.0A distributed with VS2008 for example). This tool permit you to view all COMs or Type Libraries registered on your machine.

BTW, technically a dll is registerable if it exposes DllRegisterServer and DllUnregisterServer at least.

I'm not sure to understand what you excatly want the manifest tool to do for you but reading this can help probably : http://msdn.microsoft.com/en-us/library/ms173402(VS.80).aspx
You can for example specify what dll you program is supposed to use even by specifying the version, you can launch a script to register some dll on the machine...
On the other hand, you can also work with a setup project to install your application correctly and if the dll you use isn't registrable that doesn't prevent your application to use it of course.
Avatar of ylele
ylele

ASKER

Hi kaylanreilor,

Great Great idea sir thanks for great help. I can search in DLL "DllRegisterServer and DllUnregisterServer" and identify that this dll is registrable.

Actually I am novice in this field. My problem is for exp. in one folder abc there are some dll files and among them some are registrable now i want to create one tool in which i give the folder path c:\abc its find that registrable dlls and generate one generic manifest file.
can you please give me idea how does mt.exe file use for creating manifest?
ASKER CERTIFIED SOLUTION
Avatar of kaylanreilor
kaylanreilor
Flag of Luxembourg image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of ylele
ylele

ASKER

Really you give me so much idea about this and i am working on the same. and yes you are right I am planning to write a code for develop a generic manifest from that registrable dll's . if you have any rough idea how can i write a code for develop generic manifest then its your great help for me.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo