home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
powdde.ocb
< prev
next >
Wrap
Text File
|
1996-01-30
|
7KB
|
137 lines
000010 IDENTIFICATION DIVISION.
000020 CLASS-ID. POWDDE.
000030 ENVIRONMENT DIVISION.
000040 CONFIGURATION SECTION.
000050 SPECIAL-NAMES.
000060 SYMBOLIC CONSTANT IS EXTERNAL
000070**
000080** POW-DDEXXXXXX DEFINE DDE ITEM
000090**
000100* CONSTANT FOR POW-DDELINKSTYLE
000110*
000120 POW-DDEHOTLINK IS 1
000130 POW-DDEWARMLINK IS 2
000140
000150* CONSTANT FOR POW-DDEDATASTYLE
000160*
000170 POW-DDETEXT IS 10
000180 POW-DDEBINARY IS 11
000190
000200* CONSTANT FOR POW-DDECBCALLSTYLE
000210*
000220 POW-DDE1CALL IS 1
000230 POW-DDE2CALL IS 2
000240*
000250 .
000260 CLASS SECTION.
000270 INHERIT POWFUND EXTERNAL. *> âNâëâXîpÅ│é╠ïLÅq
000280 DATA DIVISION.
000290 CLASS SECTION.
000300 01 POW-DDESERVICE PIC X(128).
000305*//for win32:update
000310* 01 POW-DDETOPIC PIC X(128).
000315 01 POW-DDETOPIC PIC X(260).
000320 01 POW-DDEITEM PIC X(128).
000330 01 POW-DDEFORMAT PIC X(32).
000340 01 POW-DDELINKSTYLE PIC S9(4) COMP-5.
000350 01 POW-DDEDATASTYLE PIC S9(4) COMP-5.
000360 01 POW-DDEDATALEN PIC S9(9) COMP-5.
000370 01 POW-DDEDATA PIC X(4096).
000380 01 POW-DDEDATAOFFSET PIC S9(9) COMP-5.
000390 01 POW-DDETIMEOUT PIC S9(9) COMP-5.
000400 01 POW-DDECBCALLSTYLE PIC S9(4) COMP-5.
000410 PROCEDURE DIVISION.
000420 FUNCTION REFERENCE OF POW-DDESERVICE () IS EXTERNAL BY VALUE PIC X(128)
000430 REPLACING NAME BY "XPOWDDEGETSVCNAME" .
000435*//for win32:update
000440* FUNCTION REFERENCE OF POW-DDETOPIC () IS EXTERNAL BY VALUE PIC X(128)
000445 FUNCTION REFERENCE OF POW-DDETOPIC () IS EXTERNAL BY VALUE PIC X(260)
000450 REPLACING NAME BY "XPOWDDEGETTPCNAME" .
000460 FUNCTION REFERENCE OF POW-DDEITEM () IS EXTERNAL BY VALUE PIC X(128)
000470 REPLACING NAME BY "XPOWDDEGETITMNAME" .
000480 FUNCTION REFERENCE OF POW-DDEFORMAT () IS EXTERNAL BY VALUE PIC X(32)
000490 REPLACING NAME BY "XPOWDDEGETFMTNAME" .
000500 FUNCTION REFERENCE OF POW-DDELINKSTYLE () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000510 REPLACING NAME BY "XPOWDDEGETLINKSTYLE" .
000520 FUNCTION REFERENCE OF POW-DDEDATASTYLE () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000530 REPLACING NAME BY "XPOWDDEGETDATASTYLE" .
000540 FUNCTION REFERENCE OF POW-DDEDATAOFFSET () IS EXTERNAL BY VALUE PIC S9(9) COMP-5
000550 REPLACING NAME BY "XPOWDDEGETDATAOFFSET" .
000560 FUNCTION REFERENCE OF POW-DDEDATALEN () IS EXTERNAL BY VALUE PIC S9(9) COMP-5
000570 REPLACING NAME BY "XPOWDDEGETDATALEN" .
000580 FUNCTION REFERENCE OF POW-DDEDATA () IS EXTERNAL BY VALUE PIC X(4096)
000590 REPLACING NAME BY "XPOWDDEGETDATA" .
000600 FUNCTION REFERENCE OF POW-DDETIMEOUT () IS EXTERNAL BY VALUE PIC S9(9) COMP-5
000610 REPLACING NAME BY "XPOWDDEGETTIMEOUT" .
000620 FUNCTION REFERENCE OF POW-DDECBCALLSTYLE () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000630 REPLACING NAME BY "XPOWDDEGETCBACKCALLSTYLE" .
000640 FUNCTION MOVE OF POW-DDESERVICE (BY CONTENT TYPE IS ALPHANUMERIC PIC X(128)) IS EXTERNAL
000650 REPLACING NAME BY "XPOWDDESETSVCNAME" .
000655*//for win32:update
000660* FUNCTION MOVE OF POW-DDETOPIC (BY CONTENT TYPE IS ALPHANUMERIC PIC X(128)) IS EXTERNAL
000665 FUNCTION MOVE OF POW-DDETOPIC (BY CONTENT TYPE IS ALPHANUMERIC PIC X(260)) IS EXTERNAL
000670 REPLACING NAME BY "XPOWDDESETTPCNAME" .
000680 FUNCTION MOVE OF POW-DDEITEM (BY CONTENT TYPE IS ALPHANUMERIC PIC X(128)) IS EXTERNAL
000690 REPLACING NAME BY "XPOWDDESETITMNAME" .
000700 FUNCTION MOVE OF POW-DDEFORMAT (BY CONTENT TYPE IS ALPHANUMERIC PIC X(32)) IS EXTERNAL
000710 REPLACING NAME BY "XPOWDDESETFMTNAME" .
000720 FUNCTION MOVE OF POW-DDELINKSTYLE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000730 REPLACING NAME BY "XPOWDDESETLINKSTYLE" .
000740 FUNCTION MOVE OF POW-DDEDATASTYLE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000750 REPLACING NAME BY "XPOWDDESETDATASTYLE" .
000760 FUNCTION MOVE OF POW-DDEDATAOFFSET (BY VALUE TYPE IS NUMERIC PIC S9(9) COMP-5) IS EXTERNAL
000770 REPLACING NAME BY "XPOWDDESETDATAOFFSET" .
000780 FUNCTION MOVE OF POW-DDETIMEOUT (BY VALUE TYPE IS NUMERIC PIC S9(9) COMP-5) IS EXTERNAL
000790 REPLACING NAME BY "XPOWDDESETTIMEOUT" .
000800 FUNCTION MOVE OF POW-DDECBCALLSTYLE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000810 REPLACING NAME BY "XPOWDDESETCBACKCALLSTYLE" .
000820**
000830** CALL FUNCTIONS
000840**for win32:update by Kim
000845* FUNCTION EXECAPL (BY CONTENT TYPE IS ALPHANUMERIC PIC X(256)
000850 FUNCTION EXECAPL (BY CONTENT TYPE IS ALPHANUMERIC PIC X(520)
000860 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000870 REPLACING NAME BY "XPOWDDEEXEC" .
000880 FUNCTION INITIATEDDE () IS EXTERNAL
000890 REPLACING NAME BY "XPOWDDEINITIATE" .
000900 FUNCTION TERMINATEDDE () IS EXTERNAL
000910 REPLACING NAME BY "XPOWDDETERMINATE" .
000920 FUNCTION EXECUTEDDECMD (BY CONTENT TYPE IS ALPHANUMERIC PIC X(256)) IS EXTERNAL
000930 REPLACING NAME BY "XPOWDDEEXECUTE" .
000940 FUNCTION EXECUTEDDECMD512 (BY CONTENT TYPE IS ALPHANUMERIC PIC X(512)) IS EXTERNAL
000950 REPLACING NAME BY "XPOWDDEEXECUTE512" .
000960 FUNCTION EXECUTEDDECMD1024 (BY CONTENT TYPE IS ALPHANUMERIC PIC X(1024)) IS EXTERNAL
000970 REPLACING NAME BY "XPOWDDEEXECUTE1024" .
000980 FUNCTION EXECUTEDDECMD2048 (BY CONTENT TYPE IS ALPHANUMERIC PIC X(2048)) IS EXTERNAL
000990 REPLACING NAME BY "XPOWDDEEXECUTE2048" .
001000 FUNCTION EXECUTEDDECMD3072 (BY CONTENT TYPE IS ALPHANUMERIC PIC X(3072)) IS EXTERNAL
001010 REPLACING NAME BY "XPOWDDEEXECUTE3072" .
001020 FUNCTION EXECUTEDDECMD4096 (BY CONTENT TYPE IS ALPHANUMERIC PIC X(4096)) IS EXTERNAL
001030 REPLACING NAME BY "XPOWDDEEXECUTE4096" .
001040 FUNCTION EXECUTEDDECMD5120 (BY CONTENT TYPE IS ALPHANUMERIC PIC X(5120)) IS EXTERNAL
001050 REPLACING NAME BY "XPOWDDEEXECUTE5120" .
001060 FUNCTION REQUESTDATA () IS EXTERNAL BY VALUE PIC X(1028)
001070 REPLACING NAME BY "XPOWDDEREQUEST" .
001080 FUNCTION POKEDATA (BY CONTENT TYPE IS ALPHANUMERIC PIC X(260)) IS EXTERNAL
001090 REPLACING NAME BY "XPOWDDEPOKE" .
001110 FUNCTION POKEDATA1 (BY CONTENT TYPE IS ALPHANUMERIC PIC X(1028)) IS EXTERNAL
001120 REPLACING NAME BY "XPOWDDEPOKE1" .
001130 FUNCTION POKEDATA4 (BY CONTENT TYPE IS ALPHANUMERIC PIC X(4100)) IS EXTERNAL
001140 REPLACING NAME BY "XPOWDDEPOKE4" .
001150 FUNCTION POKEDATA8 (BY CONTENT TYPE IS ALPHANUMERIC PIC X(8196)) IS EXTERNAL
001160 REPLACING NAME BY "XPOWDDEPOKE8" .
001170 FUNCTION ADVISEDDE () IS EXTERNAL
001180 REPLACING NAME BY "XPOWDDEADVISE" .
001190 FUNCTION UNADVISEDDE () IS EXTERNAL
001200 REPLACING NAME BY "XPOWDDEUNADVISE" .
001210 FUNCTION OPENDDE () IS EXTERNAL
001220 REPLACING NAME BY "XPOWDDEOPEN" .
001230 FUNCTION CLOSEDDE () IS EXTERNAL
001240 REPLACING NAME BY "XPOWDDECLOSE" .
001250 FUNCTION GETHOTDATA () IS EXTERNAL BY VALUE PIC X(1028)
001260 REPLACING NAME BY "XPOWDDEHOTDATA" .
001270 FUNCTION CHANGEDDEITEM (BY CONTENT TYPE IS ALPHANUMERIC PIC X(128)
001280 BY CONTENT TYPE IS ALPHANUMERIC PIC X(32)) IS EXTERNAL
001290 REPLACING NAME BY "XPOWDDECHANGEITEM" .
001300 END CLASS POWDDE.