Engine3D.dll Question
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Engine3D.dll Question
If you create a program which employs the command InitEngine3D(), does the Engine3D.dll have to be distributed with your program? The help file says it has to be copied from your PB\Compilers folder to your project folder, but the resulting .exe seems to need it if it is moved out of there. Is this right or is there a way to have it included and just distribute a standalone exe?
BERESHEIT
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Can be used this:
http://www.purebasic.fr/english/viewtopic.php?t=18203
from ts-soft to include it in the main source. That program works perfectly. However, after that, there will be needed some tricks to call the .dll functions
.
I want to do that with this lib from Karlkox:
http://www.purebasic.fr/english/viewtopic.php?t=19865
or for FMOD, or MIDAS, ... or for any .dll.
I find a good idea to put (hidding it, indeed
) one or more .dll inside an .exe 
A way to do it in a fast way, and with no special tricks, is: to include it as binary in the source code (using PureBin2Data by ts-soft for example), and then create the .dll file in the same dir that the .exe before use the .dll stuff. Deleting the .dll file just before finishing program execution.
http://www.purebasic.fr/english/viewtopic.php?t=18203
from ts-soft to include it in the main source. That program works perfectly. However, after that, there will be needed some tricks to call the .dll functions

I want to do that with this lib from Karlkox:
http://www.purebasic.fr/english/viewtopic.php?t=19865
or for FMOD, or MIDAS, ... or for any .dll.
I find a good idea to put (hidding it, indeed


A way to do it in a fast way, and with no special tricks, is: to include it as binary in the source code (using PureBin2Data by ts-soft for example), and then create the .dll file in the same dir that the .exe before use the .dll stuff. Deleting the .dll file just before finishing program execution.

Hmm, including a dll sorta defeat the point of a dll (the dll being standalone and thus easily updated by itself or replaced).
But I was wondering. Windows does have resource features,
why not just add the dll's as a exe resource, and load it from there?
Mind you I have never tried this, but it sounds plausible.
But I was wondering. Windows does have resource features,
why not just add the dll's as a exe resource, and load it from there?
Mind you I have never tried this, but it sounds plausible.
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
I found out the author now works for thInstall (which costs $7,500 per application to use) and has ceased developing PEBundle (anti-competitive clause in his employment contract.)Fred wrote:PEBundle is definitely broken on some PC configurations, so i wouldn't advise to use it (and the development seems stopped).
I have played around with MoleBox and it is very slick. Highly recommended if you can afford the Pro version and is far superior to PEBundle, anyhow.