Ou est lebug sur cette miniligne de code ?

Ou est lebug sur cette miniligne de code ? - Delphi/Pascal - Programmation

Marsh Posté le 06-01-2003 à 11:21:54    


 
if lancer = mryes then shellexecute(0,'open',extractfilepath(application.exename)+'liste.html','',extractfilepath(application.exename),SW_SHOWNORMAL);
 
comment ffaut faire , il me dit  
 
type imcompatible string et pchar

Reply

Marsh Posté le 06-01-2003 à 11:21:54   

Reply

Marsh Posté le 06-01-2003 à 11:56:06    

if lancer = mryes then shellexecute(0,'open',pchar(extractfilepath(application.exename)+'liste.html'),'',pchar(extractfilepath(application.exename)),SW_SHOWNORMAL);

Reply

Marsh Posté le 16-01-2003 à 12:18:12    

pas mieux :)
ShellExecute est un api windows il me semble, donc PChar().
Y'a WinExec qui fait apreil que ShellExecute, non?

Reply

Marsh Posté le 22-01-2003 à 17:07:32    

Utilises les LMDTools.
Ils intègrent un composant intégrant le ShellExecute.
 
Il propose des tas de fonctions supplémentaires très sympa.
 
Tu peux télécharger chez Torry.

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed