Any questions? Ask us: support@enigmaprotector.com

Internal protection error

Questions, downloads, issues related to plugins for Enigma Protector

Internal protection error

Postby Cataclismo » Thu May 14, 2015 3:43 pm

So, I've did a very advanced protection for a game on the main source and is working perfectly, but I want to do a plugin which can be used by older versions of this game which hasn't source... so I did it, but when I'm trying to protect my files with this plugin I ecounter the error "Internal protection error" or something like that.

Here are the changes I made on the project:
Configuration: Release
Character set: Use Multi-Byte Character Set
Whole Program Optimization: No Whole Program Optimization
Optimization: Disabled
Runtime Library: Multi-threaded (/MT)
Enable Function-Level Linking: No
Compile as: Default
Additional dependencies: Version.lib winmm.lib
Generate debug info: No
Enable large addresses: Support Addresses Larger Than 2GB

Also, my code is placed under
Code: Select all
void __stdcall Enigma_Plugin_OnFinal()


I am forced to use configuration from above because I am working with boost library and I have to make it compatible with the libraries.
The problem is made by my configuration?
Cataclismo
 
Posts: 6
Joined: Tue Jan 13, 2015 9:17 pm

Re: Internal protection error

Postby Enigma » Thu May 14, 2015 3:56 pm

Hi, in the C++ project properties, go to Configuration Properties - General, find the option Use of MFC, set it to "Use MFC in Static Library".

This should help.
Enigma
Site Admin
 
Posts: 2139
Joined: Wed Aug 20, 2008 2:24 pm

Re: Internal protection error

Postby Cataclismo » Thu May 14, 2015 4:29 pm

It may be working.
Also, I got this message after I did the changes you said:
Code: Select all
error LNK2001: unresolved external symbol __imp__MessageBoxA@16


So I've added following libraries in "Additional dependencies":
Code: Select all
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib


I'll test the plugin and I will tell you if it worked.
Thank you.

EDIT:
I tested it and I get "Internal protection error" message.

EDIT2:
Made it working by changing Runtime Library to Multi-threaded DLL (/MD), but now I got this error:
Image

And when I'm copying this file into my game folder I get this error:
Image

NOTE: I copied the files inside my computer, from my Runtime C++ Components folder.
Cataclismo
 
Posts: 6
Joined: Tue Jan 13, 2015 9:17 pm

Re: Internal protection error

Postby Cataclismo » Tue May 19, 2015 3:04 pm

I solved the error. It was caused by my code. Sorry.
It's working quite good until now :)
Cataclismo
 
Posts: 6
Joined: Tue Jan 13, 2015 9:17 pm


Return to Plugins

Who is online

Users browsing this forum: No registered users and 2 guests