B
Bucky Pollard
I am calling a PVCS DLL function from C#. According to the documentation, I
can pass NULL to any output parameter that I do not want to receive data
back for. How do I do this? Every thing I've tried results in a compiler
error.
TIA:
Bucky Pollard
My declaration is below. I am only looking for one piece of information, so
ultimately I'd like to call the function something like this.
PvcsGetArchiveInfo( ARCHVIE_NOT_OPEN, "c:\\foo.c,v", null, null, null, null,
null, null, null, null, ref MyInt, null, null, null, null, null, null,
MyFlags)
[DllImport("vmwfdtk")]
public static extern int
PvcsGetArchiveInfoVB1( long /*ARCHIVEHANDLE*/ hArchive, /* Input */
string fileName, /* Input */
ref int revcnt, /* Output */
ref int lockers, /* Output */
StringBuilder archive, /* Output */
StringBuilder workfile, /* Output */
StringBuilder owner, /* Output */
StringBuilder access, /* Output */
StringBuilder create_time, /* Output */
ref int attribute_chk_lock, /* Output */
ref int attribute_wrt_prot, /* Output */
ref int attribute_excl_lock, /* Output */
ref int attribute_exp_keys, /* Output */
ref int attribute_translate, /* Output */
ref int attribute_cmprs_delta, /* Output */
ref int attribute_cmprs_text, /* Output */
long /*PVCS_FLAGS*/ flags);
If this helps, here is C Prototype:
PvcsGetArchiveInfoVB1(ARCHIVEHANDLE hArchive, /* Input */
unsigned char * fileName, /* Input */
unsigned short * revcnt, /* Output */
unsigned short * lockers, /* Output */
unsigned char * archive, /* Output */
unsigned char * workfile, /* Output */
unsigned char * owner, /* Output */
unsigned char * access, /* Output */
unsigned char * create_time, /* Output */
unsigned short * attribute_chk_lock, /* Output */
unsigned short * attribute_wrt_prot, /* Output */
unsigned short * attribute_excl_lock, /* Output */
unsigned short * attribute_exp_keys, /* Output */
unsigned short * attribute_translate, /* Output */
unsigned short * attribute_cmprs_delta, /* Output */
unsigned short * attribute_cmprs_text, /* Output */
PVCS_FLAGS flags) /* Input */
can pass NULL to any output parameter that I do not want to receive data
back for. How do I do this? Every thing I've tried results in a compiler
error.
TIA:
Bucky Pollard
My declaration is below. I am only looking for one piece of information, so
ultimately I'd like to call the function something like this.
PvcsGetArchiveInfo( ARCHVIE_NOT_OPEN, "c:\\foo.c,v", null, null, null, null,
null, null, null, null, ref MyInt, null, null, null, null, null, null,
MyFlags)
[DllImport("vmwfdtk")]
public static extern int
PvcsGetArchiveInfoVB1( long /*ARCHIVEHANDLE*/ hArchive, /* Input */
string fileName, /* Input */
ref int revcnt, /* Output */
ref int lockers, /* Output */
StringBuilder archive, /* Output */
StringBuilder workfile, /* Output */
StringBuilder owner, /* Output */
StringBuilder access, /* Output */
StringBuilder create_time, /* Output */
ref int attribute_chk_lock, /* Output */
ref int attribute_wrt_prot, /* Output */
ref int attribute_excl_lock, /* Output */
ref int attribute_exp_keys, /* Output */
ref int attribute_translate, /* Output */
ref int attribute_cmprs_delta, /* Output */
ref int attribute_cmprs_text, /* Output */
long /*PVCS_FLAGS*/ flags);
If this helps, here is C Prototype:
PvcsGetArchiveInfoVB1(ARCHIVEHANDLE hArchive, /* Input */
unsigned char * fileName, /* Input */
unsigned short * revcnt, /* Output */
unsigned short * lockers, /* Output */
unsigned char * archive, /* Output */
unsigned char * workfile, /* Output */
unsigned char * owner, /* Output */
unsigned char * access, /* Output */
unsigned char * create_time, /* Output */
unsigned short * attribute_chk_lock, /* Output */
unsigned short * attribute_wrt_prot, /* Output */
unsigned short * attribute_excl_lock, /* Output */
unsigned short * attribute_exp_keys, /* Output */
unsigned short * attribute_translate, /* Output */
unsigned short * attribute_cmprs_delta, /* Output */
unsigned short * attribute_cmprs_text, /* Output */
PVCS_FLAGS flags) /* Input */