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
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 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
Page 1 of 2 1 2
pragma_plugin #288782
09/08/09 14:54
09/08/09 14:54
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
I have a subfolder in my project, let's say "abc", and I want to load a DLL from this folder, let's call the DLL "def.dll".

Now when I try
#define PRAGMA_PLUGIN "abc\\def.dll"
it fails.
I added #define PRAGMA_PATH "abc" and it did not work on my laptop ("Can't load DLL" error).
But it works on my desktop pc. The folder structure is the same (copy/pasted the whole project), so I have no idea what is going on.

How am I supposed to include DLLs located in subfolders?
I'd like to keep them there as the subfolder cotnains stuff which is pretty much separated fromt he rest of the project and should remain updatable/replaceable without having to copy stuff around every time.

Re: pragma_plugin [Re: FBL] #288794
09/08/09 16:17
09/08/09 16:17
Joined: Aug 2008
Posts: 133
Sweden, Stockholm
E
Enduriel Offline
Member
Enduriel  Offline
Member
E

Joined: Aug 2008
Posts: 133
Sweden, Stockholm
try another pair of slashes like "\\abc\\def.dll"

Last edited by Enduriel; 09/08/09 16:17.
Re: pragma_plugin [Re: Enduriel] #288871
09/09/09 07:48
09/09/09 07:48
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Wildly adding slashes certainly won't help. But you have forgotten the semicolon, which is required for many PRAGMAs.

PRAGMA_PATH is irrelevant for DLLs. It's also not relevant if the app runs on a desktop or laptop, but you might have different paths on both.

Re: pragma_plugin [Re: jcl] #288897
09/09/09 10:25
09/09/09 10:25
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
I tried with and without semicolons - no change.

Relative pathes are the same on both PCs.
Only on one system the root is c:\firoball\projects\acknex\ and on the other one it's e:\projects\acknex\

The only way to get this working stable is putting the DLLs directly into the work folder directly.

Re: pragma_plugin [Re: FBL] #288899
09/09/09 10:31
09/09/09 10:31
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Is that a plugin DLL or a general DLL? PRAGMA_PLUGIN works for plugins only. General DLLs use the standard Windows DLL path convention.

Re: pragma_plugin [Re: jcl] #288979
09/09/09 17:10
09/09/09 17:10
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Ok this probably is the problem. It's the newton.dll

I assume there is no easy fix besides setting pathes in Windows?

Re: pragma_plugin [Re: FBL] #289037
09/10/09 05:53
09/10/09 05:53
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Maybe you could add a main.wdl with just one line:

PLUGINDIR = "..\\plugins"; // something like this

Regards,
Pegamode.

Re: pragma_plugin [Re: pegamode] #289038
09/10/09 06:36
09/10/09 06:36
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
That was my first try, nope.

Re: pragma_plugin [Re: FBL] #289050
09/10/09 08:22
09/10/09 08:22
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
The plugin path is for engine plugins only.

Normal DLLs must be in windows\system32, or in the application folder. Windows does not support subfolders for DLLs.

Re: pragma_plugin [Re: jcl] #289724
09/15/09 06:46
09/15/09 06:46
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I am receiving the same problem with the "fmod3Wrapper.dll", except it won't read in the work folder either. It works fine and loads on two of my computers, but not on the third. Have no idea why it is rejected/ignored by compiler on this other computer? As the setup on this other computer is quite similar. This of course kills the game as it has a bunch of empty protoypes without the .dll being loaded.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

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