Page 2 of 3
Posted: Wed Feb 04, 2009 3:37 pm
by ts-soft
for example, you can use LoadDllMemory from PBOSL:
Code: Select all
hModule = LoadLibraryM(PBData_Get(1))
address = GetProcAddressM(hModule,FunctionName.s)
Or save the DLL
Posted: Fri Jul 24, 2009 12:22 am
by ts-soft
Updates: Version 1.6
supports more than 256 entries in projectfile
Posted: Fri Jul 24, 2009 9:04 am
by Psychophanta
Thank you for it

Posted: Fri Jul 24, 2009 10:14 am
by mback2k
I have created 2 more util functions, you probably want to include them.
Code: Select all
Procedure UDRes_WriteFile(File$, ResNumber, hModule = 0)
Protected *Mem = UDRes_Get(ResNumber, hModule)
Protected File
If *Mem
If CRC32FileFingerprint(File$) <> CRC32Fingerprint(*Mem, MemorySize(*Mem))
File = CreateFile(#PB_Any, File$)
If File
WriteData(File, *Mem, MemorySize(*Mem))
CloseFile(File)
EndIf
EndIf
FreeMemory(*Mem)
ProcedureReturn File
EndIf
EndProcedure
Procedure UDRes_CatchXML(XML, ResNumber, Flag = 0, hModule = 0)
Protected *Mem = UDRes_Get(ResNumber, hModule)
Protected Result
If *Mem
Result = CatchXML(XML, *Mem, MemorySize(*Mem), Flag)
FreeMemory(*Mem)
ProcedureReturn Result
EndIf
EndProcedure
Posted: Fri Jul 24, 2009 10:34 am
by mback2k
Feature request:
I would like to use the program as a compiler tool. Would it be possible to make it use a parameters like /PROJECT "C:/blabla/MyProject.pb" /OUTPUT res which would make it read MyProject.pbdc and write to MyProject.res?
Posted: Fri Jul 24, 2009 12:14 pm
by ts-soft
mback2k wrote:Feature request:
I would like to use the program as a compiler tool. Would it be possible to make it use a parameters like /PROJECT "C:/blabla/MyProject.pb" /OUTPUT res which would make it read MyProject.pbdc and write to MyProject.res?
There is a parameter /CREATESILENT = "outputfile with path"
This is to combine with projectfile and should do the trick.
and for WriteFile there is UDRes_Save(FileName.s, ResNumber, hModule)
Posted: Fri Jul 24, 2009 7:35 pm
by mback2k
I tried the following parameters, but it does not work for me:
Code: Select all
"%FILEdc" /CREATESILENT="%FILE.res"
The application starts and quits right away, without creating the res file.
Posted: Fri Jul 24, 2009 8:21 pm
by ts-soft
Have you saved the project with output res selected?
My batchfile with absolute paths works fine here, i have it never tested in
PB IDE.
Posted: Fri Jul 24, 2009 8:42 pm
by mback2k
Yes, I did save it with res selected as output. Does not work for me through the IDE.
Posted: Fri Jul 24, 2009 8:51 pm
by ts-soft
should work :roll:
use a batchfile to solve the problem.
here my code for ProgramParameters
Code: Select all
; Programmparameter einlesen
If j
For i = 0 To j - 1
Parameter = ProgramParameter(i)
uParameter = Left(UCase(Parameter), 13)
Select uParameter
Case "/PORTABLE"
Prefs\portable = #True
Case "/IGNOREPOS"
Prefs\ignorepos = #True
Case "/CREATESILENT"
SilentName = RemoveString(Parameter, "/CREATESILENT=", #PB_String_NoCase)
SilentName = RemoveString(SilentName, #DQUOTE$)
Default
If FileSize(Parameter) > 0
If UCase(GetExtensionPart(Parameter)) = "PBDC"
Prefs\projectdir = GetPathPart(Parameter)
Prefs\projectfile = GetFilePart(Parameter)
EndIf
EndIf
EndSelect
Next
EndIf
Posted: Sat Aug 15, 2009 1:55 pm
by ts-soft
Update
1.6.007
Updated romanian language
Added Helpfile for romanian (thanks to Inf0Byt3)
Re: PureDataConverter
Posted: Thu Feb 17, 2011 5:56 am
by IdeasVacuum
Hello Thomas
Is PureDataConverter compatible with PB4.51?
Re: PureDataConverter
Posted: Thu Feb 17, 2011 6:05 am
by ts-soft
IdeasVacuum wrote:Hello Thomas
Is PureDataConverter compatible with PB4.51?
Should work with every PB version since 4.0
Re: PureDataConverter
Posted: Fri Feb 18, 2011 4:24 am
by IdeasVacuum
Cool!

Re: PureDataConverter
Posted: Mon Nov 19, 2012 4:54 am
by Damion12
I was using this in large file data, and am having problems compiling -- reading docs, says that I should be using the .res format - but then how do I add this to my PB project file so I can access it?