Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[DELPHI HELP]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Mon Jul 16, 2007 7:52 am    Post subject: [DELPHI HELP] Reply with quote

i need some help
check the pic...
im trying to make it open a .exe, im using shellexecute... but its not compiling it

_________________
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Mon Jul 16, 2007 8:03 am    Post subject: Reply with quote

uhm... ('C:\...')

?
Back to top
View user's profile Send private message MSN Messenger
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Mon Jul 16, 2007 8:20 am    Post subject: Reply with quote

thanks il try
okay it worked but now this came

_________________
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Mon Jul 16, 2007 8:26 am    Post subject: Reply with quote

there is no such thing as "NULL" in delphi.
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Mon Jul 16, 2007 8:29 am    Post subject: Reply with quote

isnt it called nill or something instead? nil ?
Back to top
View user's profile Send private message MSN Messenger
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jul 16, 2007 8:32 am    Post subject: Reply with quote

use this
Code:

var Exe: string;
begin
Exe := 'd:\windows\system32\notepad.exe';
ShellExecute(Application.Handle, 'open', PChar(Exe), '', Pchar(ExtractFileDir(Exe)), SW_SHOW);
end;
Back to top
View user's profile Send private message
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Mon Jul 16, 2007 8:33 am    Post subject: Reply with quote

it had the null thingy in the delphi help ---- but i think its for finding folders
now this came up

_________________
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Mon Jul 16, 2007 9:44 am    Post subject: Reply with quote

did you remember to add ShellAPI to your uses list ?
Back to top
View user's profile Send private message MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Mon Jul 16, 2007 10:05 am    Post subject: Reply with quote

Kevinnn wrote:
did you remember to add ShellAPI to your uses list ?


Never used Delphi but, if he didn't include ShellAPI , it would say undeclared identifier.

About your problem, in Delphi don't you need to end every line with ;? I believe the problem is in here:
Code:
Exe := 'C:\WINDOWS\CALC.EXE'
change it to
Code:
 Exe := 'C:\WINDOWS\CALC.EXE';

_________________
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Jul 16, 2007 10:06 am    Post subject: Reply with quote

Add a ";" to the line above where the error is.

Edit: Gah, curse my internet connection zomgiownyou.
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jul 16, 2007 12:39 pm    Post subject: Reply with quote

skyllakarean wrote:
it had the null thingy in the delphi help ---- but i think its for finding folders
now this came up


Sorry dude, I forgot to say, Add "shellapi" to your uses list.

Just tried it, it's working Razz
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Mon Jul 16, 2007 1:07 pm    Post subject: Reply with quote

I already said at ?
Back to top
View user's profile Send private message MSN Messenger
iRiot
Master Cheater
Reputation: 0

Joined: 03 Jul 2007
Posts: 395
Location: Aka RIOT

PostPosted: Mon Jul 16, 2007 3:09 pm    Post subject: Re: [DELPHI HELP] Reply with quote

skyllakarean wrote:
i need some help
check the pic...
im trying to make it open a .exe, im using shellexecute... but its not compiling it


Code:
ShellExecute(Handle, 'open','C:\WINDOWS\CALC.Exe', nil, nil, SW_SHOWNORMAL) ;
Back to top
View user's profile Send private message
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Tue Jul 17, 2007 8:04 am    Post subject: Reply with quote

Yes i had shellapi
im not that dumb Rolling Eyes
i used reakwowjfa thingy and my 2nd problem was that i forgot the semicolon from the end, now it works like an little angel

_________________
Back to top
View user's profile Send private message
KingZero
Expert Cheater
Reputation: 0

Joined: 27 Jun 2006
Posts: 103

PostPosted: Tue Jul 17, 2007 10:29 am    Post subject: Reply with quote

Code:
ShellExecute(Handle, nil, pchar('C:\WINDOWS\CALC.Exe'), nil, nil, SW_SHOWNORMAL) ;

Try that. Didnt test it.

Edit:
Code:
shellexecute(handle,nil,pchar('E:\MGADiag.exe'),nil,nil,SW_SHOW);

That one works for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites