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
|
stickleprojects Level: Moderator Registered: 09-09-2002 Posts: 984
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)
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