|
|||
|
Hello,
I have such FFish code: Code:
var ret = Dll.registerFunction(getAdditionalFile("swfkit_dll.dll"), "?fnSwfkit_dll@@YAHXZ", "dllFn", "cdecl", "long");
Dialogs.msgBox(dllFn());
swfkit_dll.dll is a DLL file written with C++. dllFn() returns correct answer if I do not encrypt swfkit_dll.dll file. If I do so (I check the checkbox in resources tab for this dll), dllFn() returns "undefined". Why cannot DLL files be encrypted? |
|
|||
|
Sorry dll cannot be encrypted, because they'll totally different from the resource files like swf movies, flv movies, etc. A possible way to prevent your dll from being used outside swfkit is to set some key for it - every time it asks for a key to run the function, and since the key is built into the output exe file, it would be safe.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|