My C # program accesses SAP through Nco3 (sapnco.dll). This program should also work with Delphi. Some of my methods return types from the sapnco.dll file:
public void IRfcTable table(...) { ... }
in Delphi this method is displayed as
function table(...): IUnknown { ... }
I believe this IUnknown is that my TLB does not include the sapnco.dll file. I tried "Insert Interop Types = true" in Visual Studio, but then this error occurs:
Error Interoptypen aus Assembly "C: \ ..." kΓΆnnen nicht eingebettet werden, weil das ImportedFromTypeLibAttribute-Attribut oder das PrimaryInteropAssemblyAttribute-Attribut fehlt. with: ... \ sapnco.dll
(Interop types cannot be implemented because some attributes are missing).
Is it correct? If so, where to put these attributes?
source share