Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 3rd, 2004, 03:52 PM
Authorized User
Join Date: Aug 2003
Location: Vienna, , Austria.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to integrate vb6.exe into Explorer Shell

Hi all there


I want to integrate a VB6 program - or VB.NET, but VB6 is still preferred :-) - into Windows Shell, i.e. into Explorer's context menu.

I've read the MSDN Shell Programmer's Guide carefully.

There will be shell entries defined in the registry in

- "HKEY_CLASSES_ROOT\*" (for "all files"), and
- "HKEY_CLASSES_ROOT\directory" (for "file folders")

in order to be able to apply the program's function(s) to

(a) a single selected file in a folder,
(b) multiple selected files in one folder,
(c) all files in the sub-tree of a selected folder.

While (a) and (c) are quite easy to accomplish, because only one name space object (file system object) is selected, there is something more to do for (b) to get a collection (or list) of all selected files.

Explorer "likes" DDEExec for such cases. So I will define the registry shell keys with DDEExec according to many examples found in the registry [if I would try to do without DDEExec, Exlorer would start one instance of the VB program for each selected file, which I certainly do not want].

Because of DDEExec the VB program must be able to do a "DDE conversation" with Explorer to get the files selected.

With DDE (and DDEExec, and the System topic and so on) I am a bloody beginner.


- Is there anybody who knows how to do this in VB6?
- Or knows some sample code from which I could learn?
- Or knows a site which deals with this topic?

Your answers are highly appreciated!

Thnx a lot,
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vb6 .exe login issues Jade08 Beginning VB 6 8 May 7th, 2008 08:10 AM
Shell command or calling VB exe netfresher General .NET 3 October 30th, 2006 06:23 AM
how to call shell cmd to open exe on clientside? nana Javascript How-To 6 May 25th, 2006 03:23 AM
vb6.exe application error myth12345 VB How-To 1 December 27th, 2004 10:23 AM
.NET EXE won't run right in SHELL from VBS Ron Howerton General .NET 1 December 20th, 2004 05:49 PM

All times are GMT -4. The time now is 10:43 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.