Query regarding Ado.net (VC++) programming

I am using Visual studio 2010, C++ application. I have a query as follows:
While developing an application similar to database engines for writing and executing queries, The statement used is:
MySqlCommand^ cmdDataBase=gcnew MySqlCommand("CREATE TABLE Countries(CountryName char) ,conDataBase);
or any query before constring

What I want is without passing the query in the code, allow writing query in the application’s window and display result on execution
(I made a a window with text box for writing query and execute query button; and an output box for displaying result)

Can anyone help or suggest anything? I searched a lot but did not find related information. I this need for my college project.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.