Hi all,
I try to register the following template code in C9, I got this dictionary access eror and some template have not been register, because of error.
Can some to advise, what I’m doing worng.
Regards
Terry Ho
#TEMPLATE(PLAYWAV, 'Play wav file'),FAMILY('CW20','ABC')
#!
#!------------------------------------------------------------------------
#!
#!
#!-----------------------------------------------------------------
#BOXED(' Play Wave. Files by Robert Stanic ')
#DISPLAY('')
#DISPLAY(' [email protected]')
#DISPLAY(' http://www.crosswinds.net/croatia/~rstanic')
#DISPLAY('')
#BOXED(' Function to play Wave. File')
#DISPLAY('')
#!DISPLAY(' SoundFile=setup0.wav'),AT(40)
#!DISPLAY(' sndPlaySound(SoundFile,1)'),AT(40)
#DISPLAY('')
#ENDBOXED
#ENDBOXED
#!=====================================================================
#AT(%AfterGlobalIncludes),Priority(5000)
LPCSTR EQUATE(CSTRING)
#ENDAT
#!----------------------------------------------------------------
#AT(%GlobalMap),priority(10)
MODULE('Windows.DLL')
OMIT('***',_WIDTH32_)
sndPlaySound(*LPCSTR,UNSIGNED),BOOL,PROC,pascal,raw,NAME('sndPlaySoundA')
***
COMPILE('***',_WIDTH32_)
sndPlaySound(*LPCSTR,UNSIGNED),BOOL,PROC,pascal,raw,NAME('sndPlaySoundA')
***
end
#ENDAT
#!----------------------------------------------------------------
#GLOBALDATA
SoundFile CSTRING(81)
#ENDGLOBALDATA
#!----------------------------------------------------------------
#AT(%Programsetup)
#ENDAT
#!================================================================
#AT(%ProgramProcedures)
!--------------------------------------------------------------------------
#ENDAT