Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 9th, 2009, 05:13 PM
Authorized User
Join Date: Sep 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts

Hi ,
m new in VB6. Can anyone let me know what exactly this segment means?

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

Private Sub Label6_Click()

ShellExecute Me.hWnd, _
        vbNullString, _
        "http://zsoftwares.googlepages.com/VBprograms.htm", _
        vbNullString, _
        "c:\", _
End Sub
Get the will power n U will be powered
Old October 9th, 2009, 06:04 PM
Friend of Wrox
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

The DECLARE is telling VB how to access a function that is in a DLL.

The Label6_Click then uses that information to, indeed, call that function in that DLL.

Looks to me like it's asking the command shell to open up a browser and send the browser to that URL.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding code bcrossb BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 2 March 5th, 2009 02:54 AM
Not understanding namespaces skaue XSLT 4 January 31st, 2009 11:10 AM
Need help understanding validation kscase Pro Visual Basic 2005 1 July 7th, 2007 07:15 PM
understanding Variable use imroostercogburn C++ Programming 7 July 28th, 2006 06:15 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.