Reply

Using WhereUsedCriteria and FindWhereUsed in C++

[ Edited ]

Hello all,

 

I have created macro in VB.net for copy job using revision manager 'WhereUsedCriteria' and 'FindWhereUsed'

 

The code is as given below:

 

[b]objApplication.WhereUsedCriteria("*.dft", False) = existingJob

objRevDft = objApplication.FindWhereUsed(varstrPsm)[/b]

 

But the same logic is not working in c++. Please help me in using 'WhereUsedCriteria' and 'FindWhereUsed' in C++.

 

Thank You

 

Posted by: Shruthi M
Post date: 2/13/2012 9:58:16 PM

2 REPLIES

Re: Using WhereUsedCriteria and FindWhereUsed in C++

[ Edited ]

Supposing existingJob is a string containing the start folder for your search and varstrPsm is a _variant_t containg the string of the filename to look for, the following lines should do what you want.

 

objApplication.PutWhereUsedCriteria("*.dft", VARIANT_FALSE, existingJob);

objRevDft = objApplication.FindWhereUsed(varstrPsm);

 

Posted by: Martin Bernhard
Post date: 2/17/2012 2:00:11 PM

Re: Using WhereUsedCriteria and FindWhereUsed in C++

[ Edited ]

Thank You Martin,

 

Your code worked. Smiley Happy

 

Posted by: Shruthi M
Post date: 2/19/2012 11:36:34 PM