473,654 Members | 3,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1336
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
16875
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 specific date. For this intersection I would like to be appeared the name of the doctor, the name of the patient and the kind of operation. Furthemore I would like this intersection to be marked in the calendar with a colour, showing that this...
0
1975
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 application ( i.e. a single app running and a single window). A very useful method indeed - very rapid to develop, forms designed at design time, all forms encapsulated within one window, SDI, only one task on taskbar etc... Now, i know...
1
1823
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 need to sit inside a main frame (form). The various screens could be: 1. Side bar and welcome screen. 2. Side bar and list of items. 3. Item side bar and tab sheet.
3
1806
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 of MDI child windows after a period of inactivity, in order to release resources and fire a garbage collect... Does anyone have any views, or ideas on how to do this??
4
2758
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 column for selection. Now at the end of the datagrid (last row) there is another row with a * in front of it. Once a user clicks on that, at the position of the checkboxcolumn, it'll add a new row to the datagrid with NULL values. You can even...
5
1349
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 fine in Large and small icon views shows up as lines on detail view and blank screen in File listing. If I do some brute force restating of columns (they were defined before) and imagelists I can get it to show up with double the number of...
9
1388
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
2826
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 ActiveX control we're using (GrFinger for fingerprint reader)implements several event handlers. It is also my understanding that there is no Message Pump within a Windows Service. I suppose I could create my own message pump, but this seems...
4
3261
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 properly, but when i try to insert new data into it it's gives error "cannot modify a column which maps to a non key-preserved table".
0
8375
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.