Click here to Skip to main content
15,562,903 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 23:30
mveRichard MacCutchan14-Jun-22 23:30 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 9:52
Valentinor15-Jun-22 9:52 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan15-Jun-22 22:53
mveRichard MacCutchan15-Jun-22 22:53 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 23:23
Valentinor15-Jun-22 23:23 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan15-Jun-22 23:46
mveRichard MacCutchan15-Jun-22 23:46 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor16-Jun-22 0:12
Valentinor16-Jun-22 0:12 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 1:01
mveRichard MacCutchan16-Jun-22 1:01 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor16-Jun-22 1:37
Valentinor16-Jun-22 1: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 3:08
mveRichard MacCutchan16-Jun-22 3:08 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 6:22
mveRichard MacCutchan16-Jun-22 6:22 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor16-Jun-22 7:06
Valentinor16-Jun-22 7:06 
QuestionMeasure ITEM ITEMDATA string coming in as Wide Character string Pin
ForNow6-Jun-22 18:28
ForNow6-Jun-22 18:28 
AnswerRe: Measure ITEM ITEMDATA string coming in as Wide Character string Pin
Richard MacCutchan6-Jun-22 22:01
mveRichard MacCutchan6-Jun-22 22:01 
QuestionGrades Pin
Stephanie Foley6-Jun-22 8:38
Stephanie Foley6-Jun-22 8:38 
AnswerRe: Grades Pin
Richard MacCutchan6-Jun-22 10:08
mveRichard MacCutchan6-Jun-22 10:08 
GeneralRe: Grades Pin
Stephanie Foley6-Jun-22 11:03
Stephanie Foley6-Jun-22 11:03 
GeneralRe: Grades Pin
Richard MacCutchan6-Jun-22 11:19
mveRichard MacCutchan6-Jun-22 11:19 
GeneralRe: Grades Pin
jeron16-Jun-22 12:29
jeron16-Jun-22 12:29 
Questionreference question Pin
focusdoit5-Jun-22 13:50
focusdoit5-Jun-22 13:50 
AnswerRe: reference question Pin
k50545-Jun-22 14:26
mvek50545-Jun-22 14:26 
AnswerRe: reference question Pin
Richard MacCutchan6-Jun-22 1:52
mveRichard MacCutchan6-Jun-22 1:52 
Questionmath Pin
Calin Negru4-Jun-22 21:13
Calin Negru4-Jun-22 21:13 
AnswerRe: math Pin
Victor Nijegorodov4-Jun-22 21:42
Victor Nijegorodov4-Jun-22 21:42 
AnswerRe: math Pin
Richard MacCutchan4-Jun-22 22:10
mveRichard MacCutchan4-Jun-22 22:10 
GeneralRe: math Pin
Calin Negru4-Jun-22 23:03
Calin Negru4-Jun-22 23: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.