calling a DLL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Amirallia

    calling a DLL

    Hello,

    I develop with VS.net 2005 and would like to call a DLL in my c#
    project. I created this DLL with a development tool (CLARION).

    I declare my dll :

    [DllImport("faq. dll")]
    extern public static string ps_GetAlpha_Tri (int x);


    When I call the ps_GetAlpha_Tri function I've got the message : Entry
    Point not Found

    Have you any idea? Do I compile my DLL in another way?

    Thanks in advance


  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: calling a DLL

    On May 29, 6:08 am, Amirallia <b...@bluewin.c hwrote:
    Hello,
    >
    I develop with VS.net 2005 and would like to call a DLL in my c#
    project. I created this DLL with a development tool (CLARION).
    >
    I declare my dll :
    >
    [DllImport("faq. dll")]
    extern public static string ps_GetAlpha_Tri (int x);
    >
    When I call the ps_GetAlpha_Tri function I've got the message : Entry
    Point not Found
    >
    Have you any idea? Do I compile my DLL in another way?
    >
    Thanks in advance
    You use P/invoke to call a win32 native dll, I bet your dll is a COM,
    if this is the case try by Adding a reference, there is a TAB for COM
    and do a browse

    Comment

    Working...