mIRC Homepage

Registering DLLs

Posted By: bwr30060

Registering DLLs - 11/12/08 05:59 PM

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.
Posted By: argv0

Re: Registering DLLs - 11/12/08 07:35 PM

You can look at what this user did:

http://www.mirc.net/projects.php?go=1094253211&get_desc=1
Posted By: bwr30060

Re: Registering DLLs - 12/12/08 01:51 AM

/comreg and regsvr32 both don't work for my DLL. Neither does regasm.
Posted By: MTec007

Re: Registering DLLs - 12/12/08 12:35 PM

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
Posted By: SCNDRL

Re: Registering DLLs - 19/12/08 02:45 PM

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
}


© 2022 mIRC Discussion Forums