TheSwamp

Code Red => ARX Programming => Topic started by: ahlzl on July 21, 2010, 10:09:59 AM

Title: How Configuration Daniel's AcMgdWrprs
Post by: ahlzl on July 21, 2010, 10:09:59 AM
Hi, look this link: http://www.theswamp.org/index.php?topic=33579.msg391900#msg391900, download the zip.
I create ARX's Project with MFC、NET mixed managed code support, and copy Daniel's code, Set up the Project is "/clr"。

but Compile……
Title: Re: How Configuration Daniel's AcMgdWrprs
Post by: ahlzl on July 21, 2010, 10:17:04 AM
this is VS2005.


and with VS2002, I create ARX's Project with NET mixed managed code support, don't write code, Compile……

Error, why?
Title: Re: How Configuration Daniel's AcMgdWrprs
Post by: It's Alive! on July 21, 2010, 10:54:32 AM

VS2002 used /CLR:oldsyntax which is not compatible with the code I wrote, does this answer your question?
Title: Re: How Configuration Daniel's AcMgdWrprs
Post by: It's Alive! on July 21, 2010, 11:06:48 AM
Actually, reflector show the out keyword with the old syntax

Code: [Select]
public: static Boolean __gc* SolidSubentitySelector([Out] ObjectId __gc* *solid, [Out] SubentityId __gc* *sids __gc [])
let me look
Title: Re: How Configuration Daniel's AcMgdWrprs
Post by: ahlzl on July 21, 2010, 09:03:58 PM
fail :oops:

where is error?
Title: Re: How Configuration Daniel's AcMgdWrprs
Post by: It's Alive! on July 21, 2010, 09:42:44 PM
Just plain weird, I think its the global namesmace


no thats not it...
Title: Re: How Configuration Daniel's AcMgdWrprs
Post by: It's Alive! on July 21, 2010, 10:16:28 PM
add this

using namespace System::Runtime::InteropServices;
Title: Re: How Configuration Daniel's AcMgdWrprs
Post by: ahlzl on July 21, 2010, 11:21:57 PM
VS2005 is OK.
Great Daniel!