Autor Beitrag
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Fr 16.04.04 20:54 
Hallo!

Ich habe folgendes Problem: ich will blubb.htm#lab öffnen. Wenn ich das mit ShellExecute mache, kommt gar niks. wenn ich nur blubb.htm öffne, geht es :?

Hat jmd eine Idee?

STefan

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Fr 16.04.04 20:59 
Hi,

Ermittle den Standardbrowser und rufe den auf mit der blubb.htm-Seite und dem
Anchor als Argument.
(Den Standardbrowser kannst du mit FindExecutable ermitteln)
StefanH Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Fr 16.04.04 21:03 
ich werds mir anschauen, danke!

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
StefanH Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mo 19.04.04 16:53 
:( Exception von Typ EAccessViolation:

Zitat:
tmp:= ExtractFilePath(ParamStr(0)) + 'blubb.htm#a';
if FindExecutable(PCHar(ExtractFilePath(ParamStr(0)) + 'blubb.htm'),nil,br)>32 then
ShellExecute(Application.Handle,'open',br,PChar(tmp),nil,SW_MAXIMIZE);


was stimmt nciht?

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mo 19.04.04 17:34 
hi,

probier mal:
ausblenden Delphi-Quelltext
1:
ShellExecute( Application.Handle,nil, br, PChar(tmp), nil, SW_MAXIMIZE);					


wie wurde br denn deklariert?


raziel

_________________
JSXGraph
StefanH Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Sa 24.04.04 20:32 
ausblenden Delphi-Quelltext
1:
var br: PChar					


komisch ist, dass sich das Programm aufhängt, die HTML-Datei aber geöffnet wird... :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: So 25.04.04 15:15 
Sicher dass du vorher mit GetMem speicher für deinen PChar reserviert hast?
StefanH Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: So 25.04.04 15:29 
:flehan:

perfekt :herrgruen:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)