Interoperability w/ VFP6 - error



I've created and registered (regsvr32) a COM dll using the supplied GenCOM tool in which N4700060 (EDI Batch Number, Get Next Number) is included.
I want to use the EDBTGetNextNumber function in my VFP program, but just can't get it to work.
Loading the DLL works fine using the DECLARE command, but when I refer to the function, VFP gives me the following error message:

Cannot find the entry point EDBTGetNextNumber in the DLL

I use the created DLL just like I would any other, but obviously this isn't enough. Has anyone got some experience on interoperability using Visual Foxpro? Any help is greatly appreciated.

Thanks in advance,