Please check out the new RealForum Bulletin Board at 
http://realforum.real.com/cgi-bin/realforum/wwwthreads.pl

From: [EMAIL PROTECTED]
Subject: Activex Encode in modeless dialog

Hi,

I'm using RealProducer G2 activeX control in a modeless dialog box to
encode a wav file. The StartEncoding is successful but then nothing
happens, it never activates the encode pending callback. The following is
the code that I'm using.

      if (g_pDlg == NULL) {
           g_pDlg = new CEncoderDlg;      // create a new dialog box
      } // end if
      BOOL res = g_pDlg->Create(IDD_ENCODER_DIALOG);
      if (res) {
           g_pDlg->encodeFile();
      } // end if
      g_pDlg = NULL;

bool CEncoderDlg::encodeFile()
{
      set producer settings

      m_RealProducer.OpenSource();
      if (m_RealProducer.GetIsSourceOpen()) {
           m_RealProducer.StartEncoding();
      } // end if
}

TIA
Lynda


*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites.  Archives of RealForum can
be found at http://realforum.real.com

If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:

    unsubscribe realforum

or from another account, besides the address you subscribed with:

    unsubscribe realforum <[EMAIL PROTECTED]>

Reply via email to