Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Issue in migrating from j-integra to Jacob

Help
degarg
2012-07-05
2013-05-20
  • degarg
    degarg
    2012-07-05

    Hi,

    We have a project to migrate from j-integra implementation to Jacob implementation and we're stuck with a few lines of code.

    Our existing j-integra implementation looks like this:

    IDSSObjectInfo objInfo = mstrFolder.item(i);
    IDSSFolderProxy mstrChildFolder = new IDSSFolderProxy(objInfo);
    IDSSFolder mstrFolder = folder.findTypedObjects(EnumDSSObjectType.DssTypeFolder, 0);

    And i converted to the following lines:

    IDSSObjectInfo objInfo = mstrFolder.item(new Variant(i));
    IDSSFolder mstrChildFolder = new IDSSFolder(objInfo);
    IDSSFolder mstrFolder = folder.findTypedObjects(EnumDSSObjectType.DssTypeFolder, 0);

    I get an error at the last line, because "folder" object's dispatch pointer points to IDSSObjectInfo instead of IDSSFolder. Can anyone please tell me how to pass an object to a constructor? I went thru all the help topics already but could not find a solution.

    Thanks!