Hi, You do NOT have to use early binding. There is some performance difference between the early and late bindings, but in this case it does not matter.
On the other hand if you use early binding, then your code is complied against a specific version of the type lib/com server. If the COM server (in this case AmiBroker) has a newer version and the COM interface compatibility is broken, than your code is broken as well. You have to recompile it against the new type lib... You don't want this... If you use late binding, the COM interface is "discovered" at run time (by automation interface called dispatch interface). This cause some perf degradation (need additional call at run time), but it is safe if the interface methods keept a minimum level of compatibility (method signature). I did not check but from mailing list I suspect that AB keeps only method signature level compatibility. The COM interfaces are not kept compatible. So in this case late binding is the only good choice. But TJ can shed some light on this for you. Y
