WYSIWIG html editor
Martin Dvorak -- mdvorak@mail.kolej.mff.cuni.cz
Monday, January 20, 1997
Environment: VC++4.1, Win NT, Win 95
Hi,
As a project at our university we have chosen an HTLM WYSIWIG editor
(something like FrontPage 97). But we want a different approach. We want
each of HTML object (BITMAP, TABLE, FORM etc.) to be handled (edited,
displayed, ...) by a special module. Then if something new appears in HTML
specification, all we will have to do, will be write new module and connect
it to main program.
Okay, very nice idea, but not so easy implementation. With not so many
experiences we do not know how to program it in MFC. Should we use OLE and
make main program an OLE container and each object module an OLE server? Or
is it possible to use OCX? Or should we forget OLE and program it using
metafiles and DLL-EXE communication with some instalation scripts etc? Or
is there some better approach to this problem?
Please, if anyone of you have any experience with programming this kind of
application (something like WYSIWIG editor with lots of different object),
give us some advice on how to do it, some basic concept we should use etc.
Thanks very much,
Martin
Tim Hagemann -- Tim@way2.net
Thursday, January 23, 1997
Martin,
Because OLE-Servers and OCX-Controls are designed to work in all =
OLE-Containers / OCX-Clients they use a lots of interfaces (IDispatch =
for example) which leads to a lots of running code. Inyour case, you =
need objects in different modules (dll's for example), which are tightly =
coupled to your application. Instead of designing your own DLL-load and =
call mecahnism, you should use the OLE-COM-Objects with interfaces =
designed by you. They are as fast as normal C++ objects but loaded =
dynamically by the operating system (all new API's of MS use this =
technique).
Refer to the MSDN for more information about OLE-COM.
Tim Hagemann
Timbo :-)
Das Schlimme an der Welt ist, da=DF sich die Dummen
so sicher und die Schlauen so voller Zweifel sind !
The original mail was :
From : Martin Dvorak
Sent : 1997/01/22 21:43
To : mfc-l@netcom.com
Subject : WYSIWIG html editor
As a project at our university we have chosen an HTLM WYSIWIG editor
(something like FrontPage 97). But we want a different approach. We want
...
Thanks very much,
Martin
| Вернуться в корень Архива
|