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

  • Home
  • SEARCH
  • 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 291701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:06:46+00:00 2026-05-12T06:06:46+00:00

I am attempting to write a C# application connecting to a Cognos TM1 datastore

  • 0

I am attempting to write a C# application connecting to a Cognos TM1 datastore using the tm1api.dll. I have created a basic shell project in VS C# Express 2008, and added the following code

public partial class MainPortal : Window
{

    [System.Runtime.InteropServices.DllImport(@"C:\\Program Files\\Cognos\\TM1\\bin\\tm1api.dll", EntryPoint="TM1APIInitialise")]
    public static extern void TM1APIInitialise();

    public MainPortal()
    {
        InitializeComponent();

        TM1APIInitialise();
    }
}

I can build this project with no errors, but when running I get the following error:

“Unable to find an entry point named ‘TM1APIInitialise’ in DLL ‘C:\\Program Files\\Cognos\\TM1\\bin\\tm1api.dll’.”

I have used ‘dumpbin /exports tm1api.dll’ to determine its entry point:

    101   5D 00008360 TM1APIFinalize

Now I am at a loss, it seems to have an entry point but does recognize it. Can anyone point me in the right direction?

PS. I am completely new to C#, so I may be making extremely basic mistakes 🙂

  • 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-12T06:06:47+00:00Added an answer on May 12, 2026 at 6:06 am

    Thanks JP and ArsenMkrt, your answers both lead to me working out the issue.

    I had it defined as TM1APIInitialise and it should have been TM1APIInitialize.

    Note the ‘s’ instead of the ‘z’ (damn American spelling) :).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to write an application that uses libCurl to post soap requests
I have been attempting to write some routines to read RSS and ATOM feeds
I've written a web service using ASP.NET (in C#) and I'm attempting to write
I am attempting to write an application that harvests information from a logged-in Facebook
I'm attempting to write a Windows Phone 7 application which needs to connect to
I've been attempting to write a Lisp macro that would perfom the equivalent of
I'm attempting to write a Python C extension that reads packed binary data (it
I am attempting to write a one-line Perl script that will toggle a line
I am attempting to write a component in C# to be consumed by classic
I am attempting to write a .NET component. The component will be dropped onto

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.