Solved

Compile with RealAudio (Component Gallery) ?

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Prevent this page from creating additional dialogs. 3 614
tripleUp challenge 7 86
noX challenge 17 129
How to convert MFC::CString to UTF8 wchar_t* 10 278
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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 …
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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