Author Topic: How Configuration Daniel's AcMgdWrprs  (Read 3832 times)

0 Members and 1 Guest are viewing this topic.

ahlzl

  • Guest
How Configuration Daniel's AcMgdWrprs
« 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……
« Last Edit: July 21, 2010, 10:18:54 AM by ahlzl »

ahlzl

  • Guest
Re: How Configuration Daniel's AcMgdWrprs
« Reply #1 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?

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7096
  • AKA Daniel
Re: How Configuration Daniel's AcMgdWrprs
« Reply #2 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?
Retired

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7096
  • AKA Daniel
Re: How Configuration Daniel's AcMgdWrprs
« Reply #3 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
Retired

ahlzl

  • Guest
Re: How Configuration Daniel's AcMgdWrprs
« Reply #4 on: July 21, 2010, 09:03:58 PM »
fail :oops:

where is error?

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7096
  • AKA Daniel
Re: How Configuration Daniel's AcMgdWrprs
« Reply #5 on: July 21, 2010, 09:42:44 PM »
Just plain weird, I think its the global namesmace


no thats not it...
« Last Edit: July 21, 2010, 10:05:48 PM by eAmbiguousOutput »
Retired

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7096
  • AKA Daniel
Re: How Configuration Daniel's AcMgdWrprs
« Reply #6 on: July 21, 2010, 10:16:28 PM »
add this

using namespace System::Runtime::InteropServices;
Retired

ahlzl

  • Guest
Re: How Configuration Daniel's AcMgdWrprs
« Reply #7 on: July 21, 2010, 11:21:57 PM »
VS2005 is OK.
Great Daniel!