home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1802
Discussions: 188,401, Posts: 2,243,599, Members: 232,629
Old December 21st, 2004, 02:47 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Aug 2003
Location: Germany
Posts: 98
Send a message via ICQ to c6ke
Delphi vs. Java

I'd like to do the following thing with delphi:

I have the full command:
PHP Code:
ShellExecute(Handle'open'PChar('c:\Windows\notepad.exe'), nilnilSW_SHOW); 
As i'd like to start more than only one program, i want to put

PHP Code:
procedure run (PChar s);
begin
ShellExecute
(Handle'open'PChar(s), nilnilSW_SHOW);
end
as a procedure which i can call as: run(c:\windows\notepad); Of course at the moment this does not work... I know this should work with java like that - but i need it to be startable from delphi... How?

This must be very easy as i'm a total newbie to delphi syntax
__________________
Do you also hear those voices?


Last edited by c6ke : December 21st, 2004 at 03:03 PM.
c6ke is offline   Reply With Quote
Old December 22nd, 2004, 05:13 AM     #2 (permalink)
Member
 
Join Date: Aug 2003
Location: Germany
Posts: 98
Send a message via ICQ to c6ke
Ok i got it. needed a funtion

c6ke is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opera 7.21 brian0555 Applications and Operating Systems 7 November 2nd, 2003 11:36 AM
XM satellite radio for your PC thekingofpain Tech News Discussion 1 August 14th, 2003 02:20 PM
FM transmitter CubKid General Tech Discussion 8 April 28th, 2003 04:21 AM
Delphi starrboy Webmastering and Programming 1 April 22nd, 2003 08:38 PM

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (6)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
For cheap price and good qualit.. (1)
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
wishin i could edit my aol prof.. (0)
Sporadic internet connectivity (2)
Assassins Creed PC Problems (40)
I think my PSU is dieing (1)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:37 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28