Hack Forums
[C] Runtime dependency problems - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] Runtime dependency problems (/showthread.php?tid=5917348)

Pages: Pages 1 2


Runtime dependency problems - ApexLead - Dec 9, 2018

Hello,
I followed some solutions that I was given here about how to get rid of the missing vcruntime140.dll and msvcp140.dll errors but it didn't solve my problem.
I changed the linker to /MT for release and /MTd for debug, but when I try it on different windows 10 machines it says the spoken DLLs are missing, Ive searched for a solution everywhere but all I saw was changing the linker to be static, like I did.

If someone can help me solve this issue it will be much appreciated, thanks in advance :)


RE: Runtime dependency problems - Cød3ing - Dec 10, 2018

What are you trying to compile? what language is it in? what compiler are you using? what compiler flags have you set? What machine did you compile this on?


RE: Runtime dependency problems - ApexLead - Dec 11, 2018

(Dec 10, 2018 07:12 PM)Cød3ing Wrote:  What are you trying to compile? what language is it in? what compiler are you using? what compiler flags have you set? What machine did you compile this on?

A code I wrote, those are all of the headers & libs:
#include "stdafx.h"
#include <iostream>
#include <windows.h>
#include <Shlobj.h>

It's written in c++, visual studio 2015, /MT for release and /MTd for debug, compiled on a windows 10 machine


RE: Runtime dependency problems - RCE - Dec 24, 2018

Make sure you execute the output file from 'release' into your other machines , if the problem is still then u maybe misconfigured ur settings , try to compile with G++/ mingw via command line and check again


RE: Runtime dependency problems - 0xDEAD10CC - Dec 24, 2018

(Dec 24, 2018 02:42 PM)Shad0Byte Wrote:  Make sure you execute the output file from 'release' into your other machines , if the problem is still then u maybe misconfigured ur settings , try to compile with G++/ mingw via command line and check again

He's not using mingw... Not sure what good this will do, the options aren't even the same.

@OP - are you sure you understand how to use the configuration dropdown?
[Image: SJ02hq4.png]

Then you can see visibly the difference of the static linking by looking at the filesizes:
[Image: iEVHYB1.png]

And/or check the imports to make sure that you don't see the dll in the IAT. If you just change the project settings btw, but your code doesn't change, the IDE may not build it, so you'll have to do a rebuilt instead to force it.

This is easy though, so I'm not sure what your problems would be otherwise.


RE: Runtime dependency problems - HiddenEyE - Dec 24, 2018

OP surprise that you have not been able to solve this when the solution is filled up in google.
anyway if you select /MT their are libs you should link it with. google for the libs.


RE: Runtime dependency problems - 0xDEAD10CC - Dec 24, 2018

(Dec 24, 2018 10:12 PM)HiddenEyE Wrote:  OP surprise that you have not been able to solve this when the solution is filled up in google.
anyway if you select /MT their are libs you should link it with. google for the libs.

If you select /MT you don't have to link it with anything, this option will take care of the linking for you.


RE: Runtime dependency problems - ApexLead - Dec 25, 2018

(Dec 24, 2018 09:19 PM)0xDEAD10CC Wrote:  He's not using mingw... Not sure what good this will do, the options aren't even the same.

@OP - are you sure you understand how to use the configuration dropdown?
[Image: SJ02hq4.png]

Then you can see visibly the difference of the static linking by looking at the filesizes:
[Image: iEVHYB1.png]

And/or check the imports to make sure that you don't see the dll in the IAT. If you just change the project settings btw, but your code doesn't change, the IDE may not build it, so you'll have to do a rebuilt instead to force it.

This is easy though, so I'm not sure what your problems would be otherwise.

(Dec 24, 2018 10:12 PM)HiddenEyE Wrote:  OP surprise that you have not been able to solve this when the solution is filled up in google.
anyway if you select /MT their are libs you should link it with. google for the libs.

Thanks for your replies, but I know how to make /MT and /MTd for release and debug, but for some reason it still shows a runtime dll error on some machines, even if I link statically :/


RE: Runtime dependency problems - 0xDEAD10CC - Dec 25, 2018

(Dec 25, 2018 03:25 AM)ApexLead Wrote:  Thanks for your replies, but I know how to make /MT and /MTd for release and debug, but for some reason it still shows a runtime dll error on some machines, even if I link statically :/

Then you're doing it wrong. Show me the imports table.


RE: Runtime dependency problems - El Lobo - Dec 25, 2018

(Dec 24, 2018 02:42 PM)Shad0Byte Wrote:  Make sure you execute the output file from 'release' into your other machines , if the problem is still then u maybe misconfigured ur settings , try to compile with G++/ mingw via command line and check again

What a bunch of shit that you wrote. You cant even read properly and yet you are selling hvnc coded in c++.

To the op, you are not using ide properly. Just like this guy above me said, just look at the iat and see if you have dependencies.


RE: Runtime dependency problems - HiddenEyE - Dec 25, 2018

am not posting any further. solution given.


RE: Runtime dependency problems - ApexLead - Dec 26, 2018

(Dec 25, 2018 12:59 PM)0xDEAD10CC Wrote:  Then you're doing it wrong. Show me the imports table.
Sorry for the newbie question, but where can I find it?

(Dec 25, 2018 10:05 PM)El Lobo Wrote:  What a bunch of shit that you wrote. You cant even read properly and yet you are selling hvnc coded in c++.

To the op, you are not using ide properly. Just like this guy above me said, just look at the iat and see if you have dependencies.

IAT?

(Dec 25, 2018 10:37 PM)HiddenEyE Wrote:  am not posting any further. solution given.

The static linking solution didn't solve the problem tho..


RE: Runtime dependency problems - El Lobo - Dec 26, 2018

(Dec 26, 2018 02:43 AM)ApexLead Wrote:  IAT?

Import address table. Open compiled file with peexplorer and go to imports tab and you will see all dlls that your exe depends on.


RE: Runtime dependency problems - ApexLead - Dec 26, 2018

(Dec 26, 2018 03:05 AM)El Lobo Wrote:  Import address table. Open compiled file with peexplorer and go to imports tab and you will see all dlls that your exe depends on.

Opened with PE Explorer, those are the imports:
kernel32.dll
user32.dll
shell32.dll
ole32.dll
api-ms-win-core-path-l1-1-0.dll (On this one I have "Path not found" error)


RE: Runtime dependency problems - Hoodie+ - Dec 26, 2018

(Dec 25, 2018 10:05 PM)El Lobo Wrote:  What a bunch of shit that you wrote. You cant even read properly and yet you are selling hvnc coded in c++.

To the op, you are not using ide properly. Just like this guy above me said, just look at the iat and see if you have dependencies.

Good point, lol.

I asked a few question about how he coded the HVNC and he didn't answer them on his thread.
Imagine buying a $800 bot and it requiring a preinstalled C++ Runtime library 😧


(Dec 26, 2018 08:34 AM)ApexLead Wrote:  Opened with PE Explorer, those are the imports:
kernel32.dll
user32.dll
shell32.dll
ole32.dll
api-ms-win-core-path-l1-1-0.dll (On this one I have "Path not found" error)

api-ms-win-core-path-l1-1-0.dll is a part of Visual C++ Redistributable for Visual Studio 2012 if I'm not mistaking.