PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → GetPath
GetPath
Débuté par Patrick Vandebroek, 04 jan. 2005 17:07 - 1 réponse
Posté le 04 janvier 2005 - 17:07
Hi all,
first a happy newyear to all of you.
Does anyone know how to retrieve the path of example excel.exe by using calldll32.
This is what I got, but it give me a result of -1 and not the path I need.
result = calldll32("gdi32","getPath","excel.exe",null,null,0)
Any idee
Regards,
Patrick
Posté le 04 janvier 2005 - 22:51
[Happy & Healthy New Year 2U All]
Hi Patrick
This is what I got, but it give me a result of -1 and not the path I need.
result = calldll32("gdi32","getPath","excel.exe",null,null,0)

Ehh, the gdi32 library is more for drawing functions ...

{GetPath Retrieves the coordinates defining the endpoints of lines and the control points of curves found in the path that is selected into the specified device context. System.Drawing.Drawing2D.GraphicsPath.PathData}
Better have a look at the 'FindExecutableA' function for ex. in the shell32.dll.
Regards
Peter


http://www.boxerart.net