How could I mix CONSOLE WIN 32 application with WINDOWS FORMs applications? I'm using Virtual C++ Ex

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I would like to mix a console Win 32 application with Windows Forms due to code already working (On one hand Im able to get a full path to an Excel file from Windows Forms and openFileDialog; on the other hand Im also able to open an Excel file from a console Win32 application -the full path already available)...Therefore I would like to mix both applications: on one hand using Windows forms to get the path, on the other hand [and with a path available] to use the console Win 32 application to open the Excel file (Ive been using both codes independently and theyre working fine in their respective environments, now I would like to join both codes in one)
I would like to start with the Console Win 32 application and include all the Windows forms required. (Or is it easier the other way round?)
I would appreciate it if you could include code lines (that really work in Express Edition).
ps. please ignore all of the String^ to OLECHAR* complications (I have solved that problem). THE PROBLEM IS WHILE STARTING FROM A CONSOLE WIN 32 application AND TRYING TO INCLUDE THE WINDOWS FORMS .h FILE (namespaces not recognized by compiler, even the public ref class is not recognized). How should I solve this problem? Thank you again.

View the full article
 
Back
Top