[Openal] OpenAL with C++ WindowsForm application?

Jason Daly jdaly at ist.ucf.edu
Mon Sep 28 07:48:24 PDT 2009


I'm not an authority on CLR or Forms, but I do know that if you want to 
use OpenAL with the CLR, you'll have to wrap the library so you can 
access the native OpenAL methods from your managed code.

I don't know much more than that, as I haven't had to do it yet myself.  
Maybe someone else can give you more specific help, or you could do some 
Google searching on using native C functions from managed C++

--"J"



Ümit Uzun wrote:
> Hi All,
>
> I have an application which had created with MFC before and now I want 
> to upgrade it with new OpenAL 1.1 version and Windows Form. I have 
> created new C++ WindowsForm project in VS2008 and only add framework 
> and set related include and library configurations. But when I compile 
> I always get
>
> .\OpenAL\framework\Win32\Framework.cpp(200) : error C2664: 
> 'CWaves::GetWaveALBufferFormat' : cannot convert parameter 2 from 
> 'ALenum (__cdecl *)(const ALchar *)' to 'PFNALGETENUMVALUE'
> Address of a function yields __clrcall calling convention in /clr:pure 
> and /clr:safe; consider using __clrcall in target type
>
> error which I can't find anything at internet about. I think it is 
> related about /clr because we have to use CommonLanguageRuntimeSupport 
> beside with MFC we don't need clr.
>
> How can I solve my problem?
> Do you think I can create OpenAL based application which uses 
> framework like before with Windows Form or not?
>
> Regards.
>
> Ümit Uzun



More information about the Openal mailing list