IPWorks OpenPGP 2020 C++ Edition

Questions / Feedback?

SourceFile Property

File to be compressed into a self-decrypting archive.

Syntax

ANSI (Cross Platform)
char* GetSourceFile();
int SetSourceFile(const char* lpszSourceFile); Unicode (Windows) LPWSTR GetSourceFile();
INT SetSourceFile(LPCWSTR lpszSourceFile);
@property (nonatomic,readwrite,assign,getter=sourceFile,setter=setSourceFile:) NSString* sourceFile;
- (NSString*)sourceFile;
- (void)setSourceFile:(NSString*)newSourceFile;
#define PID_SDA_SOURCEFILE 10

IPWORKSOPENPGP_EXTERNAL void* IPWORKSOPENPGP_CALL IPWorksOpenPGP_SDA_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSOPENPGP_EXTERNAL int IPWORKSOPENPGP_CALL IPWorksOpenPGP_SDA_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property specifies the name of a single file to be compressed. When both SourceFile and SourceDirectory are set, only SourceDirectory is used.

Example (Creating a Self-Decrypting Archive)


class.ArchiveFile = "c:\test.exe"
class.RecurseSubdirectories = true
class.SourceDirectory = "c:\foo\"
class.CaptionText = "Testing SDA"
class.BannerText = "Press continue to decompress the archive."
class.CreateSDA()

class.ArchiveFile = "c:\test.exe"
class.SourceFile = "c:\foo\bar.dat"
class.CaptionText = "Testing SDA"
class.BannerText = "Press continue to decompress the archive."
class.CreateSDA()

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks OpenPGP 2020 C++ Edition - Version 20.0 [Build 8249]