winforms - Linking error running a C++ program in Windows Forms -


some time ago made c++ program worked involving classes , main launched rest of application. need create graphic interface run program first idea build dll out of program , import windows forms application on visual studio 2008 turned not work.

i decided import code directly copied files folder inside project , wrote (gp_app old main , fwindow form @ new app)

gp_app.h

public ref class gp_app {     public: static int run_gp(); }; 

gp_app.cpp

public static int gp_app::run_gp(){    /* implementation */  } 

fwindow.h

private: system::void button1_click(system::object^  sender, system::eventargs^  e) {              gp_app::run_gp();          } 

but keeps giving me error when compile

fwindow.obj : error lnk2020: unresolved token (06000001) gp_app::run_gp

any idea solve it? or thinking should dll , how make work? ui windows pass parameters , showing terminal window running app. sorry if question dumb (i'm c++ rookie), sorry poor english , mistakes formatting question (couldn't format wanted code)


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -