Hi, everybody!
In Microsoft Dynamics AX, we can call an external dll file from x++ code.
In this example, we will use the Beep function of kernel32.dll. This function needs two parameters:
BOOL Beep(DWORD dwFreq,DWORD dwDuration);
The AX Code is
In Microsoft Dynamics AX, we can call an external dll file from x++ code.
In this example, we will use the Beep function of kernel32.dll. This function needs two parameters:
BOOL Beep(DWORD dwFreq,DWORD dwDuration);
The AX Code is
static void DASExtDLL(Args _args)
{
DLL winApiDLL = new DLL('kernel32');
DLLFunction Function = new DLLFunction(winApiDLL,'Beep');
Function.arg(extTypes::DWord,extTypes::DWord);
Function.call(400,1000);
}
Aucun commentaire:
Enregistrer un commentaire