|
-
Oct 7th, 2001, 05:50 PM
#1
Thread Starter
Member
A simple request to those who post source...
As you know, the API calls can get unrulingly long:
VB Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" ... ' wow this is a long call
So if it is really long, can you do this instead to avoid horizontal scrolling?
VB Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Last edited by filburt1; Oct 7th, 2001 at 08:26 PM.
-
Oct 7th, 2001, 05:53 PM
#2
PowerPoster
I don't like line continuators and I always take them out
-
Oct 7th, 2001, 05:55 PM
#3
-= B u g S l a y e r =-
I do agree
u'r wish is our command filburt1
well.. that is if I remember it...
-
Oct 7th, 2001, 05:59 PM
#4
Thread Starter
Member
Originally posted by chrisjk
I don't like line continuators and I always take them out
Then can you put it in a [font=courier new]api call here[/font] tag then, so it uses breaking instead of nonbreaking spaces?
-
Oct 7th, 2001, 06:17 PM
#5
PowerPoster
what's it worth?
-
Oct 7th, 2001, 08:07 PM
#6
Thread Starter
Member
If you don't do it I'll start making some more avatars to add to the 40+ I already have.
-
Oct 7th, 2001, 08:24 PM
#7
Originally posted by chrisjk
I don't like line continuators and I always take them out
Filburt1,
Most of your gripes I generally agree with. HOWEVER, when it
comes to coding API functions, My belief is to code the function on
ONE line, for the sole reason that those stupid _ line continuation
characters are ugly and illogical. A function is defined by a single
line, SO WHAT? I tend to make my posts here fit into the reply
box by entwering hard returns where needed, BUT thats to make
it look nice. When it comes to VB Code, I'm not going to do that,
because spanning the screen is OK. So someone has to scroll to
the right. It still LOOKS better in the form code that way. As
opposed to being disjointed and staggered, if you use the _
method.
No.
Not with a Bar, 'cause EOL's so far.
I Just don't like it, Sam I am!
-
Oct 7th, 2001, 08:26 PM
#8
Thread Starter
Member
I used to loathe them as well, but after working two years with the Java Style Guide by NASA (I was a subcontractor) I had to keep my lines to 80 chars or less. Just a habit. You do have to admit that horizontal scrolling is annoying though.
-
Oct 7th, 2001, 08:57 PM
#9
PowerPoster
But what does that API do?
You surely need comments :
VB Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long 'I wonder how far this API makes it scroll and I wonder if it makes Turtle blood boil :D Anyways, i think the use of vbcode / vbcode is a much better mission that you could devote your life to :p
-
Oct 9th, 2001, 05:19 PM
#10
my suggestion to you, get a mouse with 3 buttons or more, and if you do ... USE IT !
-
Oct 9th, 2001, 05:22 PM
#11
Thread Starter
Member
Originally posted by beachbum
But what does that API do?
You surely need comments :
VB Code:
[size=100]Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long 'I wonder how far this API makes it scroll and I wonder if it makes Turtle blood boil :D Anyways, i think the use of vbcode / vbcode is a much better mission that you could devote your life to :p[/size]
It was hard finding the "Submit Reply" button.
-
Oct 9th, 2001, 05:32 PM
#12
PowerPoster
Originally posted by filburt1
It was hard finding the "Submit Reply" button.
Longest API declaration I could find...
VB Code:
[size=10][b]Private Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As SECURITY_ATTRIBUTES, lpThreadAttributes As SECURITY_ATTRIBUTES, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long[/b][/size]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|