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);
};
}
No, you have to wrap it. Additionally, your code has some errors, such as
externalversusextern(though that was theoretical anyway) andpublicbefore your class.