 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Sat Aug 11, 2007 5:39 am Post subject: |
|
|
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ShellAPI;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(Handle, 'open', 'your program goes here', nil, nil, SW_SHOWNORMAL) ;
end;
end.
Its how it should look in delphi. Look the bold text |
|
| Back to top |
|
 |
killar456 Master Cheater
Reputation: 0
Joined: 30 Mar 2007 Posts: 415
|
Posted: Sat Aug 11, 2007 2:56 pm Post subject: |
|
|
wait wait wait, pull the e brake, at the end of the thing it says end it says its wrong
edit: ok i fixed the end thing but now i get this as a error | Code: | [Error] Unit1.pas(32): Undeclared identifier: 'Button1Click'
[Error] Unit1.pas(32): ';' expected but '(' found
[Error] Unit1.pas(34): Undeclared identifier: 'ShellExecute'
[Error] Unit1.pas(34): Undeclared identifier: 'Handle'
[Error] Unit1.pas(36): Undeclared identifier: 'Button2Click'
[Error] Unit1.pas(36): ';' expected but '(' found
[Error] Unit1.pas(38): Undeclared identifier: 'ShellExecute'
[Error] Unit1.pas(38): Undeclared identifier: 'Handle'
[Error] Unit1.pas(40): Undeclared identifier: 'Button3Click'
[Error] Unit1.pas(40): ';' expected but '(' found
[Error] Unit1.pas(42): Undeclared identifier: 'ShellExecute'
[Error] Unit1,.pas(42): Undeclared identifier: 'Handle'
[Error] Unit1.pas(44): Undeclared identifier: 'Button4Click'
[Error] Unit1.pas(44): ';' expected but '(' found
[Error] Unit1.pas(46): Undeclared identifier: 'ShellExecute'
[Error] Unit1.pas(46): Undeclared identifier: 'Handle'
[Error] Unit1.pas(48): Undeclared identifier: 'Button5Click'
[Error] Unit1.pas(48): ';' expected but '(' found
[Error] Unit1.pas(50): Undeclared identifier: 'ShellExecute'
[Error] Unit1.pas(50): Undeclared identifier: 'Handle'
[Error] Unit1.pas(52): Undeclared identifier: 'Button6Click'
[Error] Unit1.pas(52): ';' expected but '(' found
[Error] Unit1.pas(54): Undeclared identifier: 'ShellExecute'
[Error] Unit1.pas(54): Undeclared identifier: 'Handle'
[Error] Unit1.pas(56): Undeclared identifier: 'Button7Click'
[Error] Unit1.pas(56): ';' expected but '(' found
[Error] Unit1.pas(58): Undeclared identifier: 'ShellExecute'
[Error] Unit1.pas(58): Undeclared identifier: 'Handle'
[Error] Unit1.pas(60): Undeclared identifier: 'Button8Click'
[Error] Unit1.pas(60): ';' expected but '(' found
[Error] Unit1.pas(62): Undeclared identifier: 'ShellExecute'
[Error] Unit1.pas(62): Undeclared identifier: 'Handle'
[Error] Unit1.pas(66): '.' expected but end of file found
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas' |
sorry im a real noob to delphi, not cheat engine or vb but delphi is so confusing.....
edit again:k i give up im a failure this project is going in my trash can.............if any one want to try to fix it, it would be nice heres my project, http://www.megaupload.com/?d=Y9S4RKEM,
http://www.megaupload.com/?d=KQ3W6S49, http://rapidshare.com/files/48411549/project1.dof.html, http://rapidshare.com/files/48411681/project1.res.html, http://rapidshare.com/files/48411755/project1.dpr.html, http://rapidshare.com/files/48411909/project1.cfg.html and thats all the things that it saved for me, u might not need it all, i dont know |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Aug 15, 2007 6:55 pm Post subject: |
|
|
| appalsap wrote: | | SHGetSpecialFolderPath |
It depends on whether HE's the only guy using this software or not - if he's the only end user then I personally wouldn't bother doing all the fancy APIs to get relative paths
Though yes I always use relative paths for mine _________________
Get kidnapped often. |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Wed Aug 15, 2007 9:14 pm Post subject: |
|
|
Well what if the only user has to reinstall Windows or run the program under a different user account? ? |
|
| Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Wed Aug 15, 2007 9:35 pm Post subject: |
|
|
As long as the new install of windows doesn't clean out the old profile folders, there shouldn't be a problem.
As long as the other user is an admin with permissions to access other admins' profile folders, it should be fine.
If windows does wipe the profiles, or the other user does not have the permissions, using special paths won't work either. _________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
| Back to top |
|
 |
|
|
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
|
|