A
ajtaylor
Hello,
I have a load of native C++ code that I want to use in a CLR class
library. My "logic" being that I create a C++/CLI managed class that
acts as an interface to the unmanged code.
I created a new CLR class library and added my native/unmanaged C++
code then added some code to the unmanaged class.
Now, and this is where I am not sure, I turned off the CLR support in
the project settings
Configuration Properties | General | Common Language Runtime support
[I set this to "No Common Language Runtime support"]
and for the .CPP file that contains the managed code I set the
C/C++ | General | Common Language Runtime support
to /CLR.
When I build the project all is fine.
The problem comes when I try to use this assemly in another project I
get an error about a missing .LIB file for the assembly I am trying to
use.
Now I am pretty sure I read somewhere that the turning off of the CLR
option on the project was the correct thing to do when compiling mixed
code.
Can someone out there help me please as yet again C++/CLI is the poor
man interms of documention/books out there*
*depite IMHO being a better solution than using C#
Thanks.
I have a load of native C++ code that I want to use in a CLR class
library. My "logic" being that I create a C++/CLI managed class that
acts as an interface to the unmanged code.
I created a new CLR class library and added my native/unmanaged C++
code then added some code to the unmanaged class.
Now, and this is where I am not sure, I turned off the CLR support in
the project settings
Configuration Properties | General | Common Language Runtime support
[I set this to "No Common Language Runtime support"]
and for the .CPP file that contains the managed code I set the
C/C++ | General | Common Language Runtime support
to /CLR.
When I build the project all is fine.
The problem comes when I try to use this assemly in another project I
get an error about a missing .LIB file for the assembly I am trying to
use.
Now I am pretty sure I read somewhere that the turning off of the CLR
option on the project was the correct thing to do when compiling mixed
code.
Can someone out there help me please as yet again C++/CLI is the poor
man interms of documention/books out there*
*depite IMHO being a better solution than using C#
Thanks.