www.digitalmars.com         C & C++   DMDScript  

c++.wxwindows - digital mars wxStyledtextControl

reply "chris elliott" <chris ampleforth.u-net.com> writes:
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
Oct 22 2003
parent reply "Charles Sanders" <sanders-consulting comcast.net> writes:
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

 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

Oct 22 2003
parent reply "Charles Sanders" <sanders-consulting comcast.net> writes:
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

 branch gives an error when text is selected to go to the clipboard (cut


 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


Oct 22 2003
next sibling parent "Walter" <walter digitalmars.com> writes:
"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__
Oct 22 2003
prev sibling parent "chris elliott" <chris ampleforth.u-net.com> writes:
"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
Oct 23 2003