Query regarding VC++ programming with databases.

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 any code snippet which without passing the query in the code as above, allow writing query in the application's window and display result in it 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?
Last edited on
Topic archived. No new replies allowed.