9.0
277
DdePoke "appName", "topic", "item", "value"
Argument Description
appName The name of the DDE application receiving the command. The application must be
running.
topic The name of the topic receiving the command.
item An item within the specified DDE topic.
value A string containing the data to send to the specified item.
Example
This example sends the string "Total: $1,216" to the second row and third column of the Expenses worksheet in
Microsoft Excel.
DDEPoke "Excel", "Expenses", "R2C3", "Total: $1,216"
DllCall
Calls a function in an application's dynamic-link library (DLL). There are three forms of this command. The first
does not return a value. The second is a function that returns an integer (LONG/DWORD) value. The third is a
function that returns a string value.
In the first two forms, the DLL function must be a PASCAL function that takes a single LPCSTR (long pointer to a
constant string) argument. In the third form, the DLL function must take three arguments, an LPCSTR, a pointer
to a BYTE buffer, and an integer.
C or C++ DLL functions called by the first form of DllCall must have prototypes equivalent to:
extern "C" __declspec(dllexport) void __stdcall fn(LPCTSTR szParam );
C or C++ DLL functions called by the second form of DllCall must have prototypes equivalent to:
extern "C" __declspec(dllexport) dword __stdcall fn(LPCTSTR szParam );
C or C++ DLL functions called by the third form of DllCall must have prototypes equivalent to:
extern "C" __declspec(dllexport) void __stdcall fn(LPCTSTR szParam , BYTE *pBuffer,
int cMax);
Syntax
DllCall "libName", "function", "argString"
integerVariable& = DllCall ("libName", "function", "argString")
stringVariable$ = DllCall$ ("libName", "function", "argString", "maxStringLength")
Argument Description
libName The name of the .DLL file to be called. The DllCall command works even if the
dynamic-link file does not have a .DLL extension. The value can be an
expression.










