Click here to Skip to main content
15,398,211 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WSO CCC OTD - 2022-03-28 - you win! Pin
OriginalGriff28-Mar-22 2:12
mveOriginalGriff28-Mar-22 2:12 
GeneralRe: WSO CCC OTD - 2022-03-28 Solution Pin
FreedMalloc28-Mar-22 2:28
MemberFreedMalloc28-Mar-22 2:28 
GeneralRe: WSO CCC OTD - 2022-03-28 Solution Pin
Greg Utas28-Mar-22 3:06
mveGreg Utas28-Mar-22 3:06 
GeneralRe: WSO CCC OTD - 2022-03-28 Solution Pin
pkfox28-Mar-22 5:27
professionalpkfox28-Mar-22 5:27 
GeneralRe: WSO CCC OTD - 2022-03-28 Solution Pin
FreedMalloc28-Mar-22 9:25
MemberFreedMalloc28-Mar-22 9:25 
GeneralRe: WSO CCC OTD - 2022-03-28 Solution Pin
pkfox28-Mar-22 11:53
professionalpkfox28-Mar-22 11:53 
Generalcan DLL in C++ be reverse engineered? Pin
Southmountain27-Mar-22 12:41
MemberSouthmountain27-Mar-22 12:41 
GeneralRe: can DLL in C++ be reverse engineered? PinPopular
honey the codewitch27-Mar-22 15:15
mvahoney the codewitch27-Mar-22 15:15 
Anything can be reverse engineered given enough effort. The key is determining how much effort you want them to have to go through.

I'd start by considering the amount of loss you would incur if it were cracked and copied.

If it's not providing a significant revenue stream I wouldn't necessarily do anything to it, as C++ is already quite difficult to reverse engineer given modern optimizing C++ compilers. They really tangle your asm up something fierce. However, the more you export from that DLL, the more "hooks" a potential black hat has to figure out what your code is doing.

If you want to protect from that marginally, *and* make your DLL more accessible to other languages, consider wrapping your API with a flat C api and exporting that instead. That way the hooks only point to the wrappers and you have to give less information about the arguments you take and such because C doesn't mangle. If the wrapper is thin, it's not much of a barrier to reverse engineering, but it's something.

Beyond that you can use obsfucators to shroud your assembly further, but even most commercial companies don't bother. In practice, very few people are going to even attempt it, fewer still will be successful, and even then a cracked version is only going to get limited distribution, meaning it's not necessarily going to noticeably impact the money you are making.
To err is human. Fortune favors the monsters.

PraiseRe: can DLL in C++ be reverse engineered? Pin
Slacker00727-Mar-22 23:02
professionalSlacker00727-Mar-22 23:02 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Southmountain28-Mar-22 15:02
MemberSouthmountain28-Mar-22 15:02 
GeneralRe: can DLL in C++ be reverse engineered? Pin
honey the codewitch28-Mar-22 15:09
mvahoney the codewitch28-Mar-22 15:09 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Southmountain29-Mar-22 4:40
MemberSouthmountain29-Mar-22 4:40 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Eddy Vluggen27-Mar-22 16:50
professionalEddy Vluggen27-Mar-22 16:50 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Southmountain28-Mar-22 15:03
MemberSouthmountain28-Mar-22 15:03 
GeneralRe: can DLL in C++ be reverse engineered? PinPopular
Daniel Pfeffer27-Mar-22 18:04
professionalDaniel Pfeffer27-Mar-22 18:04 
GeneralRe: can DLL in C++ be reverse engineered? Pin
CPallini27-Mar-22 23:56
mveCPallini27-Mar-22 23:56 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Southmountain28-Mar-22 15:02
MemberSouthmountain28-Mar-22 15:02 
GeneralRe: can DLL in C++ be reverse engineered? Pin
haughtonomous29-Mar-22 0:24
Memberhaughtonomous29-Mar-22 0:24 
GeneralRe: can DLL in C++ be reverse engineered? Pin
jmaida28-Mar-22 18:35
Memberjmaida28-Mar-22 18:35 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Southmountain29-Mar-22 4:42
MemberSouthmountain29-Mar-22 4:42 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Member 916705728-Mar-22 20:06
MemberMember 916705728-Mar-22 20:06 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Southmountain29-Mar-22 4:45
MemberSouthmountain29-Mar-22 4:45 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Member 1493446429-Mar-22 5:11
MemberMember 1493446429-Mar-22 5:11 
GeneralRe: can DLL in C++ be reverse engineered? Pin
jmaida29-Mar-22 7:23
Memberjmaida29-Mar-22 7:23 
GeneralRe: can DLL in C++ be reverse engineered? Pin
Member 1493446429-Mar-22 8:40
MemberMember 1493446429-Mar-22 8:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Do you expect users to read the instructions when using your apps?
  Results   353 votes