Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7546915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:19:19+00:00 2026-05-30T09:19:19+00:00

My C# program accesses SAP via Nco3 (sapnco.dll). This program also needs to work

  • 0

My C# program accesses SAP via Nco3 (sapnco.dll). This program also needs to work with Delphi. Some of my methods return types from the sapnco.dll:

public void IRfcTable table(...) { ... }

in Delphi this method shows up as

function table(...): IUnknown { ... }

I suppose this IUnknown is because my TLB does not include the sapnco.dll. I tried "Embed 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. c:…\sapnco.dll

(Interop Types could not be embedded because some attributes are missing).

Is this the right way? If so, where to put these attributes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:19:20+00:00Added an answer on May 30, 2026 at 9:19 am

    sapnco.dll is a .NET dll, so it is not exposed to COM, so you cannot directly use this types in a COM environment. The solution to your problem is to create a library to wrap the sapnco.dll in COM exposed classes:

    As an example:

    [ComVisible(true)]
    public interface IComRfcTable
    {
        public void DoSomething();
    }
    
    [ComVisible(true)]
    public class ComRfcTable : IComRfcTable
    {
        private _rfcTable; // object to wrap
        public ComRfcTable(IRfcTable rfcTable)
        {
            _rfcTable = rfcTable
        }
    
        public void DoSomething()
        {
            _rfcTable.DoSomething();
        }
    }
    

    Then your method must be implemented like:

     public IComRfcTable table(...) { ... }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this program that at one point accesses os.getcwd(), but some times, depending
Most program languages have some kind of exception handling; some languages have return codes,
I'm running a program that creates a table and then inserts some data. This
I'm working on a program that accesses StarTeam using the StarTeam SDK for .NET.
I have a Windows Mobile program that accesses an attached device through a third-party
I created a JApplet using Netbeans 6.5.1 that accesses a database. When the program
I'm working with a program that accesses an MS-Access DB. The problem is that
Currently I sell a program, that accesses my webpage. The program is HWID (Hard
I would need to create a php file that will do some work on
My problem: I have a program in Flex3 that accesses a server. The program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.