Posted: Fri Nov 22, 2002 11:35 am
Restored from previous forum. Originally posted by darryl_bartlett.
Hi everybody,
I have already searched through the forums looking for an answer to my query but I haven't spotted anything which answers my question, but please forgive me if this has been answered elsewhere. My query is based on writting a DLL using PureBasic.
I read in the documentation that as well as creating the DLL, it creats a .lib file compatible with Microsoft's Visual C++.
What I want to do is to be able to pass strings into the DLL function (written in PureBasic) and return a resulting string.
As a very simple example, if the function was to concatinate two strings together and return the result in a third string value
e.g.
as pseudocode
ProcedureDLL Catstring(input string 1, input string 2)
output string = input string 1 + input string 2
return output string to calling application
EndProcedure
How would I write that in PureBasic? Would I have to use pointers to pass the strings into DLL function? Would the output string returned have to be passed in as part of the procedure parameters?
Thanks in advance for any help you may be able to offer me
Daz.
Registered PureBasic User
Hi everybody,
I have already searched through the forums looking for an answer to my query but I haven't spotted anything which answers my question, but please forgive me if this has been answered elsewhere. My query is based on writting a DLL using PureBasic.
I read in the documentation that as well as creating the DLL, it creats a .lib file compatible with Microsoft's Visual C++.
What I want to do is to be able to pass strings into the DLL function (written in PureBasic) and return a resulting string.
As a very simple example, if the function was to concatinate two strings together and return the result in a third string value
e.g.
as pseudocode
ProcedureDLL Catstring(input string 1, input string 2)
output string = input string 1 + input string 2
return output string to calling application
EndProcedure
How would I write that in PureBasic? Would I have to use pointers to pass the strings into DLL function? Would the output string returned have to be passed in as part of the procedure parameters?
Thanks in advance for any help you may be able to offer me
Daz.
Registered PureBasic User