Results 1 to 5 of 5

Thread: Still quite new to c# having problem calling a function in a dll

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2016
    Posts
    155

    Still quite new to c# having problem calling a function in a dll

    I have a dll I created in vb. I referenced it in my c# project and added the Using statement.

    I can get it working up to the point I call the function.

    Here is the subset of the code.

    using ARISQL;

    String SVR = "Servername";
    String DB = "Databasename";
    String SQuery = "SQL Query";
    int result;
    String checkdate;

    ARISQL.ARISQL oSql;

    checkdate = oSql.runQuery(SVR, DB, SQuery, result);

    I am getting and error on the last statement "The best overloaded method match for 'ARISQL.ARISQL.runQuery(ref string, ref string, ref string, ref int' has some invalid arguments."

    Can someone let me know what I am doing incorrect? I am passing 3 strings and an integer.

    Thanks
    Last edited by BSWhipp; Sep 28th, 2018 at 10:23 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width