| View previous topic :: View next topic |
| Author |
Message |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Mon Jul 09, 2007 1:59 pm Post subject: [Tip]Anothor method to write long codes (Delphi) |
|
|
for example,shellexecute is a long code (dipends of the path/url)
for example,lets take this shellexecution..
Begin
ShellExecute(Handle,'open','the_long_code_will_be_placed_in_here',nil,nil,SW_SHOWNORMAL)
End;
SW_SHOWNORMAL = it will open the window as it was current
SW_MAXIMIZE = will open window in Maximized size
there's more,but i dont remember them...
now we will make it short,so we wont have to scroll delphi allways,its annoying...
Begin
ShellExecute
(Handle,
'open',
'the_long_code_will_be'
+
'_placed_in_here'
,nil,nil,SW_SHOWNORMAL)
End;
Last edited by DeletedUser14087 on Mon Jul 09, 2007 2:10 pm; edited 1 time in total |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Jul 09, 2007 2:08 pm Post subject: |
|
|
uh this is stupid...>.>
_________________
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Mon Jul 09, 2007 2:09 pm Post subject: |
|
|
| blankrider wrote: | | uh this is stupid...>.> |
Look Who's talking ,Mister who dont know how to use ListBox
This is just a tip ';..;'
|
|
| Back to top |
|
 |
xCodex Grandmaster Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 891
|
Posted: Mon Jul 09, 2007 2:35 pm Post subject: |
|
|
>_______>;
That was like... retarded. Almost as annoying as void's comment;
| void wrote: | BTW Codex
| Code: |
for ( ;; )
{
__asm
{
mov eax,[base]
add eax,offset
mov [eax],value
}
}
|
Can be shorter
| Code: |
for ( ;; )
{ __asm {
mov eax,[base]
add eax,offset
mov [eax],value
}
}
|
|
lul. (and it can be shorter than that)
_________________
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Mon Jul 09, 2007 3:10 pm Post subject: |
|
|
| I think Kaspersky is talking about the 255 character limit on strings and such...
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Jul 09, 2007 3:21 pm Post subject: |
|
|
Kaspersky, i dont know delphi
lets see you fix my list box problem.
i give you the source you fix it?
you talk like it will only take a second or two
_________________
|
|
| Back to top |
|
 |
TheSorc3r3r I post too much
Reputation: 0
Joined: 06 Sep 2006 Posts: 2404
|
Posted: Mon Jul 09, 2007 3:21 pm Post subject: |
|
|
| compactwater wrote: | | I think Kaspersky is talking about the 255 character limit on strings and such... |
Or he has no idea what he's talking about lol
lol @ that codex, who needs separate lines!?
_________________
Don't laugh, I'm still learning photoshop! |
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Mon Jul 09, 2007 3:30 pm Post subject: |
|
|
| TheSorc3r3r wrote: | | compactwater wrote: | | I think Kaspersky is talking about the 255 character limit on strings and such... |
Or he has no idea what he's talking about lol
lol @ that codex, who needs separate lines!? |
Im just trying to give a Tip..
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Tue Jul 10, 2007 4:31 am Post subject: |
|
|
The wealthy don't take a tip more than a tap.
|
|
| 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: Tue Jul 10, 2007 4:33 am Post subject: |
|
|
Yeah, but each command I'll have to write a comment what's that weird command >_<
_________________
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Tue Jul 10, 2007 4:40 am Post subject: |
|
|
//Hello, I'm a comment.
//When I go out of the
//screen you tend to do
//this to me.
{ Now, you could do
this but some people
(like me) are too
lazy to think ahead. }
Form1.Width:=//This is a bad idea.//And doing this again won't work!
Form1.Width:={Here is what you SHOULD do!}100{And you can do it here, too.}; //And after the string, you can make comments
//like these!
|
|
| Back to top |
|
 |
|