Solved

Compile with RealAudio (Component Gallery) ?

Posted on 1998-02-12
4
319 Views
Last Modified: 2013-11-20
hey,
 
   I want to know how to compile program with RealAudio as
a insert Component ?
 
 
0
Comment
Question by:Sonwong
  • 2
4 Comments
 
LVL 7

Expert Comment

by:galkin
ID: 1316108
What's the problem? Insert control using Component Gallery. Two files will be added to your project as well as control's toolbar button to resource toolbar. One file is wrapper class header file and another file is wrapper class source file. Then you can compile and build your project
0
 

Author Comment

by:Sonwong
ID: 1316109
I have fellowing error when I compile real audio with Vc++ 4.2 !

Compiling...
realaudio.cpp
D:\temp\1\realaudio.cpp(24) : error C2065: 'DISPATCH_METHOD' : undeclared identifier
D:\temp\1\realaudio.cpp(24) : error C2065: 'VT_I4' : undeclared identifier
D:\temp\1\realaudio.cpp(38) : error C2065: 'DISPATCH_PROPERTYGET' : undeclared identifier
D:\temp\1\realaudio.cpp(38) : error C2065: 'VT_BSTR' : undeclared identifier
D:\temp\1\realaudio.cpp(45) : error C2065: 'VTS_BSTR' : undeclared identifier
D:\temp\1\realaudio.cpp(45) : error C2075: 'parms' : array initialization needs curly braces
D:\temp\1\realaudio.cpp(46) : error C2065: 'DISPATCH_PROPERTYPUT' : undeclared identifier
D:\temp\1\realaudio.cpp(46) : error C2065: 'VT_EMPTY' : undeclared identifier
D:\temp\1\realaudio.cpp(60) : error C2075: 'parms' : array initialization needs curly braces
D:\temp\1\realaudio.cpp(75) : error C2075: 'parms' : array initialization needs curly braces
D:\temp\1\realaudio.cpp(83) : error C2065: 'VT_BOOL' : undeclared identifier
D:\temp\1\realaudio.cpp(90) : error C2065: 'VTS_BOOL' : undeclared identifier
D:\temp\1\realaudio.cpp(90) : error C2075: 'parms' : array initialization needs curly braces
D:\temp\1\realaudio.cpp(105) : error C2075: 'parms' : array initialization needs curly braces
D:\temp\1\realaudio.cpp(120) : error C2075: 'parms' : array initialization needs curly braces
D:\temp\1\realaudio.cpp(135) : error C2075: 'parms' : array initialization needs curly braces
D:\temp\1\realaudio.cpp(213) : error C2075: 'parms' : array initialization needs curly braces
D:\temp\1\realaudio.cpp(213) : error C2146: syntax error : missing ';' before identifier 'VTS_BSTR'
Error executing cl.exe.
1.exe - 18 error(s), 0 warning(s)

0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1316110
You seem not to include ActiveX controls support when you used AppWizard to generate the project. Check stdafx.h, it should look like the following,

...
#define VC_EXTRALEAN            // Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC OLE automation classes
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>                  // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
...

#include <afxdisp.h> might not be there in your stdafx.h.

And, check your cpp that contains the application class. In the InitInstance(), there should be

AfxEnableControlContainer();

0
 

Author Comment

by:Sonwong
ID: 1316111
OK!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 96
ODBC Connection Logging, ADO.NET 6 64
how to monitor remote shell execution on linux 9 100
post4 challenge 28 100
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question