Quantcast
Viewing all articles
Browse latest Browse all 12583

HOW TO COMBINE/MIX A CONSOLE WIN32 (application) WITH WINDOWS FORMS (applications)

HI:

I would like to combine a WINDOWS FORM application (there will be buttons on the Windows Form, and an openFileDialog appears -a full path to an Excel file will be obtained from this openFileDialog);

later, this full path will be used to open an Excel file, and to do so I have an application running in Console Win 32 (themain function in this console Win 32 has a THREAD? form:  int _tmain(int argc, _TCHAR* argv[]) instead of the regular  int main(array<System::String^> args)

I'm trying to start my project from the console Win 32 application, and then include the Windows forms required, however if I put an #include  to the .h files of  the Windows Forms  (for instance #include "myWindowForm.h") there are several errors [namespaces not recognized in the Windows Forms, also in the public ref class definition, etc]

HOW COULD I INCLUDE WINDOWS FORMS (STARTING MY PROJECT FROM A CONSOLE WIN 32) -or viceversa if this was easier-?  COULD YOU GIVE REAL CODE EXAMPLES (that work fine with compiler).

IM USING THE VISUAL C++ EXPRESS EDITION (and limitation are regarding MFCs).

Thank you in advance

 

_tmain(int argc, _TCHAR* argv[])


Viewing all articles
Browse latest Browse all 12583

Trending Articles