Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 927 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
DLL is not loaded #448502
02/08/15 14:22
02/08/15 14:22
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Dear developers, I have a strange behavior that my engine plugin DLLs are not loaded after a fresh installation of GS Pro 8.45. Neither wenn I put the DLL directly in the project folder nor when I put it into the acknex_plugins folder in the GStudio8 root folder.

All other plugins that are installed by default get loaded correctly (and also disappear when I temporarily remove them).

Any idea how to fix this?

P.S. The DLLs I tested definitely were recognized and worked in former days.

Re: DLL is not loaded [Re: PadMalcom] #448503
02/08/15 15:06
02/08/15 15:06
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
check to see if you have visual studio runtime installed , same year I think as you dll projects were ..

if I understood correct. .

jb


Compulsive compiler
Re: DLL is not loaded [Re: Wjbender] #448504
02/08/15 16:59
02/08/15 16:59
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
you can also recompile your dll ,but try to link different with

C++ Code Generation" >
"Runtime Library", choose
"Multithreaded (/MT)" as
opposed to "Mutithreaded
(Static)".

One of those options will link the extra libraries and stuff into you dll directly.

jb


Compulsive compiler
Re: DLL is not loaded [Re: Wjbender] #448505
02/08/15 17:21
02/08/15 17:21
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Man just load it manually with LoadLibrary and get the exports with GetProcAddress.. who needs that auto-loading feature at all xD

Re: DLL is not loaded [Re: Ch40zzC0d3r] #448506
02/08/15 17:43
02/08/15 17:43
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
@Wjbender: Neither can I install old runtimes (Visual C++ Redistributables), since I have newer ones installed nor helps it to compile the DLL again with the current runtime.

@Ch40zzC0d3r: I'd like to know why the common way does not work but thanks for the hint laugh

Re: DLL is not loaded [Re: PadMalcom] #448507
02/08/15 18:18
02/08/15 18:18
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
I don't think LoadLIbrary will work if the library has already loaded before.

Jonas, try http://www.dependencywalker.com/
It will resolve all dependencies for the DLL and you'll see the missing library if any


Visit my site: www.masterq32.de
Re: DLL is not loaded [Re: MasterQ32] #448508
02/08/15 18:23
02/08/15 18:23
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
yeah I dont see how loadlibrary could achieve what the engine startup couldn't but hey I have seen weirder ..

this is pretty odd behaviour , the only thing I could think of was the standard libraries weren't staticly linked and therefore required the runtime libraries available for dynamic linking ..

the visual studio service packs includes runtimes
for crt mfc etc etc ,so if uts not in there then masterq32 is on to the answer for sure.

like to know what went wrong too if you solve it

Last edited by Wjbender; 02/08/15 20:19.

Compulsive compiler
Re: DLL is not loaded [Re: Wjbender] #448509
02/08/15 18:50
02/08/15 18:50
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
@MasterQ32: Nice tool, found the error using it laugh

I'm writing a Steam plugin and I forgot to add the steam_api.dll to the game folder. Now it works. Nevertheless, I have no idea why GS did not load the DLL. Maybe because all exported functions were unbound?

Re: DLL is not loaded [Re: PadMalcom] #448510
02/08/15 19:18
02/08/15 19:18
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
yeah missing dependency , great tool masterq32

Last edited by Wjbender; 02/08/15 22:48. Reason: mistaken identity wtf

Compulsive compiler
Re: DLL is not loaded [Re: PadMalcom] #448511
02/08/15 19:57
02/08/15 19:57
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Originally Posted By: PadMalcom
@MasterQ32: Nice tool, found the error using it laugh

I'm writing a Steam plugin and I forgot to add the steam_api.dll to the game folder. Now it works. Nevertheless, I have no idea why GS did not load the DLL. Maybe because all exported functions were unbound?


...
Try to load a DLL linked to another DLL via LoadLibrary as I told you and it will return NULL because not all functions could be resolved.
This could have been easy with LoadLib and GetLastError.

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