Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Mugen Wizardry
User Banned
Posted: 16th May 2010 19:59 Edited at: 16th May 2010 20:00
hi all, i'm using call dll to call my darkcloud code because i want it to be more difficult to hack my program.

i'm still learning to use the sample project

problem is, its crashing...

can someone help me fix this please?



yes, all the dlls are in the project folder.

they will be encrypted in the final project

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th May 2010 20:17
Passing integers where float values are expected:
setwind=call dll(1,"?DCSetWind@@YAXMM@Z",100,270)
setrain=call dll(1,"?DCSetRain@@YAXMM@Z",10,10)

Also, neither of these functions (along with a lot of the others you use) return any values, so why assign them to variables?

I don't 'get' your reason for not making this a proper plug-in, but I'd advise at least creating a DBPro function for each of your DLL calls, simply to ensure that you pass the correct parameter types without having to think about it.



Mugen Wizardry
User Banned
Posted: 16th May 2010 20:44 Edited at: 16th May 2010 20:46
EDIT: For some reason its crashing at DCSetCloudy()

still..

but i put all of the code in functions:



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 16th May 2010 22:11
anyone?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th May 2010 01:17
Hang on - I just realised that when you say 'my darkcloud code', you actually mean the official plug-in.

So, what's your reason for not calling the commands in the officially supported way again?

Mugen Wizardry
User Banned
Posted: 17th May 2010 01:29
because i want a very secure program. i also wanna challenge myself to make sure i understand how to use call dll

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 17th May 2010 10:28
It doesn't make it any more secure though?

My signature is NOT a moderator plaything! Stop changing it!
Mugen Wizardry
User Banned
Posted: 17th May 2010 15:03
yes it does. at least i think.

it's harder to hack into a call dll
than a normal function

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th May 2010 15:40
No it isn't - I do it all the time from my own plug-ins to patch into DBPro internal functions, such as sprite rendering, per-camera rendering (which is hard because there isn't a 'start camera/end camera' pair of functions to patch), object creation and deletion, object loading etc.

I could do it for the encrypted DLL's too if I needed to with very little extra work on my part.

Let me say this: There is no way to make a DLL secure, especially if you are using the OS to load it into memory, as is being done here.

Anyway, it may be that your code isn't working because you aren't going through the correct load sequence for an encrypted plug-in. During the load sequence DBPro will decrypt the DLL for you, load it, and then call various functions within it to initialise everything. You are missing out the decryption and the setup.

Login to post a reply

Server time is: 2026-07-25 23:11:05
Your offset time is: 2026-07-25 23:11:05