S
senimu
Hi there,I'm trying to call from managed C++ code very simple API
functionBOOL Beep( DWORD dwFreq, DWORD dwDuration );Something like
this:namespace DocImage { public __gc class cBeep { public:
static bool myBeep(unsigned long iFreq, unsigned long iDur) {
Beep(iFreq, iDur); return true; } };//EOF Class}This is
the error i'm getting:c:\src\VC7\Managed\snmKiosk\DocImage\Utils.h(10):
error C3861: 'Beep': identifier not found, even with argument-dependent
lookupC:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinBase.h(3657): error C2365: 'Beep' :
redefinition; previous definition was a 'formerly unknown identifier'
What's wrong am i doing?
functionBOOL Beep( DWORD dwFreq, DWORD dwDuration );Something like
this:namespace DocImage { public __gc class cBeep { public:
static bool myBeep(unsigned long iFreq, unsigned long iDur) {
Beep(iFreq, iDur); return true; } };//EOF Class}This is
the error i'm getting:c:\src\VC7\Managed\snmKiosk\DocImage\Utils.h(10):
error C3861: 'Beep': identifier not found, even with argument-dependent
lookupC:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinBase.h(3657): error C2365: 'Beep' :
redefinition; previous definition was a 'formerly unknown identifier'
What's wrong am i doing?