PDA

View Full Version : IAgent2 class missing



JonathanB
06-14-2002, 01:45 PM
I am trying to integrate an vc++ app with the Update Service using the COM interface. The docs say I'm supposed to instantiate an IAgent2 class and call an AppUpdate method.

After importing the Agent.exe symbols, I do not have an IAgent2 class. There's an IAgent class, but no AppUpdate method.

This is the line I use to do the import. I've placed it in a namespace because the IMessage symbols conflict w/ the MAPI API. I am accounting for this namespace when I try to instantiate IAgent2.

#import "C:\Program Files\InstallShield\SetupFiles\ISX353FullEvalNew\program files\InstallShield\InstallShield Express\System\Agent.exe" rename_namespace("UpdateService") raw_interfaces_only

Any help would be appreciated.

Thanks,
Jon

hlogmans
06-17-2002, 02:35 AM
The problem is they defined two interfaces: IAgent and IAgent2. In Delphi, only the IAgent interface is associated with the Agent object. Therefore I cannot use static links, i must use the dynamic interface method.

They should fix that. Either merge the two interfaces, or make the standard interface IAgent2.