c++ - Moving command line application to Windows Forms -


i using simplified version of project ma looking idea of how in windows forms

i have working command line application. simple school assignment program. main player of application database class:

database.h

class database{   public:     database(string name);     void add(...)     void remove(...)     //and on more methods , other stuff } 

i can use in main.cpp:

include "database.h"  int main(){    database db("test");    .    .    . } 

three dots simple example represent different thing can database. db object available in main scope.

how can make instance of database, available windows in windows form project?

where/how should instantiate database object available forms?

i include excising database.h file, instantiate object out of , able use in different windows in application.

i using vs 2010 ultimate.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -