473,383 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Mix/match windows forms and mfc views?

I can create a new C++/CLI app and use managed UI controls, even make
the form an MDIParent and launch child forms.

Could I create an MFC view like CView - and use it within the managed
app? I have set the project settings to include MFC as a shared DLL,
but if I use things like AfxGetApp() then I get undeclared identifier
variables, presumably because the app isn't an MFC app...

Maybe I should start with an MFC app, and then add managed classes
rather than the other way around. Are there any good resources on the
internet showing how?

Just using the managed equivalent isn't an option because we have lots
of legacy MFC related libraries/controls, etc.

Regards,

Duncan.

Feb 8 '07 #1
1 1321
http://msdn.microsoft.com/msdnmag/is...h/default.aspx

Hope this link helps.

WJ

"Duncan Smith" wrote:
I can create a new C++/CLI app and use managed UI controls, even make
the form an MDIParent and launch child forms.

Could I create an MFC view like CView - and use it within the managed
app? I have set the project settings to include MFC as a shared DLL,
but if I use things like AfxGetApp() then I get undeclared identifier
variables, presumably because the app isn't an MFC app...

Maybe I should start with an MFC app, and then add managed classes
rather than the other way around. Are there any good resources on the
internet showing how?

Just using the managed equivalent isn't an option because we have lots
of legacy MFC related libraries/controls, etc.

Regards,

Duncan.

Feb 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: polytimi8 | last post by:
Hello, I would like to know if it is possible to create a form in Access2000, which would function like a calendar for 8 operating rooms in hospital, showing which hours are those closed for a...
0
by: jon | last post by:
Using Visual C++ and MFC, one could generate a very nice MMI using CFormView and the method detailed in the MSDN "vswap" example to allow multiple forms to be viewed ( switched to ) within a single...
1
by: Andy Bates | last post by:
Hi - I'm writing a C# windows form application and have hit a hurdle. The application has several panels that need to be displayed at various times depending on what the user is doing. They all...
3
by: Paul Aspinall | last post by:
Hi I have an MDI app.... All child MDI windows are non-updateable... however, the users may leave the windows open... and there can be several of them. I want to implement a system to dispose...
4
by: elime | last post by:
Hi all I load datas from an SQL server to a Datagrid. The datagrid columns are basically read only but one column is not -> the checkboxcolum. The user needs to be able to check or uncheck this...
5
by: twick10 | last post by:
Hi All, Is anybody aware or significant bugs in the Windows Forms ListView control?? I am having serious problems trying to switch from Large and small icon views to detail views. What looks...
9
by: Reidar | last post by:
Is it possible to have the source in one window and the design in another window and perhaps the code in a third window? reidarT
2
by: =?Utf-8?B?Sm9obiBG?= | last post by:
Hello All, I have a question about using an ActiveX control with a Windows Servce in C#. I believe it is not possible to properly setup an ActiveX control in a windows service as the particular...
4
by: gauravdua | last post by:
hello plz tell me how can i insert data into different views throgh oracle forms. actually i had made form on purchase order using po_headers_v po_distributions_v po_lines_v it execute...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.