Yes, the code of TS-SOFT is top
But he don't see the type of parameter (String, Integer) like you have say to me
Furthermore, i have hundred procedure in my DLL, and create news all the day like you all.
Much of my procedures, return string, so i'm forced to create this code for each of string procedure import:
Code: Select all
ProcedureDLL.s FunctionKcc1()
numCharacters = KccFunction1()
a$ = Space(numCharacters)
KccFunction1(@a$)
ProcedureReturn a$
EndProcedure
ProcedureDLL.s FunctionKcc2()
numCharacters = KccFunction2()
a$ = Space(numCharacters)
KccFunction2(@a$)
ProcedureReturn a$
EndProcedure
etc ....
...
...
...
This is a long job, to modify the code of TS-SOFT and create a procedure return string for each return
It's a pity, that FRED can't create a function to call different procedure by name
Code: Select all
CallFunctionName("FunctionKcc1")
CallFunctionName("FunctionKcc2")
Because with this, only one procedure is need, to all my return procedure string

And in this case, you are very right to say it's not interesting to create a code for just modify TS-SOFT code return
I have just thinking that, if i have the list of all the lines of code.
I can find the word "ProcedureDLL" , find if the parameter is string, integer, etc ...
And also create the procedure return string, that you have give to me above, in one click for hundred procedure
But if nobody have a tips for list all the lines of a source code.....it's impossible to create what i have thinking
Since a long time ago FLAITH create a counter of lines "PBLC"
But he promise to me perhaps a day, he modify his code for include Constant, and also return full lines
http://www.purebasic.fr/english/viewtopic.php?p=274560
I can create all what i want, i have just the problem with the CONSTANT in a PB RES
How can i ask to PB the value of a CONSTANT in live mode ???
In fact it's only my problem for finish this code
It's the reason why, i say , that only the compiler know all the line that it compile
Because just before compiling, it read this line i suppose :roll:
And if it's possible to ask to it, to write the line in log file...it's win !!!
I'm sure not missing lines of code....in any file PBI
And it's easy after to create full Import/EndImport procedure and all the procedure return string
But if it's impossible.....never mind...i put it back in my pants

(French expression

)