hi all,
iam trying to implement a XACT_NOTIFICATION_CALLBACK function in a c++ dll
problem is xact is not calling this function .
when i implement the same mechanisam in win32 (exe) it is working perfectly .
i dont know what is the problem is .
any methods or code samples are wel come
i dont know whether it is RIGHT or WRONG to implement this notification mechanisam
in dll
one more thing
when i try to click on some of the controls in the XACT IDE it is giving an
error like
OBJECT INITIALIZATION NOT FOUND
what this mean

can i implement XACT_CALLBACK_NOTIFICATION function in a c++ dll
uSam
It should work fine to implement your XACT callbacks (as well as all your other XACT code) in either C or C++, in a DLL or in an EXE, in a win32 app or a console app, etc.
Without more information I can't tell what specific problem you are having, but here's an example of roughly how to do this:
void __stdcall XactCallback(const XACT_NOTIFICATION*)
{
printf("Entered XactCallback.\n");
}
IXACTEngine *pEngine = [...];
XACT_RUNTIME_PARAMETERS XactParams = [...];
XactParams.fnNotificationCallback = XactCallback;
HRESULT hr = pEngine->Initialize(&XactParams);
Hope that helps.
Regarding you second problem, it sounds like a bad XACT installation - perhaps the wrong CLR I'll ask around and let you know if we come up with any ideas. Meanwhile, if you send us full details of your OS, dev tools, managed runtime, etc (including versions), and tell us the exact error you're seeing, that would probably help.
Dugan Porter - Game Audio Team - Microsoft
This posting is provided "as is" with no warranties, and confers no rightsTheDigitHead
thanks a lot,
first sorry for the delay, because i have done the job i.e putting all the code into dll
u asked my sys configuration . these are my system config
os : windows xp sp2
directX : december 2005
compiler : visual studio 8.0
the ERROR is :
when ever iam pressing some controls (i.e combo boxes in the property window)
a message box is displaying like
OBJECT INITILIZATION FAILED . I know this is clr error
any way i developed all of my code using unmanaged vc++