Can I link a member function like this in some way? redeclaring the method as a member and get it call the Mmsystem.h method to not have to wrap it?
#include <windows.h>
#include <Mmsystem.h>
namespace SoundLib {
public class CWave
{
public:
// WaveIn call
external UINT waveOutGetNumDevs(VOID);
};
}
struct A { static void f() __attribute__((alias("f"))); }; extern "C" void f() { std::cout << "hello" << std::endl; } int main() { f(); A::f(); }
and prints "hello" two times. – Johannes Schaub - litb Dec 30 '09 at 0:43