chez moi ta dll test ne renvoi aucune fonction.
Voici le code que j'utilise pour analyser une dll :
Code:
Enumeration
#Viewver
#Button_LoadDll
#ListIcon_dll
EndEnumeration
Procedure LoadDLL()
ClearGadgetItems( #ListIcon_dll )
Dll.s = OpenFileRequester ( "ouvrir une dll", "", "Dynamic link library (*.dll)|*.dll", 0)
If Dll <> ""
SetWindowTitle ( #Viewver, "open dll : " + GetFilePart (Dll))
OpenLibrary (0, Dll)
ExamineLibraryFunctions (0)
While NextLibraryFunction () <> 0
AddGadgetItem ( #ListIcon_dll, -1, LibraryFunctionName () + Chr (10) + Str ( LibraryFunctionAddress ()))
Wend
CloseLibrary (0)
EndIf
EndProcedure
If OpenWindow ( #Viewver, 0, 0, 600, 450, "open dll", #PB_Window_SystemMenu | #PB_Window_TitleBar | #PB_Window_ScreenCentered)
ListIconGadget ( #ListIcon_dll, 10, 40, 580, 400, "nom de la fonction", 288, #PB_ListIcon_GridLines )
AddGadgetColumn ( #ListIcon_dll, 1, "Address", 288)
ButtonGadget ( #Button_LoadDll, 235, 10, 130, 20, "Ouvrir une dll" )
EndIf
Repeat
EventID = WaitWindowEvent()
If EventID = #PB_Event_Gadget
Select EventGadget()
Case #Button_LoadDll
LoadDLL()
EndSelect
EndIf
Until EventID = #PB_Event_CloseWindow
Tu peux voir que rien n'apparait.
A compiler en 32 ou 64 bits en fonction de la dll bien sur.
@++