Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
DLL loading from level folders above #270358
06/07/09 20:46
06/07/09 20:46
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Hi,

I want to load a DLL that is situated two folder levels above and then one level below:



I tried it with PRAGMA_PLUGIN and also with a project settings file.. nothing of the following worked:

Code:
#define PRAGMA_PLUGIN "..\\..\\binaries\\fmod3Wrapper.dll";
#define PRAGMA_PLUGIN ".\\..\\..\\binaries\\fmod3Wrapper.dll";

PLUGINDIR = ".\\..\\..\\binaries";
PLUGINDIR = "..\\..\\binaries";


I don't know what I am doing wrong, and both methods work for folders which are situated below the current work folder level.

Best regards,
Christian

Last edited by HeelX; 06/07/09 20:47.
Re: DLL loading from level folders above [Re: HeelX] #270404
06/08/09 07:16
06/08/09 07:16
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
When you want to load DLLs from a subfolder, you must give the folder name in a PLUGINDIR statement in a WDL file. PRAGMA_PLUGIN is valid during compilation only.

http://manual.3dgamestudio.net/aplugindir.htm

The work folder is the folder of the main script. When you want to load something from a folder above the work folder, you must use an absolute path.

Re: DLL loading from level folders above [Re: jcl] #270564
06/08/09 18:21
06/08/09 18:21
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Originally Posted By: jcl
When you want to load something from a folder above the work folder, you must use an absolute path.


Why that? Can't you add an evaluation of something like "..\\..\\myFolder"?


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1