Hi,
Actually, no PurePLUGIN user's project are available for public.
PurePLUGIN is a really recent product ... You must wait a bit to see some projects emerge from the dark
If you take a look at the sample, there is one that return integer values.
But to be more clear.
In your DLL, you must create a command such this one:
ProcedureCDLL.l MyReturnInteger()
; For example we'll simply return the value stored in VA.l data
VA.l = 5
ProcedureReturn VA
EndProcedure
This ProcedureCDLL return an integer. It's defined in 2 places:
- ProcedureCDLL
.L
- ProcedureReturn
VA (with VA.l defined before)
In the .RC file, simply add this line in one of the string table available :
XX, "My Return Integer%L%MyReturnInteger%"
Replace the XX with a number that is not used by any other commands.
Compile your DLL containing this ProcedureCDLL with the .RC file added in the PureBASIC Compiler Options
Use the PPFixer tool or XVI to modify the Constructor procedure.
Copy your fresh new DLL in the CompilerPlugins-user directory from DarkBASIC Professional install.
Also copy the PurePLUGIN.DLL in the CompilerPlugins-user directory.
Start your DarkBASIC Professional's favourite IDE.
Enter this :
Null = PP Initialized()
MyValue = My Return Integer()
Print MyValue
Wait Key
It should display 5.
Regards,
Fred