Page 4 of 4
Re: Any PB programmers who are EMPLOYEES?
Posted: Sun Dec 11, 2011 11:56 am
by srod
utopiomania wrote:Any PB programmers who are EMPLOYEES?
Two or three maybe. I wondered about this myself, but what has dlls to do with this?
A comment was made to the effect that the individual concerned would use PB more in the work place were it not for the apparent restrictions on the use of DLL's etc. Innocuous enough!

Re: DLL licensing issues 2.....
Posted: Sun Dec 11, 2011 12:33 pm
by Rings
topic splitted
Re: Any PB programmers who are EMPLOYEES?
Posted: Mon Jan 02, 2012 12:45 pm
by Raybarg
Kuron wrote:Perhaps an expert could explain how to create a DLL with PB without using a single PB command/function which would by default be wrapping that command/function in the DLL (of which wrapping functions for use is the entire purpose of a DLL)? I am genuinely perplexed.

You are overgeneralizing term "wrapping" and then trying to interpret this case with that.
Re: DLL licensing issues 2.....
Posted: Mon Jan 02, 2012 2:46 pm
by ricardo
There is no restriction to use PB command in dlls.
What you CANT do is just wrap the PB commands.
If you dll functiond do something else that just wrapping PB functions, its okay.
Re: DLL licensing issues 2.....
Posted: Sat Sep 04, 2021 4:28 pm
by Distorted Pixel
I'm interested in creating a game in AGK2 and using Pure Basic to do most, but not all the data manipulation because AGK data commands are minimal and not worth using in my opinion. If I write a program in PB to do the data manipulation for the game and put it in dll form is that considered wrapping commands?
I'm not just listing commands and creating a dll, I'm actually writing a whole data manipulation program to do the manipulation. So am I ok with doing this?
Re: DLL licensing issues 2.....
Posted: Sat Sep 04, 2021 4:49 pm
by Mijikai
Why dont you ask the offical support outlining exactly what your plans are?
Re: DLL licensing issues 2.....
Posted: Sat Sep 04, 2021 6:13 pm
by Distorted Pixel
Mijikai wrote: Sat Sep 04, 2021 4:49 pm
Why dont you ask the offical support outlining exactly what your plans are?
Yea, you are right, I would be better off doing so, so I just got done emailing them. Thank you.
Re: DLL licensing issues 2.....
Posted: Sun Sep 05, 2021 1:43 am
by BarryG
Distorted Pixel wrote: Sat Sep 04, 2021 4:28 pmIf I write a program in PB to do the data manipulation for the game and put it in dll form is that considered wrapping commands?
No, it's not. Wrapping has been answered here ->
viewtopic.php?p=369010#p369010
Kukulkan wrote: Fri Dec 09, 2011 2:18 pmYou can do a DLL that does some job but you are not allowed to do a DLL that offers functionality like myBase64Decoder(), mySHA1Fingerprint(), myCreateImage() or myResizeImage() etc.
You can if you write your own code to do it, such as your own MyResizeImage() that doesn't use ResizeImage(), or uses it PLUS some other things when resizing. For example, if your resize command does a resize but also then centers the resized image in a pre-defined box. This is then not a wrapper for the command, but a whole new custom command that doesn't exist in PureBasic.
Kuron wrote: Fri Dec 09, 2011 12:46 pmDLL creation should be removed from the product
Um, no. DLLs are needed for some types of projects, where global access to things are required that can't be done from within the exe itself. But mainly because DLLs provide a way to easily re-use custom coded procedures in your own apps, and for other people's apps.
Re: DLL licensing issues 2.....
Posted: Wed Sep 08, 2021 10:52 am
by Distorted Pixel
BarryG wrote: Sun Sep 05, 2021 1:43 am
Distorted Pixel wrote: Sat Sep 04, 2021 4:28 pmIf I write a program in PB to do the data manipulation for the game and put it in dll form is that considered wrapping commands?
No, it's not. Wrapping has been answered here ->
viewtopic.php?p=369010#p369010
Kukulkan wrote: Fri Dec 09, 2011 2:18 pmYou can do a DLL that does some job but you are not allowed to do a DLL that offers functionality like myBase64Decoder(), mySHA1Fingerprint(), myCreateImage() or myResizeImage() etc.
You can if you write your own code to do it, such as your own MyResizeImage() that doesn't use ResizeImage(), or uses it PLUS some other things when resizing. For example, if your resize command does a resize but also then centers the resized image in a pre-defined box. This is then not a wrapper for the command, but a whole new custom command that doesn't exist in PureBasic.
Kuron wrote: Fri Dec 09, 2011 12:46 pmDLL creation should be removed from the product
Um, no. DLLs are needed for some types of projects, where global access to things are required that can't be done from within the exe itself. But mainly because DLLs provide a way to easily re-use custom coded procedures in your own apps, and for other people's apps.
So, if I understand it right, you can create a DLL that does something like manipulate data and save it to a file for a game mainly built in another language, but you can't just wrap PB commands that don't do anything to add PB commands to another language, correct?
Re: DLL licensing issues 2.....
Posted: Thu Sep 09, 2021 7:15 am
by Bisonte
Distorted Pixel wrote: Wed Sep 08, 2021 10:52 am
So, if I understand it right, you can create a DLL that does something like manipulate data and save it to a file for a game mainly built in another language, but you can't just wrap PB commands that don't do anything to add PB commands to another language, correct?
Correct !
Re: DLL licensing issues 2.....
Posted: Thu Sep 09, 2021 6:06 pm
by Distorted Pixel
Bisonte wrote: Thu Sep 09, 2021 7:15 am
Correct !
Thank you, finally someone explained it in simple understandable English