Autor Beitrag
M 2005
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Di 08.11.05 22:38 
Hi Jungs


Das ist mein erster Post in Eurem Forum =)


Also ich will ein Program schreiben in dem ein Button ist und wen ich auf den Button klick das sich dan eine andere EXE offnet !!!

Wie mach ich das ?


Danke im Vorraus


PS: Wenn ihr den Code habt wäre ich sehr Dankbar


Moderiert von user profile iconGausi: Topic aus Internet / Netzwerk verschoben am Di 08.11.2005 um 21:44
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 08.11.05 22:43 
Hallo und :welcome: in der Entwickler-Ecke!

Der 'Befehl', den du suchst, ist Suche in der Entwickler-Ecke SHELLEXECUTE.

Und weil das nichts mit Internet zu tun hat, verschieb ich das...

_________________
We are, we were and will not be.
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Mi 09.11.05 00:24 
Danke für die schnelle Antwort !!!


Aber ich weis nicht genau wie du das meinst !!!


Also ich mach einen Button füge den Befehl ein und dan ???

Danke im Vorraus
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mi 09.11.05 00:30 
Genau.. du machst den Button und fügst den Befehl ein.. naja musst ihn halt noch bisschen abändern weil bestimmt nicht jeder hier im Forum das gleiche Programm wie du starten willst..

Ist aber auch sehr gut erklärt wenn du im Forum danach suchst..

Und nicht vergessen: ShellAPI in die uses eintragen


greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Mi 09.11.05 00:35 
Hi Jungs

Also vielen Dank das ihr mir Helft aber ich peil echt ned so ganz durch =(


Könnt vielleicht einer mir das schnell per ICQ erklären wäre sehr Dankbar



Also ich versteh das so

Button = SHELLEXECUTE was kommt danach ich hätte es so gemacht C:/psp.exe


Danke im Vorraus


Zuletzt bearbeitet von M 2005 am Mi 09.11.05 01:47, insgesamt 1-mal bearbeitet
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mi 09.11.05 00:47 
bitte einmal vorher hier vorbeischaun

www.christian-stelzm...rtikel/crashkurs.htm

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Mi 09.11.05 01:14 
Danke das hat mich sehr weiter gebracht =(
Tilman
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1405
Erhaltene Danke: 51

Win 7, Android
Turbo Delphi, Eclipse
BeitragVerfasst: Mi 09.11.05 02:45 
Oben steht in deinem Programm irgendwo "uses". Dort trägts du als letztes Wort ShellApi ein (die sind alle durch kommas getrennt).

Dann nimmst du einen button auf deine form, doppelklickst darauf und schreibst:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(handle,'open','c:\meinprogramm.exe','','',sw_shownormal);
end;
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Mi 09.11.05 10:50 
Hi Tilman


Vielen Vielen Dank echt sau nett von Dir !!!


Es geht jetzt =)



Nochmal Danke
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Do 10.11.05 00:44 
Hi also das geht jetzt mal alles aber ich möchte gerne das ich eine exe habe aber in der einen exe ist noch eine exe also insgesamt 2 exen aber ich will nicht das sich die exe auf der Festplatte befindet sondern die exe soll sich in dem Program befinden !!!


Also ich habe 1 Exe und innen drin sind es insesamt 2 Exen also wen ich dan auf zb Button klick öffnet sich die 2 !!!


Ich hoffe ihr wisst was ich mein !!


Danke im Vorraus
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Do 10.11.05 00:46 
1) für jede fragen einen neuen thread
2) das sieht sehr nach virencoden aus, was hier keiner unterstützt
3) schau dir erstmal die grundlagen an das hab ich dir schon gepostet
4) programmier erstmal was einfacheres

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Do 10.11.05 00:55 
1. Ich will keine Viren Coden !!!
2. Wie soll ich den Viren Coden wen ich das normale Coden nicht einmal kann ??? :twisted:
3. Also ich habe gedacht das ich in einem Forum bin da wo man Hilfe bekommt !!! :roll:


Schade aber was sols !!!


THX
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Do 10.11.05 00:56 
Ich denke mehr, dass er von einer zweiten Form spricht... siehe Crashkurs. ich glaub da stehts drin.
Datei->neu->Formular
dann hast du ne neue Fläche. da kannste drauf rum machen wie du willst, und dann auf der ersten Form: Form2.Show; dann wird die zweite angezeit...

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Do 10.11.05 01:20 
Hi JayEff Danke für deinen Post !!!


Aber ich mein das schon so wie Ich das sage !!!


THX
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Do 10.11.05 04:53 
die 2. exe kannst du als Suche in: Delphi-Library RESOURCE einbinden

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Do 10.11.05 13:52 
Danke für deinen Post !!!


M 2005