COMO REGISTRAR UMA DLL?

ALMIRSAFADI 30/05/2005 19:55:57
#86004
Eu fiz, Iniciar\Executaregsrv32 minha.dll - o que está errado, desculpem a ignorà¢ncia, grato
FELIPEA 30/05/2005 19:57:53
#86005
vc colocou o diretório?
se n é da pasta system32 não dá, só colocando o diretório + o nome do arquivo
TRUHILLO 31/05/2005 07:29:45
#86040
Não é regSRV32, mas regSVR32...

Você inverteu o V e o R.
ALMIRSAFADI 31/05/2005 08:58:24
#86070
Quando vou registrar recebo a mensagem
" libmysql.dll foi carregado, mas o ponto de entrada DllRegisterServer não foi localizado.
Este arquivo não pode ser registrado."
Como proceder, alguém sabe?
Grato
USUARIO.EXCLUIDOS 31/05/2005 11:19:48
#86118
Você está usando VB6?
ALMIRSAFADI 31/05/2005 15:05:51
#86183
WinXP e VB6
USUARIO.EXCLUIDOS 31/05/2005 15:26:43
#86187
Você tem que especificar ocoaminho completoda DLL, por exemplo:
Iniciar/Executar e:
regsvr32 C:\Windows\System32\minha.dll
ALMIRSAFADI 03/06/2005 21:48:36
#86918
Continuo recebendo a mensagem "libmysql.dll foi carregado, mas o ponto de entrada DllRegisterServer não foi localizado", tem solução? Grato,
ALMIRSAFADI 09/06/2005 22:56:47
#88131
Exisate outra maneira de registra?
USUARIO.EXCLUIDOS 10/06/2005 13:46:25
#88251
A DLL ofi criada no VB6 ou no Delphi?
Se foi no Delphi nem sempe há necessidade de registra-la
Se for no VB reveja seu projeto e veja se está sendo mesmo gerada uma DLL ou outro tipo de arquivo. Depois me manda a resposta.
Até...
USUARIO.EXCLUIDOS 10/06/2005 13:52:42
#88252
Citação:

ALMIRSAFADI escreveu:
Exisate outra maneira de registra?


Existe uma maniera de registra ActiveX e DLLvia API. Veja o exemplo abaixo:
  ' Add 2 Commandbuttons and a textbox to the form, and paste this code into the form
Option Explicit

Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Any, ByVal wParam As Any, ByVal lParam As Any) As Long
Private Const ERROR_SUCCESS = &H0

Private Sub Form_Load()
Text1.Text = "C:\WINDOWS\SYSTEM\COMCTL32.OCX"
Command1.Caption = "Register server"
Command2.Caption = "Unregister server"
End Sub

Private Sub Command1_Click()
Call RegisterServer(Me.hWnd, Text1.Text, True)
End Sub

Private Sub Command2_Click()
Call RegisterServer(Me.hWnd, Text1.Text, False)
End Sub

Public Function RegisterServer(hWnd As Long, DllServerPath As String, bRegister As Boolean)
On Error Resume Next

'KPD-Team 2000
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
'We're going to call an API-function, without declaring it!

' Modified by G. Kleijer
' gkleijer@casema.net
' going to call the DllRegisterServer/DllUnRegisterServer API of the specified library.
' there's no need to use the Regsvr32.exe anymore.

' Make sure the path is correct and that the file exists, otherwise VB will crash.

Dim lb As Long, pa As Long
lb = LoadLibrary(DllServerPath)

If bRegister Then
pa = GetProcAddress(lb, "DllRegisterServer")
Else
pa = GetProcAddress(lb, "DllUnregisterServer")
End If

If CallWindowProc(pa, hWnd, ByVal 0&, ByVal 0&, ByVal 0&) = ERROR_SUCCESS Then
MsgBox IIf(bRegister = True, "Registration", "Unregistration") + " Successful"
Else
MsgBox IIf(bRegister = True, "Registration", "Unregistration") + " Unsuccessful"
End If
'unmap the library's address
FreeLibrary lb
End Function
Página 1 de 2 [13 registro(s)]
Tópico encerrado , respostas não são mais permitidas