473,766 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CWinFormsView

I am trying to use CWinFormsView. I have followed the instructions in
the Microsoft article on changing a CView based class to use it.
However, when I compile I get this message:

fatal error C1189: #error : MFC WinForms support requires /clr
(doesn't support oldSyntax)

But I have the CLR switch set to "Common Language Runtime Support
(/clr)" so what's the problem?

Sep 28 '06 #1
1 3862
<ML****@hotmail .comwrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
>I am trying to use CWinFormsView. I have followed the instructions in
the Microsoft article on changing a CView based class to use it.
However, when I compile I get this message:

fatal error C1189: #error : MFC WinForms support requires /clr
(doesn't support oldSyntax)

But I have the CLR switch set to "Common Language Runtime Support
(/clr)" so what's the problem?
Which compiler are you using? The quip about the non-support of the "old"
syntax means that you must use VS2005 rather than VS2003 or VS2002.

Regards,
Will
Sep 28 '06 #2

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

Similar topics

2
3077
by: Soren S. Jorgensen | last post by:
Hi, I need to (somehow) show the ReportViewer (Microsoft Reports) in a ActiveX control. I got a 3rd. party app (SAP Business One) where I need to use the ReportViewer and the only way to show the control (using SBO's internal API) is through an ActiveX control. I see no posiblity to "load" the ReportViewer control from COM (I could be
1
1812
by: MLM450 | last post by:
I am using CWinFormsView to host my C# control. When I resize the view window to a larger size the control seems to grow with it just fine. But when I shrink the size of the view, I get scroll bars. I don't want scrollbars, I want the control to shrink. In the .NET control, I have tried adjusting the minimum size and the auto size mode properties. In my view, I have tried setting the controls size when the view is resized. None of this...
3
3891
by: Yoavo | last post by:
Hi, I have an C++ MFC application and a c# DLL (which contains a Form class). I want to invoke the c# dialog from the C++ application. How do I do it ? thanks, Yoav.
3
1819
by: Lee | last post by:
Hello everyone! This may be a stupid question but ... I have an Application that I can add "plugins" to. It is a Win32 app with a Multiple Document window area where it displays child windows. I add functionallity by writing Win32 dlls. Lately I've been using IJW to mix managed with unmanaged code.
0
862
by: =?Utf-8?B?TWF0dGhicmk=?= | last post by:
Hi, I have used the MFCWinForms sample as the basis for a CWinFormsView view in an MFc application to host a UserControl. It all works OK, except for the View closing. Even in the MFCWinForms sample the UserControl is never deleted. Opening a View and closing it repeatedly results in a memory leak. When the application is terminated, all the UserControls are deleted at that time. Calling System::GC::Collect() does not help....
1
1696
by: Duncan Smith | last post by:
Hi All, Grateful if anyone has any suggestions here? I have a VS2005 MFC app which hosts several types of views in CFrameWnds - one of which contains a managed control hosted in a CWinFormsView Everything works well on my dev pc (and other peoples dev pcs), but when I try and instantiate the managed view on a target-pc (no compilers, etc) there's an exception thrown followed by program termination.
2
2347
by: google | last post by:
Is it possible to access all of the cool features of the new .net 2.0 & 3.0 with native win32 (C++)? I'd like to use cool components like DataSet, DataGridView and PropertyGrids without resorting to C++/CLI and the like...
0
9568
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
10008
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
9959
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,...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7381
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
6651
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
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.