Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
GeneralRe: Heath - Further External Drag Drop Questions Pin
J. Dunlap15-Dec-03 11:11
J. Dunlap15-Dec-03 11:11 
GeneralNever mind... Pin
J. Dunlap15-Dec-03 11:14
J. Dunlap15-Dec-03 11:14 
GeneralRe: Never mind... Pin
Tristan Rhodes15-Dec-03 11:16
Tristan Rhodes15-Dec-03 11:16 
GeneralRe: Never mind... Pin
Tristan Rhodes15-Dec-03 11:33
Tristan Rhodes15-Dec-03 11:33 
GeneralRe: Never mind... Pin
J. Dunlap15-Dec-03 11:43
J. Dunlap15-Dec-03 11:43 
GeneralRe: Never mind... Pin
Tristan Rhodes15-Dec-03 11:52
Tristan Rhodes15-Dec-03 11:52 
GeneralRe: Never mind... Pin
J. Dunlap15-Dec-03 11:46
J. Dunlap15-Dec-03 11:46 
GeneralRe: Heath - Further External Drag Drop Questions Pin
Heath Stewart15-Dec-03 11:23
protectorHeath Stewart15-Dec-03 11:23 
He wants to use an IStream that is a COM object so that the shell understands it. The IDataObject interface in .NET is much different than the IDataObject that is defined in objidl.h. The internals of how the .NET version is "marshaled" to the COM version is hidden in the System.Windows.Forms assembly (if memory serves me correctly), and it does basically what I've been telling Cata to do.

To my knowledge and from experience, the above code only sends filenames so the shell copies or moves those filenames (based on the allowed action). This person wants to know what the drop target is and apparently wants to do something when the target starts accessing the file(s). The only good way I could think of - since there aren't any notification interfaces I could find (in all my research and development with COM over the last many years) - was to use a stream because Cata would then know when the target was attempting to access the files.

If there is a better way to get notification that the object has been dropped (like, before the targets starts accessing the data object), I'm all ears. I've been looking for a solution for a couple years to this specific problem - even googling for discussions or samples - and have never found a good solution.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralNevermind 2 Pin
Heath Stewart15-Dec-03 11:25
protectorHeath Stewart15-Dec-03 11:25 
GeneralRe: Nevermind 2 Pin
15-Dec-03 11:41
suss15-Dec-03 11:41 
GeneralOutlookbar-style menu interface Pin
G_ULJEE14-Dec-03 0:25
G_ULJEE14-Dec-03 0:25 
GeneralRe: Outlookbar-style menu interface Pin
Nick Parker14-Dec-03 3:31
protectorNick Parker14-Dec-03 3:31 
Generalprinting Pin
caryb13-Dec-03 19:13
caryb13-Dec-03 19:13 
GeneralRe: printing Pin
Heath Stewart14-Dec-03 5:38
protectorHeath Stewart14-Dec-03 5:38 
QuestionChange? Pin
Alex Korchemniy13-Dec-03 13:51
Alex Korchemniy13-Dec-03 13:51 
AnswerRe: Change? Pin
Roger Stewart13-Dec-03 14:39
professionalRoger Stewart13-Dec-03 14:39 
GeneralCreating a file with C# Pin
Anonymous13-Dec-03 6:32
Anonymous13-Dec-03 6:32 
GeneralRe: Creating a file with C# Pin
Nick Parker13-Dec-03 8:32
protectorNick Parker13-Dec-03 8:32 
GeneralRe: Creating a file with C# Pin
Charlie Williams13-Dec-03 8:41
Charlie Williams13-Dec-03 8:41 
GeneralRe: Creating a file with C# Pin
leppie13-Dec-03 8:49
leppie13-Dec-03 8:49 
GeneralRe: Creating a file with C# Pin
Anonymous14-Dec-03 6:50
Anonymous14-Dec-03 6:50 
QuestionHow to create XML Editor with c#? Pin
Chua Wen Ching13-Dec-03 2:55
Chua Wen Ching13-Dec-03 2:55 
AnswerRe: How to create XML Editor with c#? Pin
Roger Alsing13-Dec-03 4:03
Roger Alsing13-Dec-03 4:03 
GeneralRe: How to create XML Editor with c#? Pin
Chua Wen Ching13-Dec-03 4:38
Chua Wen Ching13-Dec-03 4:38 
GeneralRe: How to create XML Editor with c#? Pin
Heath Stewart13-Dec-03 6:35
protectorHeath Stewart13-Dec-03 6:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.