Ken Hood ([log in to unmask]) wrote: : I cannot get this to work, because any attempt at calling a function : in mainprog results in an unresolved external. Or you can pass pointer to the function you want to call to your XL.