Can't protect Xojo applications

Post here messages if you have any problems with working of Enigma Protector
Post Reply
domador
Posts: 12
Joined: Fri Mar 25, 2011 8:08 pm

Can't protect Xojo applications

Post by domador » Mon Aug 17, 2015 9:46 pm

Has anyone been able to use Enigma Protector to protect Xojo applications? I've long been able to protect Real Basic / Real Studio applications, but am now having trouble when trying to protect Xojo apps. (Xojo is the successor to Real Studio.) I am able to run Enigma Protector on a compiled Xojo app, but when I run such an app, and it calls an EP function, an error message such as the following appears:

----

Runtime Error
Press OK to Continue
Press Cancel to Quit.

Please report what caused this error
along with the information below.

Common\Loaders\Loader.cpp: 171
Failure Condition: 0
Failed to load library enigma_ide.dll
The specified module could not be found.

----

If I copy enigma_ide.dll to the same folder as the Xojo app, I don't get this error message. However, if I do this, the EP functions don't work properly (since the funtions in the DLL are just placeholders which return null values).

There seems to be some kind of problem in linking/protecting Xojo applications. Does anyone know of any solutions or workarounds? Thank you.

domador
Posts: 12
Joined: Fri Mar 25, 2011 8:08 pm

Re: Can't protect Xojo applications

Post by domador » Mon Aug 17, 2015 10:18 pm

By the way, here's an example of how I call an EP function from my code:

Dim lLongResult as Int16
Declare Function EP_EnigmaVersion Lib "enigma_ide.dll" () As Int16
lLongResult = EP_EnigmaVersion()

Enigma
Site Admin
Posts: 2628
Joined: Wed Aug 20, 2008 2:24 pm

Re: Can't protect Xojo applications

Post by Enigma » Tue Aug 18, 2015 10:21 am

Hi, to solve the problem, in Enigma Protector go to Miscellaneous - Other and make sure the option "Hook entire process to check for Enigma API calls" is enabled.

Please note, Enigma API starts to work only after protection.

If this won't help, please send us non protected sample at support@enigmaprotector.com, we will check it out.

Fred123
Posts: 1
Joined: Fri Aug 21, 2015 2:31 pm

Re: Can't protect Xojo applications

Post by Fred123 » Fri Aug 21, 2015 2:34 pm

Hi,
have you found a soultion yet?

domador
Posts: 12
Joined: Fri Mar 25, 2011 8:08 pm

Re: Can't protect Xojo applications

Post by domador » Wed Oct 28, 2015 12:08 am

Thank you for recommending that solution (to enable the "Hook entire process to check for Enigma API calls" feature). Once I enabled it, Enigma Protector started working with my Xojo application.

Part of the issue may also have to do with the fact that I was using an old version of EP (version 1.96, build 20100420). That feature is not present in that version, but it is (and it works) with the latest version (4.40, build 20150619). It's time to upgrade!

For anyone else reading this, I'm using the 32-bit version of Enigma Protector, FYI.

tcconway
Posts: 2
Joined: Tue May 03, 2016 12:27 am

Re: Can't protect Xojo applications

Post by tcconway » Tue May 03, 2016 4:15 pm

Would it be possible for you to share some starter Xojo code?
Thanks!

Enigma
Site Admin
Posts: 2628
Joined: Wed Aug 20, 2008 2:24 pm

Re: Can't protect Xojo applications

Post by Enigma » Thu May 05, 2016 10:08 am

RealBasic syntax is very similar to the syntax of VisualBasic, you may just take the definition file from the folder "EnigmaSDK\VB\" and use it in your Xojo project.

Post Reply