TerInsertOleObject
Insert an OLE object into text.
int TerInsertOleObject(hWnd, ProgName)
HWND hWnd; | Editor window to access |
LPBYTE ProgName; | Program name of the server as found in the registration database. Examples: excel.exe, c:\excel\excel.exe or 123w.exe |
Description: This function invokes the specified OLE server to allow the user to create an object. The new object is placed at the current cursor location.
Return Value: This function returns the object id of the inserted object. A value of 0 indicates an error condition.