- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I would like to get the application path for my executable. I have looked over the documentation and your forum to no avail.
A customer provided a dll that requires that I pass in the location of the dll. No idea why. I can't change it. I can't hardcode the path. I have to be able to determine the application location through code.
Any ideas?
Thanks
A customer provided a dll that requires that I pass in the location of the dll. No idea why. I can't change it. I can't hardcode the path. I have to be able to determine the application location through code.
Any ideas?
Thanks
- Balises:
- Intel® Fortran Compiler
Lien copié
1 Répondre
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
use kernel32James
character(MAX_PATH) path
call GetModuleFileName (GetModuleHandle(NULL), path, MAX_PATH)
print *, path(:INDEX(path,CHAR(0)))
end
Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable