473,385 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How do I create a Shell IDList Array in C# 3.5?

I am writing a file manager and I currently support simple, filename-
based, drag-drop. I'd like to create the appropriate Shell IDList
Array so that when a user drags a file into Paint or Photoshop or word
it will open correctly.

The research I've done points to "Shell IDList Array" but most of it
is determining how to accept and parse the CIDA, I'm looking for how
to build it and load the DataObject appropriatly.

Any help would be great.
Tom P.
Aug 11 '08 #1
2 3235
On 11/08/2008 in message
<dd**********************************@r66g2000hsg. googlegroups.comTom P.
wrote:
>I am writing a file manager and I currently support simple, filename-
based, drag-drop. I'd like to create the appropriate Shell IDList
Array so that when a user drags a file into Paint or Photoshop or word
it will open correctly.

The research I've done points to "Shell IDList Array" but most of it
is determining how to accept and parse the CIDA, I'm looking for how
to build it and load the DataObject appropriatly.
I put something up on Code Project which may help:
http://www.codeproject.com/KB/files/JFileManager31.aspx

There is a class in it called cDropFiles which takes a file path (or array
of file paths) and converts it/them into a DataObject which you can put on
the ClipBoard.

--
Jeff Gaines Damerham Hampshire UK
If it's not broken, mess around with it until it is
Aug 11 '08 #2
On Aug 11, 5:07*pm, "Jeff Gaines" <jgaines_new...@yahoo.co.ukwrote:
On 11/08/2008 in message
<dd43a071-ba60-4cff-b25e-cccd54de9...@r66g2000hsg.googlegroups.comTom P..
wrote:
I am writing a file manager and I currently support simple, filename-
based, drag-drop. I'd like to create the appropriate Shell IDList
Array so that when a user drags a file into Paint or Photoshop or word
it will open correctly.
The research I've done points to "Shell IDList Array" but most of it
is determining how to accept and parse the CIDA, I'm looking for how
to build it and load the DataObject appropriatly.

I put something up on Code Project which may help:http://www.codeproject.com/KB/files/JFileManager31.aspx

There is a class in it called cDropFiles which takes a file path (or array
of file paths) and converts it/them into a DataObject which you can put on
the ClipBoard.

--
Jeff Gaines Damerham Hampshire UK
If it's not broken, mess around with it until it is
Thanks, that was a big help. Now the problem I have is the code you
wrote creates DataObjects as memoryStreams but when I drop a file from
FileManager it gives me an array of strings.

I'll work on it and see what I can come up with. Thanks for the nudge.

Tom P.
Aug 12 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: eichin | last post by:
One of my recent projects has involved taking an accretion of sh and perl scripts and "doing them right" - making them modular, improving the error reporting, making it easier to add even more...
7
by: Oliver Gräser | last post by:
Hej, I want to run batchfiles via the Shell, but accessible in the Browser via IIS. Actually, I'd like the server to start a command line ntbackup if a users selects to do so on an ASP in his...
22
by: nobody | last post by:
hello everybody, is there a way of creating an array with help of a function that would accept the name of this array as a parameter and then create global Array type variable of that name? so...
11
by: Paul D.Smith | last post by:
Can Python create a variable "on-the-fly". For example I would like something like... make_variable('OSCAR', 'the grouch'); print OSCAR; ....to output... the grouch
3
by: JP | last post by:
I have an app that represents ShellFolder Items as a visual element (listview item, etc). The code correctly performs Drag&Drop operations EXCEPT in the case when the item being dragged is from a...
0
by: Andrea | last post by:
My C# application is a drop target for the drop format Shell IDList Array I have some problems actually getting the data. I was using the same code used for the FileDrop data target but I'm...
2
by: James L Szatkowski, PE | last post by:
I'm using (successfully in VB Express) this routine: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Call Shell("C:\Program...
5
by: bearophileHUGS | last post by:
For array.array "B" means unsigned char, and such arrays accept to be initialized from (str) strings too, this is quite useful: But it seems such capability isn't shared with the append: ...
3
by: gisto moss | last post by:
i have to implement the shell such that it accepts commands, together with parameters. Assume all possible commands have either 0 or 1 parameter. I need to check this. if(commandstrings.length>2)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.