Click here to Skip to main content
15,881,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor8-Jun-22 23:48
Valentinor8-Jun-22 23:48 
GeneralRe: Loading DLL from file not PATH Pin
Victor Nijegorodov8-Jun-22 23:52
Victor Nijegorodov8-Jun-22 23:52 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor9-Jun-22 0:04
Valentinor9-Jun-22 0:04 
AnswerRe: Loading DLL from file not PATH Pin
Richard MacCutchan9-Jun-22 3:27
mveRichard MacCutchan9-Jun-22 3:27 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor9-Jun-22 6:21
Valentinor9-Jun-22 6:21 
GeneralRe: Loading DLL from file not PATH Pin
Victor Nijegorodov9-Jun-22 6:38
Victor Nijegorodov9-Jun-22 6:38 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan9-Jun-22 6:43
mveRichard MacCutchan9-Jun-22 6:43 
AnswerRe: Loading DLL from file not PATH Pin
Randor 10-Jun-22 6:54
professional Randor 10-Jun-22 6:54 
For C++ projects, I think in some versions of Visual Studio the 'current directory' is actually the $(SolutionDir) or maybe $(ProjectDir) when you run from the IDE.

Using a search engine[^] you will find that the JVM is loaded with LOAD_WITH_ALTERED_SEARCH_PATH

Have a look here:
Dynamic-Link Library Search Order - Win32 apps | Microsoft Docs[^]
Scroll down to the documentation about LOAD_WITH_ALTERED_SEARCH_PATH

This flag means that the path containing the executable will never be checked. The 'current directory' is checked. Which I believe is $(SolutionDir) or maybe $(ProjectDir) when you launch from Visual Studio.
QuestionRe: Loading DLL from file not PATH Pin
Valentinor14-Jun-22 3:26
Valentinor14-Jun-22 3:26 
AnswerRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 5:10
mveRichard MacCutchan14-Jun-22 5:10 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor14-Jun-22 5:41
Valentinor14-Jun-22 5:41 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 5:49
mveRichard MacCutchan14-Jun-22 5:49 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor14-Jun-22 8:33
Valentinor14-Jun-22 8:33 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 9:27
mveRichard MacCutchan14-Jun-22 9:27 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 9:14
Valentinor15-Jun-22 9:14 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 22:30
mveRichard MacCutchan14-Jun-22 22:30 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 8:52
Valentinor15-Jun-22 8:52 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan15-Jun-22 21:53
mveRichard MacCutchan15-Jun-22 21:53 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 22:23
Valentinor15-Jun-22 22:23 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan15-Jun-22 22:46
mveRichard MacCutchan15-Jun-22 22:46 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 23:12
Valentinor15-Jun-22 23:12 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 0:01
mveRichard MacCutchan16-Jun-22 0:01 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor16-Jun-22 0:37
Valentinor16-Jun-22 0:37 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 2:08
mveRichard MacCutchan16-Jun-22 2:08 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 5:22
mveRichard MacCutchan16-Jun-22 5:22 

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.