Yes, this is possible. Instantiate both read and write, like you have
below. Configure both read and write. Open both read and write.
Robert
> -----Original Message-----
> From: c6x@c6x@... [mailto:c6x@c6x@...] On
> Behalf Of stephane D
> Sent: Monday, December 12, 2005 10:44 AM
> To: c6x@c6x@...
> Subject: [c6x] RTDX
>
> Hi all,
> I would like to establish a communication protocol between an
> Host client and my CCS application. To do that, I would like
> to use RTDX. I have read the tutorial and some examples are
> done in C++. To initialize RTDX com a library is imported
> from "c:\ti\cc\bin\rtdxint.dll" but I don't find any
> documentations about the interfaces??.
> More over all exemples are created with only one instance of
> RTDX and it works very well but I would like to create two
> instances one to read and one to write and in that case all is frozen.
> Is it possible to do that?
>
> // initialize COM
> ::CoInitialize( NULL );
> // instantiate the RTDX COM Object
> hr = rtdx.CreateInstance( L"RTDX" );
> cout.setf( ios::showbase );
> hr2 = rtdx.CreateInstance( L"RTDX" );
> cout.setf( ios::showbase );
> // open a channel (ichan) for writing
> status = rtdx->Open( "ichan", "W" );
> // open a channel (ochan) for reading
> statusOchan = rtdx->Open( "ochan", "R" );
>
> Thank you
> stephane
>
> --