#include "apdefap.h"
int gscAction( void )
{
#pragma option(mbcs)
// WINCC:TAGNAME_SECTION_START
// syntax: #define TagNameInAction "DMTagName"
// next TagID : 1
// WINCC:TAGNAME_SECTION_END
// WINCC:PICNAME_SECTION_START
// syntax: #define PicNameInAction "PictureName"
// next PicID : 1
// WINCC:PICNAME_SECTION_END
#pragma code("Winmm.dll")
VOID WINAPI PlaySoundA(char* pszSound,char* hmode,DWORD dwflag);
#pragma code()
int iMusicNumber;
char charIn[3];
char *P1,*P2;
char char1[20]="E:\\AndonMusic\\";
char char2[20]=".wav";
iMusicNumber=GetTagDWord("MusicPlay"); //Return-Type: DWORD
printf("%dn",iMusicNumber);
sprintf(charIn,"%d",iMusicNumber);
P1=strcat(char1,charIn);
P2=strcat(P1,char2);
printf("%sn",P2);
// PlaySoundA(P2,NULL,1);
PlaySoundA(P2,NULL,3);
return 0;
}