Page 1 of 1

Internal protection error

Posted: Thu May 14, 2015 3:43 pm
by Cataclismo
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?

Re: Internal protection error

Posted: Thu May 14, 2015 3:56 pm
by Enigma
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.

Re: Internal protection error

Posted: Thu May 14, 2015 4:29 pm
by Cataclismo
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.

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

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

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

NOTE: I copied the files inside my computer, from my Runtime C++ Components folder.

Re: Internal protection error

Posted: Tue May 19, 2015 3:04 pm
by Cataclismo
I solved the error. It was caused by my code. Sorry.
It's working quite good until now :)