Hello Ashish,
you're getting confused between regular dlls and COM servers, when you create a dll in VFP it is a 'COM Server', I'm not sure of the VB syntax but it will along these lines
Dim oVFP As Object
Set oVFP = CreateObject('yourprg.yourcomserver')
oVFP is now your object reference to the COM server, let me know if you need more help
regards
Pete Kane
Regards,
Peter J. Kane
Pete