I have written my code in c#, and build dll. When I m creating object in vfp, Im getting error.
I am using below code in vfp
SET LIBRARY TO bt_print.tlb
hh=CREATEOBJECT("bt_print.bt")
My c# code is
I have checked “Register for COM interop” check box.
Please correct me , what i am doing wrong.
Thanks in advance.
Checkmark the “Make the Assembly COM-Visible” – Project Settings, Application Page, Assembly Information.
In C#, add the ClassInterface and ProgId.
In VFP, use the NEWOBJECT() function.