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 9021661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:18:31+00:00 2026-06-16T05:18:31+00:00

I am coding an application in c# that makes use of a third-party dll

  • 0

I am coding an application in c# that makes use of a third-party dll coded in cpp. I make several calls to the dll, and they all are working except for one.

My code makes the call in the following manner:

return ObjectGetStringEntryID(pObject, strEntryID, strEntryID.Capacity);

[DllImport(EXTERNAL_DLL, CharSet = DefaultCharSet)]
protected static extern bool ObjectGetStringEntryID(IntPtr pObject, StringBuilder strEntryID, int nMaxLength);

Since I have access to the source code, I know it contains the following definition:

BOOL ObjectGetStringEntryID(CMAPIObject* pObject, LPTSTR szEntryID, int nMaxLength)

As stated before, I make several other calls to this dll using the same format, and they are successful.

Consequently, I have the following setting if it helps:

public const CharSet DefaultCharSet = CharSet.Ansi;

Does anyone see what I may be doing wrong in my call? From the same class, I call:

MessageGetSubject(pObject, strSubject, strSubject.Capacity);

[DllImport(EXTERNAL_DLL, CharSet = DefaultCharSet)]
protected static extern void MessageGetSubject(IntPtr pMessage, StringBuilder strSubject, int nMaxLength);

Which matches up to the method:

void MessageGetSubject(CMAPIMessage* pMessage, LPTSTR szSubject, int nMaxLength)

This comes from the same classes in both c# and cpp as the call that is not working, but it works just fine. There does not appear to be any difference in how it is called, so they both should either work or not work.

If anyone has any insight into what I am doing wrong, I would greatly appreciate the assistance.

  • 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-06-16T05:18:32+00:00Added an answer on June 16, 2026 at 5:18 am

    EntryPointNotFoundException means that the symbol ObjectGetStringEntryID is not exported by the DLL. Check the export file (or __declspec declaration) to make sure it is exported, and by that name.

    This may help: Exporting from a DLL

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

Sidebar

Related Questions

I'm currently designing/reworking the databinding part of an application that makes heavy use of
I am coding an application that needs to send audio files, in mp3 or
I'm coding an application that needs to select an area of the screen. I
assume that i start coding an application from scratch, is the best way to
I've been coding a little application in jQuery / JavaScript that works fine in
I am planning to make a Mac application that works like Google Images for
I am working on a Silverlight application which makes an extensive use of Prism,
I am trying to make the color scheme of my application dynamic so that
I have an UI application that serves several functions (<800KB). I wanted to allow
I have a swing application that uses some datas coming from an external mysql

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.