Click here to Skip to main content
15,867,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
The thing is that when Java is installed it doesn't add some kind of dynamic link in PATH to where jvm.dll is located, well it doesn't add one at all.
Yes, if I'm compiling the class with 1.8 and then on VM I can manually add in PATH the server folder, but here is a problem, the user should not go though this process of opening variables and find PATH to add it there.
A solution would be that when the app is opened, it would check if Java in installed, if it is not, then the user would be prompted to download it, or I have to search and see if you can legally distribute JavaSetup8uxxx.exe file and if you can the app would automatically run the file and the user would go though the process of installing Java. After Java is installed by either way then the app will search what version is installed to know what location to add in PATH, which it would do after knowing that. At this point the app will run fine.
BUT then you run into another problem, if the user updates Java then the location will change for jvm.dll, so you would have to add another variable to PATH with the new location for it, and remove the old one.

Adding a variable to PATH shouldn't be a problem, as Java and other programs do it too, I'll just have to see how that is done from C++ code.

If this is actually the only way to do it, then I guess I can do it this way, but having another solution that wouldn't involve adding variables to PATH would have been better.
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 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor16-Jun-22 6:06
Valentinor16-Jun-22 6:06 
QuestionMeasure ITEM ITEMDATA string coming in as Wide Character string Pin
ForNow6-Jun-22 17:28
ForNow6-Jun-22 17:28 
AnswerRe: Measure ITEM ITEMDATA string coming in as Wide Character string Pin
Richard MacCutchan6-Jun-22 21:01
mveRichard MacCutchan6-Jun-22 21:01 
QuestionGrades Pin
Stephanie Foley6-Jun-22 7:38
Stephanie Foley6-Jun-22 7:38 
AnswerRe: Grades Pin
Richard MacCutchan6-Jun-22 9:08
mveRichard MacCutchan6-Jun-22 9:08 
GeneralRe: Grades Pin
Stephanie Foley6-Jun-22 10:03
Stephanie Foley6-Jun-22 10:03 
GeneralRe: Grades Pin
Richard MacCutchan6-Jun-22 10:19
mveRichard MacCutchan6-Jun-22 10:19 
GeneralRe: Grades Pin
jeron16-Jun-22 11:29
jeron16-Jun-22 11:29 
Questionreference question Pin
focusdoit5-Jun-22 12:50
focusdoit5-Jun-22 12:50 
AnswerRe: reference question Pin
k50545-Jun-22 13:26
mvek50545-Jun-22 13:26 
AnswerRe: reference question Pin
Richard MacCutchan6-Jun-22 0:52
mveRichard MacCutchan6-Jun-22 0:52 
Questionmath Pin
Calin Negru4-Jun-22 20:13
Calin Negru4-Jun-22 20:13 
AnswerRe: math Pin
Victor Nijegorodov4-Jun-22 20:42
Victor Nijegorodov4-Jun-22 20:42 
AnswerRe: math Pin
Richard MacCutchan4-Jun-22 21:10
mveRichard MacCutchan4-Jun-22 21:10 
GeneralRe: math Pin
Calin Negru4-Jun-22 22:03
Calin Negru4-Jun-22 22:03 

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.