Visual Writer OCX (Visual Components) and BCB ?

This is a multi-part message in MIME format.

------=_NextPart_000_0006_01BCDE0C.CE489B90
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

 Hello everybody,

Can somebody tell me how I can connect the ToolBar,StatusBar and Ruler =
with
the Text object in Borland C++.
I tried the following :
 I putted the 4 objects on Form together with a button with the =
following code :

        void __fastcall TForm1::Button1Click(TObject *Sender)
        {
            VisualWriter1->ButtonBarHandle =3D VWButtonBar1->hWnd;
             VisualWriter1->RulerHandle =3D VWRuler1->hWnd;
             VisualWriter1->StatusBarHandle =3D VWStatusBar1->hWnd;
        }
    The program starts and I can type text in the text field but after =
click
on the button my program crashes when the textobject gets the focus.

Can somebody help me ?

--=20
/- Frederik Van Lierde
/- Academic Hospital
/- Free University of Brussels
/- f...@az.vub.ac.be

------=_NextPart_000_0006_01BCDE0C.CE489B90
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1008.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<P><FONT color=3D#000000 face=3DArial size=3D2>&nbsp;<FONT =
size=3D2>Hello=20
everybody,<BR><BR>Can somebody tell me how I can connect the =
ToolBar,StatusBar=20
and Ruler with<BR>the Text object in Borland C++.<BR>I tried the =
following :<BR>=20
I putted the 4 objects on Form together with a button with the following =
code=20
:<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void __fastcall=20
TForm1::Button1Click(TObject=20
*Sender)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
VisualWriter1-&gt;ButtonBarHandle =3D=20
VWButtonBar1-&gt;hWnd;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
VisualWriter1-&gt;RulerHandle =3D=20
VWRuler1-&gt;hWnd;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
VisualWriter1-&gt;StatusBarHandle =3D=20
VWStatusBar1-&gt;hWnd;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20

Quote
}<BR>&nbsp;&nbsp;&nbsp; The program starts and I can type text in the =

text field=20
but after click<BR>on the button my program crashes when the textobject =
gets the=20
focus.</FONT></FONT><FONT color=3D#000000 face=3DArial size=3D2><FONT=20
size=3D2><BR><BR>Can somebody help me ?</FONT></FONT><FONT =
color=3D#000000=20
face=3DArial size=3D2><FONT size=3D2><BR></FONT></FONT></P>
<P><FONT color=3D#000000 face=3DArial size=3D2><BR>-- <BR>/- Frederik =
Van Lierde<BR>/-=20
Academic Hospital<BR>/- Free University of Brussels<BR>/- <A=20
href=3D"mailto:f...@az.vub.ac.be">f...@az.vub.ac.be</A></FONT></P></BODY>=
</HTML>

------=_NextPart_000_0006_01BCDE0C.CE489B90--