On Sat, Nov 09, 2002 at 10:04:34PM +0100, Paul Dwerryhouse wrote:
> 
> Hi all,
> 
> Are there any examples anywhere of the use of CreateAviPlayer? (not
> CreateAviPlayer2)
> 
> I'm damned if I can get it working.
> 
> I've got the following code (it's not designed to actually do anything,
> I just want it to compile cleanly at this stage):
> 
> 
> //=========================================================================
> #include <aviplay.h>
> #include <avifile.h>
> #include <stdio.h>
> 
> #define AVM_COMPATIBLE
> 
> AVM_BEGIN_NAMESPACE;
> 

here is your problem - you do not really want to put main into avm namespace

instead you should use:

using namespace avm;
(just like you do with std)

or alternatively you could use avm:: prefix with each call.

> int main(int argc,char **argv) {
> 
> 
>       avm::IAviPlayer* player = CreateAviPlayer ("/home/paul/dev/avi/sample.wma",

avm::CreateAviPlayer...


> If I try to compile the program without the AVM_BEGIN_NAMESPACE and
> AVM_END_NAMESPACE lines, then the preprocessor can't even find the
> CreateAviPlayer function in the headers:

'using namespace' is the missing part here.


-- 
  .''`.    Zdenek Kabelac  kabi@{debian.org, users.sf.net, fi.muni.cz}
 : :' :          Debian GNU/Linux maintainer - www.debian.{org,cz}
 `. `'                          Overclocker's house :)
   `-              http://www.bbspot.com/News/2002/08/house.html        

_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to