borderAndreaVB free resources for Visual Basic developersborder

ASP.NET 3.5 Hosting - DiscountASP.NET

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (making a system access with vb 6.0)Next Topic (Save a txt file as a timestamp name) New Topic New Poll Post Reply
AndreaVB Forum : VB General : register dlls Solved Topic
Poster Message
johnsonn
Level: Graduate

Registered: 30-12-2007
Posts: 10

icon register dlls

hi there,
how can I register .dll files to my system?

21-01-2008 at 06:32 AM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1629
icon Re: register dlls

there's the "regsvr32.exe" that you can run, followed by the dll name.

For some you can type in the name of the dll followed by " /register"

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

21-01-2008 at 10:09 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
johnsonn
Level: Graduate

Registered: 30-12-2007
Posts: 10
icon Re: register dlls

thanks for the help.
sir, I'm learning vb thro txtbooks and no personal training is available. The problem is none of the books with me throw any light on this topic.
I'm using XP-SP-2.Thru explorer when I dblclick the file msgbox appears which reads the same what u have suggested.
Does this mean I need to register from dos promt or thru program with a code?
Sir I may sound silly but if possible pls help.
appreciate your help.

29-01-2008 at 08:51 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 984
icon Re: register dlls

Hi
To register on your machine

Launch a command line (start->run "cmd")
type:
regsvr32 "c:\home\mydll.dll"
press enter
type:
regsvr32 "c:\home\mydll.dll" /U
press enter
to remove it

(as pointed out by JLRogers) if the file is an EXE file, you must use the following:
c:\myfolder\myexe.exe /regserver
and
c:\myfolder\myexe.exe /unregserver
I haven't found a source-only way of registering DLLs - mainly because it's so much code
I suggest the following:


public function RegDLL (strDllPath as string) as boolean
on error resume next
   if right(strDLLPath,4)=".dll" then
      shell "regsvr32.exe " & strdllpath
   else
       shell strdllpath & " /regserver"
   end if
if err=0 then regdll=true

end function


then call it using
if regdll("c:\myfunkydll.dll") then msgbox "DLL Registered ok!"


Hope this helps,
Kieron

PS This is a bit of a hack, and I wouldn't recommend it for commercial use (get yourself a proper installer)


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

29-01-2008 at 11:45 PM
View Profile Send Email to User Show All Posts | Quote Reply
johnsonn
Level: Graduate

Registered: 30-12-2007
Posts: 10
icon Re: register dlls

hello sir,
sorry for being formal. thank you for your suggestions. the help that I get from you all makes this site remarkable and the intreste to learn more about vb is restored.
thank you once again

30-01-2008 at 06:23 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : register dlls Solved Topic
Previous Topic (making a system access with vb 6.0)Next Topic (Save a txt file as a timestamp name) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder