You must Sign In to post a response.
  • Category: .NET

    Dll problem ..plz help

    hello everyone


    how to call a Dll in windows form...i m writing this code but it is giving error
    End of statement expectd

    using System.Runtime.InteropServices;
    private void button3_Click(object sender, EventArgs e)
    {
    [DllImport("USER32.DLL",EntryPoint="SystemParametersInfo", SetLastError = true)]

    public static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni);

    }
    whatts the error plz help
  • #339560
    using System.Runtime.InteropServices;
    private void button3_Click(object sender, EventArgs e)
    {
    [DllImport("USER32.DLL",EntryPoint="SystemParametersInfo", SetLastError = true)]

    public static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni)
    {

    }




    }
    Best of Luck.....
    Regards,
    Prashant,
    CENTRE FOR GOOD GOVERNANCE,
    HYDERABAD.

    Best of Luck

    Regards,
    Pinumalla Prashant

    http://pinumallaprashantblogs.wordpress.com
    http://pinumallaprashantblogs.blogspot.in

  • #339609
    hi juhee

    see this code and try


    private void button3_Click(object sender, EventArgs e)
    {


    }
    [DllImport("USER32.DLL", EntryPoint = "SystemParametersInfo", SetLastError = true)]

    public static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni);
    -----------------------------------------------------
    HOPE THIS WILL HELP YOU

    SABU


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.