Using PInvoke / DllImport fails

  • Visual Studio 2008 programming / .Net 3.5 / Destination platform: WIN CE 6.0


    The following code results to an error ...

    Code
    1. [DllImport(@"FFSDISK\SmtpClient\smtp-client.dll")]
    2. public static extern IntPtr SMTP_Init();


    ... when the function SMTP_Init() is called on running PicoCom4 application. ...


    Error Message is:
    "System.MissingMethodException" ist in PicoCom4_ProjectTest.exe aufgetreten.
    Zusätzliche Informationen: Can't find PInvoke DLL 'FFSDISK\SmtpClient\smtp-client.dll'.


    ... but I'm sure, that the file ist there.


    Can anybody help?

  • Is your smtp client DLL accessiable generally? have you already tried to import the DLL from C/C++?


    BTW:
    We are currently working on a SMTP client implentation for our boards, that will released within this week for PicoCOM4. This may also include a SSH server.

    Software developer, F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.