Module Dll.pkg
*************************************************************************
*
* Copyright (c) 1997 Data Access Corporation, Miami Florida,
* All rights reserved.
* DataFlex is a registered trademark of Data Access Corporation.
*
*************************************************************************
*
* Module Name:
* DLL.PKG
*
* Creator:
* Data Access Corporation
*
* Purpose:
* Define the commands and replacements needed to call external
* function in Dynamic Link Libraies.
*
* Modifications:
* JVH - Apr 30, 1999
* Changed Pointer, DWord & Handle types from Number to Integer. They
* should always have been this way. Now we can use the Handle type
* to store Object ID's.
* Previously we defined the pointer data type as a DataFlex number.
* This was a flag that will tell the DLL calling code that the passed parameter
* is a pointer and should be placed on the stack as a 4 byte value. (no longer done)
* JJT: 3/28/2006 - moved the alias datatypes (handle, pointer, dword, void_type) and the
* external function calls to fmac.
*
*************************************************************************
Define the sizes of the known data types
Dll.pkg (view source)- TYPE
- END_TYPE
- FIELD
- Element
- String
DWORDtoBytes(Integer aDWORD)
Since DF allows the imbedding of binary zeros in strings, strings
passed back to DF (via reference pointers) often need to be sized
based on the position of the zero terminator. This function will
a valid DF string from a 'C' string.
- String
SHORTtoBytes(Integer aSHORT)
- Integer
BytesToSHORT(String Buffer Integer Offset)
- Integer
in1 - Integer
in2
- Integer
BytesToDWORD(String Buffer Integer Offset)
- Integer
in1 - Integer
in2 - Integer
in3 - Integer
in4
- String
CVTtoBytes(Integer iValue Integer Offset Integer DSize String Host)
- String
Buff
- Integer
BytestoCVT(String sValue Integer Offset Integer DSize)
- Integer
iValue
- String
StringtoBytes(String sValue Integer Offset Integer DSize String Host)
- String
Buff - Integer
Len
- Integer
MemoryGetByte(Integer Buffer Integer Offset)
Memory access functions without strings.
- Integer
in1
- Integer
MemoryGetWord(Integer Buffer Integer Offset)
- Integer
in1
- Integer
MemoryGetDWORD(Integer Buffer Integer Offset)
- Integer
in1
MemoryGetField(Integer pSource Integer pDest Integer iOffset Integer iSize)
- Boolean
bOk
MemoryPutByte(Integer iValue Integer Offset integer Host)
- Integer
in1
MemoryPutWord(Integer iValue Integer Offset integer Host)
- Integer
in1
MemoryPutDWord(Integer iValue Integer Offset integer Host)
- Integer
in1
MemoryPutField(Integer pSource Integer pDest Integer iOffset Integer iSize)
- Boolean
bOk
- STOREFIELD
Requires that value is of the correct data type
value to dest at address
- PUT
value to dest at address
- PUT_STRING
value to dest at address
- GETBUFF
From Buff at address to value
- RETRIEVEFIELD
Requires that destination is of the correct data type
value to dest at address
- GETBUFF_STRING
From Buff at address to value
- FILLTYPE
- ZEROTYPE
- ZEROSTRING
- OFFSET_OF_FIELD
- SIZE_OF_FIELD
References (15):
Field References (0):
Module | Containing Symbol | Line |
---|