[gme-users] Make a form in GME

Orangi, Abdollah rngb at chevron.com
Tue Jul 12 16:40:19 CDT 2005


Dear Zoltan
 
You are right. it doesn't propagate to all *.cpp files.
 
I have changed them all and still I have this problem.
 
if I have your personal email I would like to send you the actual
project to look at it.
 
Orangi

________________________________

From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Zoltan
Molnar
Sent: Tuesday, July 12, 2005 3:29 PM
To: gme-users
Subject: RE: [gme-users] Make a form in GME


There is a Visual Studio .NET 2003 Environment bug: if you modify the
'Basic Runtime Check' option for the project it won't be propagated down
to the files contained in the project.
Thus you must change that property individually for each source file
*.cpp contained in your project.
 
I suppose the MS renamed the Assembly Support option to Use Managed
Extension in the VS .NET 2003 release.
 
Zoltan
 

	-----Original Message-----
	From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Orangi,
Abdollah
	Sent: Tuesday, July 12, 2005 5:17 PM
	To: gme-users
	Subject: RE: [gme-users] Make a form in GME
	
	
	Dear all
	 
	First I have to say we have Microsoft Visual C++ .NET   Version
7.1 on our machine
	 
	We are using BON (version 1) and we have followed these
procedures:
	
	1.in the General section: set 'Use Managed Extensions' to Yes
(in VStudio 2003)
	2.in the C/C++ section/ Code Generation Subsection: Basic
Runtime Checks must be changed from 'BOTH (/RTC1)' to 'Default'
	after doing these changes 
	If I try to add form before "build solution" I get this error
	"Managed components can only be added to managed component.
Please convert the project to managed"
	 
	in the other hand if I try to "build solution" and then add the
form I get this error 
	"TestForecast Command line error D2016 : '/RTC1' and '/clr'
command-line options are incompatible"
	 
	Also there is a help in VS .NET Version 7.1 about modifying to
managed project and says: 
	In the Properties/C/C++/General  change Compile As Managed
property to Assembly Support (/clr)
	But there is no such thing in VS C++ 7.1
	 
	 
	Thanks
	Orangi

		  
________________________________

		From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Zoltan
Molnar
		Sent: Thursday, June 02, 2005 10:03 AM
		To: gme-users
		Subject: RE: [gme-users] Make a form in GME
		
		
		Hi,
		 
		Currently components generated by CreateNewComponent.exe
(interpreters, plug-ins, add-ons) are plain unmanaged C++ code
skeletons. That's why you can't insert managed code, or new items from
the Form designer  into such a dll, unless you convert the whole project
to compile with the /clr flag, thus becoming managed.
		This conversion process consists of the following
settings in the project properties dialog box:
		1.in the General section: set 'Use Managed Extensions'
to Yes (in VStudio 2003)
		2.in the C/C++ section/ Code Generation Subsection:
Basic Runtime Checks must be changed from 'BOTH (/RTC1)' to 'Default'
		 
		For BON2 components this is not enogh, needs some
additional work, in spite of MicroSoft stating it is 'It Just Works'
technology.
		For BON (version 1) components and for RAW Com
components this migration is feasible, so you can use the Windows Forms
controls after that. (Important to note: to implement a Raw Com
interpreter the user needs some COM technology knowledge.)
		 
		If you do NOT want to stick with managed code, you can
benefit by accessing your models with BON2 (instead of old-fashioned,
slow BON or difficult COM), but you'd have to use classes in MFC like
CDialog for implementing Dialog boxes (instead of Forms).
		 
		Br, Zoltan Molnar
		 

			-----Original Message-----
			From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Orangi,
Abdollah
			Sent: Wednesday, June 01, 2005 10:47 AM
			To: gme-users
			Subject: [gme-users] Make a form in GME
			
			

			Hi 

			I am a beginner to learn GME and  C++. 
			I want to know if I need to have a from which is
created in Visual C++ . NET in the GME interpreter what should I do? 

			I have created a simple form in VS C++. In the
other hand I have a very simple case in GME with associated interpreter
which is wrote in VS C++ too.

			I need to combine these too. 


			Also I have tried to add new items (Form) in my
Component.ccp (GME Invokex) but it gave me an error which was "Managed
component can add to managed project. Please convert your project to
managed".


			Thanks for your comment. 

			A.O. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20050712/c824b758/attachment.htm


More information about the gme-users mailing list