mIRC Home    About    Download    Register    News    Help

Print Thread
Registering DLLs #207267 11/12/08 05:59 PM
Joined: May 2005
Posts: 449
bwr30060 Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
I'm trying to register and use a new version of a DLL that I created awhile back in VB .NET. Is anyone else using VB .NET? I tried using regsvr32 to register it, but it keeps telling me "the entry-point DllRegisterServer was not found". I've checked to "Register for COM Interop". Any suggestions? Thanks.

Re: Registering DLLs [Re: bwr30060] #207269 11/12/08 07:35 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Registering DLLs [Re: argv0] #207284 12/12/08 01:51 AM
Joined: May 2005
Posts: 449
bwr30060 Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
/comreg and regsvr32 both don't work for my DLL. Neither does regasm.

Re: Registering DLLs [Re: bwr30060] #207292 12/12/08 12:35 PM
Joined: Feb 2007
Posts: 234
M
MTec007 Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
Yeah that tutorial was created for Visual Basic 6, not .NET.

See if this helps you at all, I don't know, I am not experienced in .NET.

http://forums.mirc.com/ubbthreads.php?ubb=showflat&Number=115859&site_id=1#import

Re: Registering DLLs [Re: bwr30060] #207500 19/12/08 02:45 PM
Joined: Dec 2005
Posts: 58
S
SCNDRL Offline
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58
I use VB 6.0 . I don't know but i think they could be same. i am going to explain using VB 6.0 dlls:

Example VB Code (http://www.mircscripts.org/comments.php?cid=3390):

Code:
Private Declare Function ShowCursor& Lib "user32" (ByVal bShow As Long)
Public Function show()
ShowCursor& 1
End Function
Public Function hide()
ShowCursor& 0
End Function


this api func. is used for hiding mouse as you know.

Project and Class name is the most important thing.

Project Name: Hide
Class Name: Mouse

Usage:

; Registering
comreg MyDLLsname.dll
; Open COM Object
comopen COMname ProjectName.ClassName
; Call VB Function
noop $com(COMname,VBFunction,1)
; Close Object
comclose COMname
; Unregistering DLL
comreg -u MyDLLsname.dll

that was an explanation.

mIRC Codes of HideCursor:

Code:
alias hidecursor {
; register
.comreg HideCursor.DLL
; Com Open
comopen COMName Hide.Mouse
; Call Func ( We called "hide" function, you can look VB Code )
noop $com(COMName,hide,1)
; Close Code
comclose COMName
comreg -u HideCursor.DLL
}



Last edited by SCNDRL; 19/12/08 02:45 PM.

i like that