Convert existing ARX project to CPP CLI

Convert existing ARX project to CPP CLI

Anonymous
Not applicable
786 Views
5 Replies
Message 1 of 6

Convert existing ARX project to CPP CLI

Anonymous
Not applicable
Hi all,
i have a arx project, which is completely written in C++. Now i need to convert this project to mixed mode C++ CLI. I Changed "Common Language Runtime Support" to "Pure MSIL Common Language Runtime Support (/clr:pure)" in project settings. Then I included the necessary header files in stdafx.h. Then wrapped the DllMain by #pragma managed(push, off). I build the arx it success fully builds. The problem is when i load usng AppLoad it hangs. While debugging, the dwebugger detects Loader Lock. I made some mistakes during convertion. is there any document, that describe how to convert Simple MFC Arx to C++ CLi Mixed mode ARX? Any help is appreciated.
Thanks in advance

Prem Kumar U
0 Likes
Accepted solutions (1)
787 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
If you intend to continue using unmanaged code, instead of converting your
entire project to managed, just add your managed code in separate project
files and set only those files as managed.

--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>


"premkumaru" wrote in message news:6273907@discussion.autodesk.com...
> Hi all,
> i have a arx project, which is completely written in C++. Now i need to
> convert this project to mixed mode C++ CLI. I Changed "Common Language
> Runtime Support" to "Pure MSIL Common Language Runtime Support
> (/clr:pure)" in project settings. Then I included the necessary header
> files in stdafx.h. Then wrapped the DllMain by #pragma managed(push,
> off). I build the arx it success fully builds. The problem is when i load
> usng AppLoad it hangs. While debugging, the dwebugger detects Loader Lock.
> I made some mistakes during convertion. is there any document, that
> describe how to convert Simple MFC Arx to C++ CLi Mixed mode ARX? Any help
> is appreciated.
> Thanks in advance
>
> Prem Kumar U
0 Likes
Message 3 of 6

Anonymous
Not applicable
Accepted solution
I don't think you can have mixed managed code in a project that marked as /cli pure, you need to use /clr
To resolve the load lock issue, try using /NOENTRY .. in Linker->advanced->no entry point
0 Likes
Message 4 of 6

Anonymous
Not applicable
One last thing, is that a mixed-mode dll is loaded via NETLOAD, rather than
as a standard ARX dll is loaded (or add MANAGED=1 to the application's
registry key for demand-loading).

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6273907@discussion.autodesk.com...
Hi all,
i have a arx project, which is completely written in C++. Now i need to
convert this project to mixed mode C++ CLI. I Changed "Common Language
Runtime Support" to "Pure MSIL Common Language Runtime Support (/clr:pure)"
in project settings. Then I included the necessary header files in
stdafx.h. Then wrapped the DllMain by #pragma managed(push, off). I build
the arx it success fully builds. The problem is when i load usng AppLoad it
hangs. While debugging, the dwebugger detects Loader Lock. I made some
mistakes during convertion. is there any document, that describe how to
convert Simple MFC Arx to C++ CLi Mixed mode ARX? Any help is appreciated.
Thanks in advance

Prem Kumar U
0 Likes
Message 5 of 6

Anonymous
Not applicable
{quote}

The problem is when i load usng AppLoad it hangs...

{quote}

Mixed-mode dlls are managed dlls, and must be loaded
as such (using the NETLOAD command, or by adding
MANAGED=1 to the application's registry entry).

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6273907@discussion.autodesk.com...
Hi all,
i have a arx project, which is completely written in C++. Now i need to
convert this project to mixed mode C++ CLI. I Changed "Common Language
Runtime Support" to "Pure MSIL Common Language Runtime Support (/clr:pure)"
in project settings. Then I included the necessary header files in
stdafx.h. Then wrapped the DllMain by #pragma managed(push, off). I build
the arx it success fully builds. The problem is when i load usng AppLoad it
hangs. While debugging, the dwebugger detects Loader Lock. I made some
mistakes during convertion. is there any document, that describe how to
convert Simple MFC Arx to C++ CLi Mixed mode ARX? Any help is appreciated.
Thanks in advance

Prem Kumar U
0 Likes
Message 6 of 6

Anonymous
Not applicable
Hi All,
Thank you for your responses. Now my Arx works when i put /NoEntry option and loaded via Appload command.
0 Likes