Gavin,
First check if the error you have is something to do with the error shown in
http://support.microsoft.com/default.aspx?scid=kb;en-us;183522Next I would consider to use instead of DLL pure VFP and FREE 128C TTF from
http://iqs.fi/en/products/code128.html There is a translation table too for how to make DATA->BARCODE algorithm.
With the TTF you just drop a textbox to your report, choose above font and size. For the correct barcode output then translate your numeric data for the textbox as it is shown in their site.
I have also made VFP function to do the numeric data->barcode metadata translation. Then you can use it like MyGimme128C(cMyNumericData) in your textbox.
AT