Thread overview
digital mars wxStyledtextControl
Oct 22, 2003
chris elliott
Oct 22, 2003
Charles Sanders
Oct 22, 2003
Charles Sanders
Oct 22, 2003
Walter
Oct 23, 2003
chris elliott
October 22, 2003
Hi

Building the wxStyledtextcontrol sample, with digital mars on the wxWindows branch gives an error when text is selected to go to the clipboard (cut or copy).paste is Ok.

A message box pops up saying:

Error -2147221008 coInitialize has not been called

This does not happen with VC6, Borland, or gcc compilers

Any ideas appreciated
chris


October 22, 2003
Did you try calling

CoInitalize(0); // to initalize COM

?

C
"chris elliott" <chris@ampleforth.u-net.com> wrote in message
news:bn5um9$314v$1@digitaldaemon.com...
> Hi
>
> Building the wxStyledtextcontrol sample, with digital mars on the
wxWindows
> branch gives an error when text is selected to go to the clipboard (cut or
> copy).paste is Ok.
>
> A message box pops up saying:
>
> Error -2147221008 coInitialize has not been called
>
> This does not happen with VC6, Borland, or gcc compilers
>
> Any ideas appreciated
> chris
>
>


October 22, 2003
Probably buried somewhere in the code is

#ifdef MSVC || BORLAND // miscrosoft specific
CoInitialize(0);
#endif

I dont use wxWindows anymore but it would be cool to add a #ifdef DM ( Or whatever Digital Mars is defined as ) for that.

C

"Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bn6fmf$nb4$1@digitaldaemon.com...
> Did you try calling
>
> CoInitalize(0); // to initalize COM
>
> ?
>
> C
> "chris elliott" <chris@ampleforth.u-net.com> wrote in message
> news:bn5um9$314v$1@digitaldaemon.com...
> > Hi
> >
> > Building the wxStyledtextcontrol sample, with digital mars on the
> wxWindows
> > branch gives an error when text is selected to go to the clipboard (cut
or
> > copy).paste is Ok.
> >
> > A message box pops up saying:
> >
> > Error -2147221008 coInitialize has not been called
> >
> > This does not happen with VC6, Borland, or gcc compilers
> >
> > Any ideas appreciated
> > chris
> >
> >
>
>


October 22, 2003
"Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bn6glg$oq9$1@digitaldaemon.com...
> I dont use wxWindows anymore but it would be cool to add a #ifdef DM ( Or whatever Digital Mars is defined as ) for that.

#if __DMC__


October 23, 2003
"Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bn6glg$oq9$1@digitaldaemon.com...
> Probably buried somewhere in the code is
>
> #ifdef MSVC || BORLAND // miscrosoft specific
> CoInitialize(0);
> #endif

Yes there was an ifdef around OleInitialize

thanks
chris