Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Zoury
> Comment faire pour enlever l'utilisation de dbgwproc.dll?? (utilisée je pense pour de la compilatoon conditionnelle)
Tu dois modifié la déclaration de la constante DEBUGWINDOWPROC (ou peu importe comment elle a été nommé).. Va dans le menu sous ProjetPropriétés... dans le deuxième onglet, dernière boite de texte (nommé Conditionnal Compilation Arguments en anglais), met la variable à 0 au lieu de la valeur qui s'y trouve.
Cela à pour effet d'initialiser la constante DEBUGWINDOWPROC à 0 (False), qui est utilisé dans des conditions de précompilation, comme la suivante : '*** #If DEBUGWINDOWPROC Then ' this is the procedure for setting a debug hook... Set m_DWPHook = CreateWindowProcHook With m_DWPHook
' our windowproc is in the MCDMonitor BAS module .SetMainProc AddressOf MCDMonitor.WindProc
' replace the windowproc for this window with ours m_WinProcOld = SetWindowLong(hWnd, GWL_WNDPROC, .ProcAddress) .SetDebugProc m_WinProcOld End With #Else ' not using the debug dll so just replace the windowproc for this window with ours. ' our windowproc is in the MCDMonitor BAS module m_WinProcOld = SetWindowLong(hWnd, GWL_WNDPROC, AddressOf MCDMonitor.WindProc) #End If '***
Dans le code ci-haut, si DEBUGWINDOWPROC est vrai alors le compilateur compile le bout de code suivant : '*** ' this is the procedure for setting a debug hook... Set m_DWPHook = CreateWindowProcHook With m_DWPHook
' our windowproc is in the MCDMonitor BAS module .SetMainProc AddressOf MCDMonitor.WindProc
' replace the windowproc for this window with ours m_WinProcOld = SetWindowLong(hWnd, GWL_WNDPROC, .ProcAddress) .SetDebugProc m_WinProcOld End With '*** et ignore complément le code se trouvant dans le Else. Si la valeur est à 0 alors il fait l'inverse.
ps : si ce n'est pas trop clair, dit le moi, j'vais tenter de t'expliquer un peu mieux ce que sont les conditions de compilation.. ps2 : Tu n'es pas obligé de désenregistrer la dll car elle pourrais même te servir dans un autre projet un jour.
Je suis nul en vb.....
Beeeeen non! :O) On commence tous quelques parts. ;O)
> Comment faire pour enlever l'utilisation de dbgwproc.dll??
(utilisée je pense pour de la compilatoon conditionnelle)
Tu dois modifié la déclaration de la constante DEBUGWINDOWPROC (ou peu
importe comment elle a été nommé).. Va dans le menu sous
ProjetPropriétés... dans le deuxième onglet, dernière boite de texte (nommé
Conditionnal Compilation Arguments en anglais), met la variable à 0 au lieu
de la valeur qui s'y trouve.
Cela à pour effet d'initialiser la constante DEBUGWINDOWPROC à 0 (False),
qui est utilisé dans des conditions de précompilation, comme la suivante :
'***
#If DEBUGWINDOWPROC Then
' this is the procedure for setting a debug hook...
Set m_DWPHook = CreateWindowProcHook
With m_DWPHook
' our windowproc is in the MCDMonitor BAS module
.SetMainProc AddressOf MCDMonitor.WindProc
' replace the windowproc for this window with ours
m_WinProcOld = SetWindowLong(hWnd, GWL_WNDPROC, .ProcAddress)
.SetDebugProc m_WinProcOld
End With
#Else
' not using the debug dll so just replace the windowproc for this
window with ours.
' our windowproc is in the MCDMonitor BAS module
m_WinProcOld = SetWindowLong(hWnd, GWL_WNDPROC, AddressOf
MCDMonitor.WindProc)
#End If
'***
Dans le code ci-haut, si DEBUGWINDOWPROC est vrai alors le compilateur
compile le bout de code suivant :
'***
' this is the procedure for setting a debug hook...
Set m_DWPHook = CreateWindowProcHook
With m_DWPHook
' our windowproc is in the MCDMonitor BAS module
.SetMainProc AddressOf MCDMonitor.WindProc
' replace the windowproc for this window with ours
m_WinProcOld = SetWindowLong(hWnd, GWL_WNDPROC, .ProcAddress)
.SetDebugProc m_WinProcOld
End With
'***
et ignore complément le code se trouvant dans le Else. Si la valeur est à 0
alors il fait l'inverse.
ps : si ce n'est pas trop clair, dit le moi, j'vais tenter de t'expliquer un
peu mieux ce que sont les conditions de compilation..
ps2 : Tu n'es pas obligé de désenregistrer la dll car elle pourrais même te
servir dans un autre projet un jour.
Je suis nul en vb.....
Beeeeen non! :O)
On commence tous quelques parts. ;O)
> Comment faire pour enlever l'utilisation de dbgwproc.dll?? (utilisée je pense pour de la compilatoon conditionnelle)
Tu dois modifié la déclaration de la constante DEBUGWINDOWPROC (ou peu importe comment elle a été nommé).. Va dans le menu sous ProjetPropriétés... dans le deuxième onglet, dernière boite de texte (nommé Conditionnal Compilation Arguments en anglais), met la variable à 0 au lieu de la valeur qui s'y trouve.
Cela à pour effet d'initialiser la constante DEBUGWINDOWPROC à 0 (False), qui est utilisé dans des conditions de précompilation, comme la suivante : '*** #If DEBUGWINDOWPROC Then ' this is the procedure for setting a debug hook... Set m_DWPHook = CreateWindowProcHook With m_DWPHook
' our windowproc is in the MCDMonitor BAS module .SetMainProc AddressOf MCDMonitor.WindProc
' replace the windowproc for this window with ours m_WinProcOld = SetWindowLong(hWnd, GWL_WNDPROC, .ProcAddress) .SetDebugProc m_WinProcOld End With #Else ' not using the debug dll so just replace the windowproc for this window with ours. ' our windowproc is in the MCDMonitor BAS module m_WinProcOld = SetWindowLong(hWnd, GWL_WNDPROC, AddressOf MCDMonitor.WindProc) #End If '***
Dans le code ci-haut, si DEBUGWINDOWPROC est vrai alors le compilateur compile le bout de code suivant : '*** ' this is the procedure for setting a debug hook... Set m_DWPHook = CreateWindowProcHook With m_DWPHook
' our windowproc is in the MCDMonitor BAS module .SetMainProc AddressOf MCDMonitor.WindProc
' replace the windowproc for this window with ours m_WinProcOld = SetWindowLong(hWnd, GWL_WNDPROC, .ProcAddress) .SetDebugProc m_WinProcOld End With '*** et ignore complément le code se trouvant dans le Else. Si la valeur est à 0 alors il fait l'inverse.
ps : si ce n'est pas trop clair, dit le moi, j'vais tenter de t'expliquer un peu mieux ce que sont les conditions de compilation.. ps2 : Tu n'es pas obligé de désenregistrer la dll car elle pourrais même te servir dans un autre projet un jour.
Je suis nul en vb.....
Beeeeen non! :O) On commence tous quelques parts. ;O)