I cannot locate a win32 version so I downloaded the Delhi verssion... a DLL is a DLL after all...
This is what one of my DLL pokers came up with:
Code:
; German forum: http://www.purebasic.fr/german/archive/viewtopic.php?t=3216&highlight=
; Author: Mischa (updated for PB 4.00 by Andre)
; Date: 22. December 2003
; Modified for PB 4.3+ by Rook Zimbabwe
; Date 24 SEPTEMBER 2010
; OS: Windows
; Demo: Yes
; Automatically creates an include file for standard dll in the same path,
; which includes the definitions of their functions...
; Einleitung:
; Das kleine Ding erstellt fr Standard Dlls im gleichen Pfad eine
; fertige Include-Datei mit den Definitionen ihrer Funktionen, zwecks
; Nutzung mit CallFunctionFast().
;Include Generator
;Mischa Brandt
;Folgende Filter/Schnittmuster passend fr die fmod.dll
;(Include gibt's schon, wei ich. Ist nur zur Demonstration.)
leftcut = 1
rightcut = 0
separator.s = "@"
last_Path.s = GetCurrentDirectory()
;lib.s = "hunspelldll.dll" ;<-Pfad anpassen
libid = 0 ; temp number to hold place of file
lib.s=OpenFileRequester("DLL SCAN", last_path,"dll (*.dll)| *dll",0)
q.s=Chr(34):f1.s="DLLEntryPoint":f2.s="AttachProcess"
f3.s="DetachProcess":f4.s="AttachThread":f5.s="DetachThread"
If OpenLibrary(0,lib)
If ExamineLibraryFunctions(0)
If CreateFile(0,GetPathPart(lib)+"Include_"+ReplaceString(GetFilePart(lib),GetExtensionPart(lib),"pb"))
WriteStringN(0,"OpenConsole()")
WriteStringN(0," If OpenLibrary(libid,"+Chr(34)+GetFilePart(lib.s)+Chr(34)+")")
While NextLibraryFunction()
n.s = LibraryFunctionName()
nn.s = StringField(Mid(n,leftcut+1,Len(n)-leftcut-rightcut),1,separator)
If n<>f1 And n<>f2 And n<>f3 And n<>f4 And n<>f5
WriteStringN(0," Global *"+nn)
WriteStringN(0," *"+nn+"=GetFunction(libid,"+q+n+q+")")
WriteStringN(0,"Debug "+q+nn+"= "+q+"+"+q+q+"+Str(*"+nn+")")
EndIf
Wend
WriteStringN(0," Else")
WriteStringN(0," MessageRequester("+q+"error!"+q+","+q+"Can't open library!"+q+",0)")
WriteStringN(0," Endif")
WriteStringN(0,"Input()")
WriteStringN(0,"End")
CloseFile(0)
Else
MessageRequester("Error!","Can't create include file",0)
EndIf
Else
CloseLibrary(0)
MessageRequester("Error!","Can't examine library!",0)
EndIf
CloseLibrary(0)
Else
MessageRequester("Error!","Can't open library!",0)
EndIf
End
I modded the program a bit sint GetFunction() is now the norm
[EDIT] CODE UPDATED NOW WITH CORRECT VERSION for PB4.3+
[[EDIT EDIT]] OK it is REALLY FIXED this time!!!
What DLL are you using?