| Home | Previous Lesson: Saving the OLE Control as Another File Next Lesson: Getting Image From the Database to OLE Control |
Calling LinkTo() allows you to link the OLE object to another object.
String
lFileNameWithFullPath, lFileName lResult = GetFileOpenName(
"Select Document to " + & If lResult <> 1 Then Return lResult = ole_1.LinkTo( lFileNameWithFullPath ) If lResult <> 0 Then |
To see it in the action, run the application. Select "Module/OLE 2.0 Control Examples" option from the menu. Open a OLE Storage file in the OLE Control by clicking on the "Open SubStorage" CommandButton and click on the "Link" CommandButton.
| Home | Previous Lesson: Saving the OLE Control as Another File Next Lesson: Getting Image From the Database to OLE Control |