Does anyone have some sample code to add an attachment using C API?
I did something like this and it didn't work:

        ARAttachStruct attach;
        attach.loc.locType= AR_LOC_FILENAME;
        attach.loc.u.filename = "c:\\test_attachment.txt";
        attach.name = "test_attachment.txt";

        fieldvalueList.fieldValueList[fieldnum].fieldId         = 
536870924;
        fieldvalueList.fieldValueList[fieldnum].value.dataType  =
AR_DATA_TYPE_ATTACH;
        fieldvalueList.fieldValueList[fieldnum].value.u.attachVal = &attach;


Thanks



-- 
View this message in context: 
http://www.nabble.com/adding-attachment-using-C-API-tf2272826.html#a6310156
Sent from the ARS (Action Request System) forum at Nabble.com.

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

Reply via email to