| View previous topic :: View next topic |
| Author |
Message |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Wed Jul 11, 2007 10:52 am Post subject: |
|
|
| because ShellExecute wants a PAnsiChar and you're giving it a TCaption. What's so hard to understand?
|
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Wed Jul 11, 2007 10:58 am Post subject: |
|
|
| Pchar() or pAnsichar();
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Wed Jul 11, 2007 11:00 am Post subject: |
|
|
| Renkokuken wrote: | | Pchar() or pAnsichar(); |
Go Renko Go Renko !
|
|
| Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Wed Jul 11, 2007 11:05 am Post subject: |
|
|
Where do I have to put those codes? O_O"
_________________
|
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Wed Jul 11, 2007 11:06 am Post subject: |
|
|
Around the path.
I suggest just pChar();
|
|
| Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Wed Jul 11, 2007 11:11 am Post subject: |
|
|
| Renkokuken wrote: | Around the path.
I suggest just pChar(); |
You mean
ShellExecute(Handle, 'Open', Edit3.Text+'pChar(:\Program Files\NEXON\MapleStory\MapleStory.exe'), nil, nil, SW_SHOWNORMAL) ;
?
_________________
|
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Wed Jul 11, 2007 11:13 am Post subject: |
|
|
| pChar the edit string as well.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jul 11, 2007 4:21 pm Post subject: |
|
|
Why don't you use an OpenDialog to get the path? Check if your set path exists already, and if not, throw up the dialog so the user can set it.
Also, wouldn't that label just say Timer is now active or whatever right away?
|
|
| Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Thu Jul 12, 2007 3:58 am Post subject: |
|
|
| slovach wrote: | Why don't you use an OpenDialog to get the path? Check if your set path exists already, and if not, throw up the dialog so the user can set it.
Also, wouldn't that label just say Timer is now active or whatever right away? |
Hmm.. The label is not that important... It's a part of my program
Anyways, there's a way to do it like I did?
I want to write somethin' on a textbox (driver name), clicking OK button and then it'll open the program located on the path of C (for example).
_________________
|
|
| Back to top |
|
 |
|