Solved

Compile with RealAudio (Component Gallery) ?

Posted on 1998-02-12
4
311 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now