I copied the code starting:
*--------------------------------------------
* EnumPrinterFormClass.prg
DEFINE CLASS EnumForms AS Custom
HIDDEN hHeap, nInch2mm, nCm2mm, nCoefficient
to EnumPrinterFormClass.prg and placed it in the Code in the project, when I built it, I got some error:
Compiling c:\myproj\enumprinterformclass.prg
DEFINE CLASS EnumForms AS Custom
Error in line 228: Nesting error.
HIDDEN hHeap, nInch2mm, nCm2mm, nCoefficient
Error in line 229: Statement is only valid within a class definition.
STRING @lpstring1, INTEGER lpstring2
Error in line 470: Unrecognized command verb.
DECLARE INTEGER HeapFree IN Win32API INTEGER hHeap, INTEGER dwFlags, INTEGER lpMem
Error in line 472: Statement is not in a procedure.
DECLARE HeapDestroy IN Win32API INTEGER hHeap
Error in line 474: Statement is not in a procedure.
DECLARE RtlMoveMemory IN WIN32API AS RtlCopy Long @Dest, Long Source, Long Length
Error in line 476: Statement is not in a procedure.
DECLARE lstrcpy IN Win32API STRING @lpstring1, INTEGER lpstring2
Error in line 478: Statement is not in a procedure.
DECLARE INTEGER GetLastError IN kernel32
Error in line 479: Statement is not in a procedure.
Declare Integer FormatMessage In kernel32.dll Integer dwFlags, String @lpSource, Integer dwMessageId, Integer dwLanguageId, String @lpBuffer, Integer nSize, Integer Arguments
Error in line 483: Statement is not in a procedure.
ENDPROC
Error in line 485: Nesting error.
ENDDEFINE
Error in line 487: Statement is only valid within a class definition.
am I missing something?
thanks for the help.
regards,
Jerry
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement