Mega Code Archive

 
Categories / Delphi / Examples
 

Sending a file via dcom

To send a file through DCOM (not the file's name, but the actual content), you may read it in a variant array; this datatype is OLEVariant compatible. You should call VarArrayLock()/ VarArrayUnlock() to improve speed.