MySQL Forums
Forum List  »  MySQL Workbench

how can I call WorkBench dll in VB.net
Posted by: Jian Zou
Date: November 17, 2016 07:26PM

how to call WorkBench dll in VB.net? such as db.mysql.sqlparser.grt.dll in WorkBench root directory
I try to use following code:
    <DllImport(
        "x:\WorkBench\db.mysql.sqlparser.grt.dll",
        SetLastError:=False
        )>
    Public Shared Function checkSqlSyntax(ByVal sql As String) As Integer
    End Function
got error: "Unable to find an entry point named 'checkSqlSyntax' in DLL 'db.mysql.sqlparser.grt.dll'."

In WorkBench source code(download from http://dev.mysql.com/downloads/workbench/), can found function checkSqlSyntax

-- Modules --> db.mysql.sqlparser.grt --> Header Files --> mysql_sql_facade.h
DECLARE_MODULE_FUNCTION(MysqlSqlFacadeImpl::checkSqlSyntax),

-- Modules --> db.mysql.sqlparser.grt --> Source Files --> mysql_sql_facade.cpp
int MysqlSqlFacadeImpl::checkSqlSyntax(const std::string &sql)
{
return Mysql_sql_syntax_check::create(get_grt())->check_sql(sql.c_str());
}

Options: ReplyQuote


Subject
Views
Written By
Posted
how can I call WorkBench dll in VB.net
1259
November 17, 2016 07:26PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.