-
Dec 21st, 2006, 08:08 AM
#1
Thread Starter
Member
Registering a dll within VB code
I've a VB Program. Im using some dll with in my code. But to use this dll i nee d to register it. Can i do this within my VB code itself?. That is i'm trying to register the dll with regsvr32.exe while my project getting loaded. How can i do this?.
thanks.
-
Dec 26th, 2006, 12:39 AM
#2
Re: Registering a dll within VB code
I think you are asking about executing your app in other machine...If so, you need to create a setup program and deploy you app using that setup. It will install and register all the files required for your app.
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Dec 27th, 2006, 01:06 AM
#3
Member
Re: Registering a dll within VB code
Add Ref to TypeLib Info to your vb project and add following lines of code to register
Dim pTLIAplication As New TLI.TLIApplication
Dim pTypeLibInfo As TLI.TypeLibInfo
Set pTypeLibInfo = pTLIAplication.TypeLibInfoFromFile("C:\your Dll Path\a.dll")
pTypeLibInfo.Register
Rajneesh
-
Dec 27th, 2006, 01:25 AM
#4
Re: Registering a dll within VB code
the simple method to register a file would be using Shell
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Jan 4th, 2007, 07:28 AM
#5
New Member
Re: Registering a dll within VB code
To use a dll, register it once with regsrv32.exe. Then in your project, go to Project -> References and either browse for it or select from the list.
For the benefit of helpful people, when someone writes they have a dll, it means they have a dll not a Typelib. When they talk about loading their project, that in no way refers to another computer. A basic understanding of VB would be useful before answering VB posts.
-
Jan 5th, 2007, 12:03 AM
#6
Re: Registering a dll within VB code
Originally Posted by tduraipkt
Can i do this within my VB code itself?.
He wanted to register the dll within HIS VBCODE
Originally Posted by Doom
To use a dll, register it once with regsrv32.exe. Then in your project, go to Project -> References and either browse for it or select from the list
This is not using VBCODE
Originally Posted by Doom
A basic understanding of VB would be useful before answering VB posts
who
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|