Solved

Shell Namespace Extensions and Java

Posted on 2006-11-12
1
526 Views
Last Modified: 2013-12-03
I am writing an application in Java which has to work on any platform ("any" = Windows, Mac OS X, Linux). The application uses custom objects which appear on the user's desktop, some of which have to be drop targets. I don't expect to be able to write this part of the application in Java on any of the platforms I target... I think I need platform-specific code to handle this, and I am happy with that.

On Windows, the solution appears to be writing a shell namespace extension. Assuming this is correct, how do I go about doing it?

Am I correct in saying that the solution would be to implement the shell namespace extension in C#, C++ or whatever, using publicly available tools; and to access that shell namespace extension from the Java program using a Java/COM bridge? Is there an easier way?

I am not familiar with development tools under Windows: is there a way of developing the shell namespace extension without acquiring a commercial IDE just for that purpose?

Regards
Stephen Winnall
0
Comment
Question by:winnall
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 17925534
I'd suggest to start out at http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/namespaceextension/namespace.asp ("Creating a Shell Namespace Extension"). You will find a working example at http://support.microsoft.com/kb/178665 ("HOWTO: RegView.exe Contains Shell Namespace Extension Example")

>>Am I correct in saying that the solution would be to implement the shell namespace extension in C#,
>>C++ or whatever, using publicly available tools; and to access that shell namespace extension from
>>the Java program using a Java/COM bridge? Is there an easier way?

Actually anything that is not "native" Win32 is "out" (no C#, no Java, e.g. C/C++ or maybe Delphi will work). A Java/COM bridge will certainly work, but depending on what data you need to communicate, other IPC methods mught do also.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now