Template register error - Dictionary access

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

Hi Terry,

There is no actual template type declared in the file.
The Template set itself is created with #TEMPLATE but you need a #EXCEPTION or #GROUP or #CODE or #SYSTEM or #UTILITY or #PROCEDURE declared to do the actual work and allow you to use it in APP.

Rick

HI Rick,

 Thanks your advise. 

 I will try to fix it. But don't know what should I add in it.

 Regards

Terry Ho