To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 3966
3965  |  3967
Subject: 
Suggestion for interprocess communication
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 9 Feb 2000 07:48:07 GMT
Viewed: 
711 times
  
I talked to Anders Isakson about the drag & drop feature. Since he told me
that nothing is fixed now, I would like to suggest another way of implementing
the drag & drop feature:

Since Windows has a real drag & drop mechanism, which is realy easy to
implement when using the MFC extensions of Microsoft, I suggest using this
mechanism.

It works the following way:

Each program able to use the drag & drop feature should register a private
clipboard format for exchange via the clip-board (which allows copy and paste
as well). Here we have the possibility to define a standard for all Ldraw
based programs.

A program starting the drag operation creates a specified data-structure (e.g.
it could be a simple 0 terminated character string like already suggested in
previous discussions). Then in MFC you call just one function which return
code tells us about the result of the drop (if the destination accepted the
drop or not).

On the dropping side, you will receive drag&drop messages which are processed
by message handlers where the program can retrieve the clip-board format (and
can here reject unknown drop operations). Also contained in these messages are
the message data.

MLCad is an example of this mechanism since it uses that feature inside to
drag from the part-lists to the drawing area. Also MLCad supports copy and
paste from the clip-board which allows to copy data between two instances of
MLCad.

Comments are welcome!

Michael



Message has 1 Reply:
  Re: Suggestion for interprocess communication
 
Michael Lachmann skrev i meddelandet ... (...) Sigh, I suppose it makes sense, using 'real' drag & drop, although I'm not very keen on adding a ton of OLE into my program. Nor to think about developing time... Most MFC solutions are *massive* (...) (24 years ago, 9-Feb-00, to lugnet.cad.dev)

11 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR